Commit Graph

45278 Commits

Author SHA1 Message Date
Xiaoxi Chen
e0cf25f6c0 Fix debug message in osd::is_healthy
Display the actual vaule of osd_heartbeat_min_healthy_ratio instead
of 1/3 (default value).

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
2015-10-12 10:41:49 +08:00
Samuel Just
d36d7f24fb ReplicatedPG: allow maybe_handle_cache to return status detailing what happened
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-10-09 22:42:19 -07:00
Kefu Chai
ec64463c62 Merge pull request #5065 from wonzhq/optracker-histogram
common: OpTracker age histogram calculation is not correct

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-10-10 09:15:27 +08:00
Josh Durgin
7f80bfc3c0 Merge pull request #6220 from dreamhost/wip-pybind-rados-omap-binary
pybind/rados: Fix binary omap values.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-10-09 20:02:17 -04:00
Robin H. Johnson
68c722c897 pybind/rados, get_omap_vals: Fix pydoc type.
pydoc type for filter_prefix did not match code.

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2015-10-09 16:29:15 -07:00
Robin H. Johnson
5a6e762f6b test: pybind/test_rados: add binary data.
Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2015-10-09 16:29:15 -07:00
Robin H. Johnson
db03d3027f pybind/rados: Fix binary omap values.
The prior code caused binary omap values to be discarded. This fixes
them to use the same model as the xattr iterator, and correctly return
binary data as python strings, eg:
'object_prefix': '\x15\x00\x00\x00rbd_data.449d2ae8944a'

Signed-off-by: Robin H. Johnson <robin.johnson@dreamhost.com>
2015-10-09 16:28:55 -07:00
Samuel Just
691d5535ea Merge pull request #6193 from athanatos/wip-13240
ReplicatedPG::maybe_handle_cache: do not promote before checking full

Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-09 16:16:27 -07:00
Sage Weil
1e017ef63d Merge pull request #6190 from SUSE/wip-drop-my-conf-opt
ceph.spec.in: drop MY_CONF_OPTS

Reviewed-by: Ken Dreyer, <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
2015-10-09 16:34:25 -04:00
Radoslaw Zarzynski
5b9c326106 rgw: fix wrong etag calculation during POST on S3 bucket.
Fixes: #11241
Backport: infernalis, hammer, firefly
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
(cherry picked from commit 742906ab5e)
2015-10-09 13:34:05 -07:00
Sage Weil
4b7cf9ce83 Merge pull request #6183 from ceph/wip-fix-selinux-man-page
Fix selinux man page

Reviewed-by: Nathan Cutler <ncutler@suse.com>
2015-10-09 16:33:48 -04:00
Sage Weil
093af4277b Merge pull request #6191 from SUSE/wip-concentrate-buildrequires
ceph.spec.in: move BuildRequires out of subpackages

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2015-10-09 16:33:14 -04:00
Sage Weil
031b41b5d9 Merge pull request #6184 from dillaman/wip-13372-infernalis
librbd: invalidate object map on error even w/o holding lock

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-10-09 16:31:43 -04:00
Yehuda Sadeh
4b07f93335 Merge pull request #6030 from rzarzynski/wip-11241
rgw: fix wrong etag calculation during POST on S3 bucket.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-10-09 13:28:33 -07:00
Haomai Wang
cbf36ad0df LibRBD: Adjust correct op latency scope
Op latency need to cover from queuing to finishing op.

Signed-off-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Jason Dillaman <jdillaman@redhat.com>
2015-10-09 16:28:12 -04:00
Jason Dillaman
4fdc703e84 librados_test_stub: prevent interleaving of operations
It was possible for unrelated ops to interleave within a different
transaction for a given object.

Fixes: #13313
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-10-09 16:26:10 -04:00
Jason Dillaman
d689db8bdc cls: new force-promotion flag for class methods
Class methods that use the cls_get_request_origin should not be
proxied to a base tier -- otherwise the origin will reflect the
cache tier instead of the client.

Fixes: #13380

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-09 15:10:38 -04:00
Jason Dillaman
6eca7d0889 librados: restored pre-infernalis API compatibility
Fixes: #13429
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-09 13:00:13 -04:00
Jason Dillaman
cac1d6f936 buffer: restored pre-infernalis API compatibility
Fixes: #13429
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-09 12:58:54 -04:00
Casey Bodley
45c8a928a9 Merge pull request #6044 from ceph/wip-12958
rgw: orphan tool shouldn't clean up head objects

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2015-10-09 12:32:51 -04:00
Yehuda Sadeh
030f697d19 rgw: orphan tool shouldn't clean up head objects
Fixes: #12958

Head objects are mutable, so removing them can race with object removal
and a later recreation, so we might end up cleaning them up when we don't
need to.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2015-10-09 12:31:48 -04:00
Sage Weil
453698fc2b messages/MOSDOp: cleanup
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-09 10:56:32 -04:00
Kefu Chai
010836d059 Merge pull request #6187 from SUSE/wip-13317-infernalis
doc: remove mention of --lazy-remove from radosgw-admin manpage

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-10-09 15:48:49 +08:00
Kefu Chai
84faaa42c6 Merge pull request #6211 from SUSE/wip-dead-bool
CephxServiceHandler.cc: fix get_auth conditional

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-10-09 14:47:40 +08:00
Nathan Cutler
7250db62cb CephxServiceHandler.cc: fix get_auth conditional
The KeyServer class has a public method get_auth() that returns a boolean
value. This value is being checked here - fix the conditional so it triggers
when get_auth() returns false.

http://tracker.ceph.com/issues/9756 References: #9756

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2015-10-09 06:28:34 +02:00
Loic Dachary
1e8cb9bcfb Merge pull request #6173 from dachary/wip-13355-docker-test
tests: allow docker-test.sh to run under root

Reviewed-by: Nathan Cutler <ncutler@suse.cz>
2015-10-08 22:44:26 +02:00
Josh Durgin
61d24d9d96 Merge pull request #6194 from dillaman/wip-13220-infernalis
rbd-replay-prep and rbd-replay improvements

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2015-10-08 16:20:05 -04:00
Samuel Just
1a2689f8d7 ReplicatedPG::maybe_handle_cache: do not promote before checking full
Otherwise, ops with need_promote() can order past ops without it
causing an rgw write sequence like:

writefull 0~0
writefull 0~512kb
write 512kb~512kb

to reorder to

writefull 0~0 -- delayed: full
writefull 0~512kb -- delayed: full
write 512kb~512kb -- promote and execute
writefull 0~0 -- execute
writefull 0~512kb -- execute

Fixes: 13240
Signed-off-by: Samuel Just <sjust@redhat.com>
2015-10-08 11:23:13 -07:00
Yehuda Sadeh
e8d375f839 Merge pull request #6206 from rzarzynski/wip-rgw-manifest-skip
rgw: add support for getting Swift's DLO without manifest handling

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2015-10-08 10:44:27 -07:00
Jason Dillaman
e0d8cb1283 tests: removed obsolete rbd_replay test cases
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-08 13:28:43 -04:00
Jason Dillaman
c2a83d0b51 ceph-dencoder: new rbd_replay trace file types
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-08 13:27:01 -04:00
Jason Dillaman
3ecdae8388 rbd-replay: added version control to trace output file
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-08 13:21:29 -04:00
Radoslaw Zarzynski
e69277378a rgw: add support for skipping manifest parsing during GET on Swift object.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2015-10-08 17:39:14 +02:00
John Spray
a52383d0d3 client: don't mark_down on command reply
I guess this was handy when issuing single commands
from the CLI, but it breaks things badly when
trying to issue commands from a client
that's also going to carry on and do client IO.

Signed-off-by: John Spray <john.spray@redhat.com>
2015-10-08 14:24:00 +01:00
Yan, Zheng
7bc06933e8 Merge pull request #6200 from ceph/wip-13364
mds/Session: use projected parent for auth path check
2015-10-08 19:22:14 +08:00
John Spray
10bd1cac20 Merge pull request #6116 from jcsp/wip-cephfs-direntry
pybind/cephfs: fix DirEntry helpers

Reviewed-by: Kefu Chai <kchai@redhat.com>
2015-10-08 12:08:31 +01:00
Loic Dachary
3c50e4eb9f Merge pull request #6195 from dachary/wip-release-notes
release-notes: draft v0.94.4 release notes

Reviewed-by: Sage Weil <sage@redhat.com>
2015-10-08 08:31:47 +02:00
Sage Weil
6b94b41401 Merge pull request #6188 from liewegas/wip-13395
os/FileStore: kludge sloppy hammer temp objects into temp collection

Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
2015-10-08 00:07:43 -04:00
Sage Weil
1e57e6de27 mds/Session: use projected parent for auth path check
In particular, a file's current path might indicate no parent
because the initial link into the tree isn't committed yet.

Fixes: #13364
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-07 22:59:43 -04:00
Sage Weil
116bc832a3 ceph_test_libcephfs: parse env properly (access)
Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-07 20:25:59 -04:00
Sage Weil
94893593fb ceph_test_libcephfs: parse CEPH_ARGS properly
This has to happen after the config parse.

Signed-off-by: Sage Weil <sage@redhat.com>
2015-10-07 20:25:48 -04:00
Loic Dachary
21236ac39d release-notes: draft v0.94.4 release notes
Signed-off-by: Loic Dachary <ldachary@redhat.com>
2015-10-08 00:40:56 +02:00
Jason Dillaman
646e50a771 rbd-replay-prep: added --verbose command line option
This new command-line will dump all the processed events as they
are extracted from the trace file.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-07 16:51:06 -04:00
Jason Dillaman
98f513a113 rbd-replay-prep: stream events to the prep file
Avoid building the entire prep event history in memory before
attempting to write the prepped trace file.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-07 16:34:56 -04:00
Jason Dillaman
65fb1b86cb rbd-replay-prep: simplify IO dependency calculation
Only track read-after-write and write-after-write IO dependencies
via the associated write completions.  All IO events after a write
completion are considered to be dependent and can be pruned down
to at most the number of concurrent IOs.  This reduces the prep
time from a simple 'rbd bench-write' from over 4 hrs down to seconds.

Fixes: #13378, #13384
Backport: hammer

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-07 16:34:55 -04:00
Jason Dillaman
4f436e1080 rbd-replay: improve error messages
Fixes: #13221
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-07 15:41:23 -04:00
Jason Dillaman
b5b4a9dd6b rbd-replay-prep: support new read/write APIs
Added support for read2, write2, aio_read2, and aio_write2 APIs.

Fixes: 13325
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-07 15:41:23 -04:00
Jason Dillaman
a1e99f06a7 rbd-replay-prep: avoid using assert statements on user inputs
Fixes: #13220
Backport: hammer
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2015-10-07 15:41:23 -04:00
Greg Farnum
84903b3254 Merge branch 'infernalis' 2015-10-07 10:56:35 -07:00
Gregory Farnum
1a421975bc Merge pull request #6170 from jcsp/wip-spurious-warning
mds: avoid emitting cap warnings before evicting session

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2015-10-07 10:52:04 -07:00