]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoMerge pull request #16186 from smithfarm/wip-20264-kraken
Nathan Cutler [Tue, 1 Aug 2017 12:15:33 +0000 (14:15 +0200)]
Merge pull request #16186 from smithfarm/wip-20264-kraken

kraken: rbd: [cli] ensure positional arguments exist before casting

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #16342 from dillaman/wip-20630-kraken
Nathan Cutler [Tue, 1 Aug 2017 12:12:58 +0000 (14:12 +0200)]
Merge pull request #16342 from dillaman/wip-20630-kraken

kraken: tests: qa/tasks: rbd-mirror daemon not properly run in foreground mode

Reviewed-by: Nathan Cutler <ncutler@suse.com>
7 years agoMerge pull request #16290 from smithfarm/wip-19759-kraken
Nathan Cutler [Tue, 1 Aug 2017 11:14:09 +0000 (13:14 +0200)]
Merge pull request #16290 from smithfarm/wip-19759-kraken

kraken: rgw: multisite: after CreateBucket is forwarded to master, local bucket may use different value for bucket index shards

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #16180 from smithfarm/wip-20347-kraken
Nathan Cutler [Tue, 1 Aug 2017 11:12:37 +0000 (13:12 +0200)]
Merge pull request #16180 from smithfarm/wip-20347-kraken

kraken: rgw: meta sync thread crash at RGWMetaSyncShardCR

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #16190 from smithfarm/wip-20026-kraken
Nathan Cutler [Tue, 1 Aug 2017 10:47:45 +0000 (12:47 +0200)]
Merge pull request #16190 from smithfarm/wip-20026-kraken

kraken: mds: unresponsive when truncating a very large file

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #15526 from badone/wip-async-sleep-timer-fix-kraken
Nathan Cutler [Tue, 1 Aug 2017 09:08:47 +0000 (11:08 +0200)]
Merge pull request #15526 from badone/wip-async-sleep-timer-fix-kraken

kraken: osd: Implement asynchronous scrub sleep

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #16137 from smithfarm/wip-20024-kraken
Nathan Cutler [Mon, 31 Jul 2017 14:47:45 +0000 (16:47 +0200)]
Merge pull request #16137 from smithfarm/wip-20024-kraken

kraken: tests: HEALTH_WARN pool rbd pg_num 244 > pgp_num 224 during upgrade

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #14734 from smithfarm/wip-19670-kraken
Nathan Cutler [Mon, 31 Jul 2017 13:31:12 +0000 (15:31 +0200)]
Merge pull request #14734 from smithfarm/wip-19670-kraken

kraken: build/ops: logrotate is missing from debian package (kraken, master)

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16166 from smithfarm/wip-19840-kraken
Nathan Cutler [Mon, 31 Jul 2017 13:21:02 +0000 (15:21 +0200)]
Merge pull request #16166 from smithfarm/wip-19840-kraken

kraken: rgw: civetweb frontend segfaults in Luminous

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
7 years agoMerge pull request #13871 from smithfarm/wip-19162-kraken
Nathan Cutler [Mon, 31 Jul 2017 10:32:45 +0000 (12:32 +0200)]
Merge pull request #13871 from smithfarm/wip-19162-kraken

kraken: rgw: rgw_file: fix marker computation

7 years agoMerge pull request #16133 from smithfarm/wip-18378-kraken
Nathan Cutler [Mon, 31 Jul 2017 10:26:47 +0000 (12:26 +0200)]
Merge pull request #16133 from smithfarm/wip-18378-kraken

kraken: msg/simple/SimpleMessenger.cc: 239: FAILED assert(!cleared)

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #16134 from smithfarm/wip-19340-kraken
Nathan Cutler [Mon, 31 Jul 2017 10:23:08 +0000 (12:23 +0200)]
Merge pull request #16134 from smithfarm/wip-19340-kraken

kraken: An OSD was seen getting ENOSPC even with osd_failsafe_full_ratio passed

Reviewed-by: David Zafman <dzafman@redhat.com>
7 years agoosdc/Filer: truncate large file party by party 16190/head
Yan, Zheng [Tue, 25 Apr 2017 08:21:24 +0000 (16:21 +0800)]
osdc/Filer: truncate large file party by party

Fixes: http://tracker.ceph.com/issues/19755
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 5fab215e461e5ecc36c0f9d9ea867f6c45e80263)

Conflicts:
src/osdc/Filer.h
src/osdc/Filer.cc
src/mds/MDCache.cc

7 years agoMerge pull request #16131 from smithfarm/wip-swift-kraken
Nathan Cutler [Mon, 31 Jul 2017 09:58:20 +0000 (11:58 +0200)]
Merge pull request #16131 from smithfarm/wip-swift-kraken

tests: swift.py: clone the ceph-jewel branch

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoosd: Move scrub sleep timer to osdservice 15526/head
Brad Hubbard [Mon, 22 May 2017 03:21:25 +0000 (13:21 +1000)]
osd: Move scrub sleep timer to osdservice

PR 14886 erroneously creates a scrub sleep timer for every pg resulting
in a proliferation of threads. Move the timer to the osd service so
there can be only one.

Fixes: http://tracker.ceph.com/issues/19986
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit f110a82437df79dc20207d296e8229fc0e9ce18b)

7 years agoosd: Implement asynchronous scrub sleep
Brad Hubbard [Mon, 24 Apr 2017 04:10:47 +0000 (14:10 +1000)]
osd: Implement asynchronous scrub sleep

Rather than blocking the main op queue just do an async sleep.

Fixes: http://tracker.ceph.com/issues/19497
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit 7af3e86c2e4992db35637864b83832535c94d0e6)

7 years agoMerge pull request #16493 from smithfarm/wip-suppress-upgrade-fail
Nathan Cutler [Tue, 25 Jul 2017 05:14:37 +0000 (07:14 +0200)]
Merge pull request #16493 from smithfarm/wip-suppress-upgrade-fail

tests: run certain upgrade/jewel-x tests on Xenial only

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #14597 from gregsfortytwo/wip-kraken-snaptrim
Nathan Cutler [Tue, 25 Jul 2017 05:13:48 +0000 (07:13 +0200)]
Merge pull request #14597 from gregsfortytwo/wip-kraken-snaptrim

kraken: core: improve control and throttling of the snap trimmer

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agotests: upgrade/jewel-x/parallel: drop duplicate kraken.yaml 16493/head
Nathan Cutler [Sat, 22 Jul 2017 08:13:22 +0000 (10:13 +0200)]
tests: upgrade/jewel-x/parallel: drop duplicate kraken.yaml

This yaml file has the effect of re-running "ceph osd set require_kraken_osds"
at the very end of the test. Drop it.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agotests: run certain upgrade/jewel-x tests on Xenial only
Nathan Cutler [Fri, 21 Jul 2017 22:06:48 +0000 (00:06 +0200)]
tests: run certain upgrade/jewel-x tests on Xenial only

This PR drops two upgrade/jewel-x test cases that are not compatible with
https://github.com/ceph/ceph/pull/14597

Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agotests: swift.py: clone the ceph-jewel branch 16131/head
Nathan Cutler [Sun, 25 Jun 2017 07:27:47 +0000 (09:27 +0200)]
tests: swift.py: clone the ceph-jewel branch

The master branch of ceph/swift.git contains tests that are incompatible with
Jewel and Hammer. The ceph-jewel branch omits these tests.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit a86ce728954a765797ce634025d43650d990e480)

Conflicts:
    qa/tasks/swift.py: clone ceph-kraken branch instead of ceph-jewel

8 years agoMerge pull request #16111 from smithfarm/wip-20497-kraken
Nathan Cutler [Fri, 21 Jul 2017 06:22:25 +0000 (08:22 +0200)]
Merge pull request #16111 from smithfarm/wip-20497-kraken

kraken: tests: insufficient timeout in radosbench task

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
8 years agorgw: lease_stack: use reset method instead of assignment 16180/head
Nathan Cutler [Thu, 6 Jul 2017 18:17:49 +0000 (20:17 +0200)]
rgw: lease_stack: use reset method instead of assignment

It seems that the intent of 45877d38fd9a385b2f8b13e90be94d784898b0b3 was to
change all instances of "lease_stack = ..." to "lease_stack.reset(...)", but
this one was missed.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit fc425afeb2e2a6ba3c98c612b3977aea619c9f73)

Conflicts:
src/rgw/rgw_sync.cc (trivial)

8 years agoMerge pull request #16178 from smithfarm/wip-20268-kraken
Nathan Cutler [Thu, 20 Jul 2017 14:38:27 +0000 (16:38 +0200)]
Merge pull request #16178 from smithfarm/wip-20268-kraken

kraken: rgw: get wrong content when download object with specific range when compression was enabled

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #16114 from smithfarm/wip-20500-kraken
Nathan Cutler [Wed, 19 Jul 2017 21:09:32 +0000 (23:09 +0200)]
Merge pull request #16114 from smithfarm/wip-20500-kraken

kraken: cephfs: src/test/pybind/test_cephfs.py fails

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #16108 from smithfarm/wip-19763-kraken
Nathan Cutler [Wed, 19 Jul 2017 21:03:19 +0000 (23:03 +0200)]
Merge pull request #16108 from smithfarm/wip-19763-kraken

kraken: cephfs: non-local quota changes not visible until some IO is done

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #16107 from smithfarm/wip-19710-kraken
Nathan Cutler [Wed, 19 Jul 2017 21:02:09 +0000 (23:02 +0200)]
Merge pull request #16107 from smithfarm/wip-19710-kraken

kraken: mds: enable daemon to start when session ino info is corrupt

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #16106 from smithfarm/wip-19680-kraken
Nathan Cutler [Wed, 19 Jul 2017 21:01:01 +0000 (23:01 +0200)]
Merge pull request #16106 from smithfarm/wip-19680-kraken

kraken: mds: damage reporting by ino number is useless

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #16105 from smithfarm/wip-19678-kraken
Nathan Cutler [Wed, 19 Jul 2017 21:00:13 +0000 (23:00 +0200)]
Merge pull request #16105 from smithfarm/wip-19678-kraken

kraken: cephfs: ceph-fuse does not recover after lost connection to MDS

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #16104 from smithfarm/wip-19676-kraken
Nathan Cutler [Wed, 19 Jul 2017 20:58:56 +0000 (22:58 +0200)]
Merge pull request #16104 from smithfarm/wip-19676-kraken

kraken: cephfs: Test failure: test_data_isolated (tasks.cephfs.test_volume_client.TestVolumeClient)

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #16103 from smithfarm/wip-19674-kraken
Nathan Cutler [Wed, 19 Jul 2017 20:56:04 +0000 (22:56 +0200)]
Merge pull request #16103 from smithfarm/wip-19674-kraken

kraken: cephfs: mds is crushed, after I set about 400 64KB xattr kv pairs to a file

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #16102 from smithfarm/wip-19672-kraken
Nathan Cutler [Wed, 19 Jul 2017 20:55:17 +0000 (22:55 +0200)]
Merge pull request #16102 from smithfarm/wip-19672-kraken

kraken: mds: assert fail when shutting down

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #16101 from smithfarm/wip-19669-kraken
Nathan Cutler [Wed, 19 Jul 2017 20:54:07 +0000 (22:54 +0200)]
Merge pull request #16101 from smithfarm/wip-19669-kraken

kraken: mds: daemon goes readonly writing backtrace for a file whose data pool has been removed

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #16100 from smithfarm/wip-19667-kraken
Nathan Cutler [Wed, 19 Jul 2017 20:53:11 +0000 (22:53 +0200)]
Merge pull request #16100 from smithfarm/wip-19667-kraken

kraken: cephfs: mount point break off problem after mds switch

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #16099 from smithfarm/wip-19664-kraken
Nathan Cutler [Wed, 19 Jul 2017 20:05:12 +0000 (22:05 +0200)]
Merge pull request #16099 from smithfarm/wip-19664-kraken

kraken: mds: C_MDSInternalNoop::complete doesn't free itself

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #14998 from jan--f/wip-19845-kraken
Nathan Cutler [Wed, 19 Jul 2017 20:03:52 +0000 (22:03 +0200)]
Merge pull request #14998 from jan--f/wip-19845-kraken

kraken: cephfs: normalize file open flags internally used by cephfs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #16168 from smithfarm/wip-20031-kraken
Nathan Cutler [Wed, 19 Jul 2017 14:51:05 +0000 (16:51 +0200)]
Merge pull request #16168 from smithfarm/wip-20031-kraken

kraken: rgw: Swift's at-root features (/crossdomain.xml, /info, /healthcheck) are broken

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #16164 from smithfarm/wip-19777-kraken
Nathan Cutler [Wed, 19 Jul 2017 14:15:21 +0000 (16:15 +0200)]
Merge pull request #16164 from smithfarm/wip-19777-kraken

kraken: rgw: swift: disable revocation thread under certain circumstances

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #16191 from smithfarm/wip-20028-kraken
Nathan Cutler [Wed, 19 Jul 2017 13:43:16 +0000 (15:43 +0200)]
Merge pull request #16191 from smithfarm/wip-20028-kraken

kraken: cephfs: Deadlock on two ceph-fuse clients accessing the same file

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #16183 from smithfarm/wip-20405-kraken
Nathan Cutler [Wed, 19 Jul 2017 13:32:52 +0000 (15:32 +0200)]
Merge pull request #16183 from smithfarm/wip-20405-kraken

kraken: rgw: Lifecycle thread will still handle the bucket even if it has been removed

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
8 years agoMerge pull request #16181 from smithfarm/wip-20363-kraken
Nathan Cutler [Wed, 19 Jul 2017 13:31:50 +0000 (15:31 +0200)]
Merge pull request #16181 from smithfarm/wip-20363-kraken

kraken: rgw: VersionIdMarker and NextVersionIdMarker are not returned when listing object versions

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #16179 from smithfarm/wip-20269-kraken
Nathan Cutler [Wed, 19 Jul 2017 13:31:14 +0000 (15:31 +0200)]
Merge pull request #16179 from smithfarm/wip-20269-kraken

kraken: rgw: wrong object size after copy of uncompressed multipart objects

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #16174 from smithfarm/wip-20261-kraken
Nathan Cutler [Wed, 19 Jul 2017 13:30:33 +0000 (15:30 +0200)]
Merge pull request #16174 from smithfarm/wip-20261-kraken

kraken: rgw: 'radosgw-admin usage show' listing 0 bytes_sent/received

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #16173 from smithfarm/wip-20156-kraken
Nathan Cutler [Wed, 19 Jul 2017 13:29:57 +0000 (15:29 +0200)]
Merge pull request #16173 from smithfarm/wip-20156-kraken

kraken: fix: rgw crashed caused by shard id out of range when listing data log

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #16165 from smithfarm/wip-19839-kraken
Nathan Cutler [Wed, 19 Jul 2017 13:29:22 +0000 (15:29 +0200)]
Merge pull request #16165 from smithfarm/wip-19839-kraken

kraken: rgw: reduce log level of 'storing entry at' in cls_log

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #16163 from smithfarm/wip-19766-kraken
Nathan Cutler [Wed, 19 Jul 2017 13:28:30 +0000 (15:28 +0200)]
Merge pull request #16163 from smithfarm/wip-19766-kraken

kraken: rgw: when uploading the objects continuesly in the versioned bucket, some objects will not sync

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #16162 from smithfarm/wip-19725-kraken
Nathan Cutler [Wed, 19 Jul 2017 13:27:38 +0000 (15:27 +0200)]
Merge pull request #16162 from smithfarm/wip-19725-kraken

kraken: rgw: S3 v4 authentication issue with X-Amz-Expires

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #16161 from smithfarm/wip-19614-kraken
Nathan Cutler [Wed, 19 Jul 2017 13:25:48 +0000 (15:25 +0200)]
Merge pull request #16161 from smithfarm/wip-19614-kraken

kraken: multisite: rest api fails to decode large period on 'period commit'

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #16139 from smithfarm/wip-20147-kraken
Nathan Cutler [Wed, 19 Jul 2017 13:24:59 +0000 (15:24 +0200)]
Merge pull request #16139 from smithfarm/wip-20147-kraken

kraken: rgw: 'gc list --include-all' command infinite loop the first 1000 items

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #16096 from smithfarm/wip-19336-kraken
Nathan Cutler [Wed, 19 Jul 2017 12:29:31 +0000 (14:29 +0200)]
Merge pull request #16096 from smithfarm/wip-19336-kraken

kraken: rbd: refuse to use an ec pool that doesn't support overwrites

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #16097 from smithfarm/wip-19609-kraken
Nathan Cutler [Wed, 19 Jul 2017 12:28:08 +0000 (14:28 +0200)]
Merge pull request #16097 from smithfarm/wip-19609-kraken

kraken: tests: [librados_test_stub] cls_cxx_map_get_XYZ methods don't return correct value

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #16184 from smithfarm/wip-20154-kraken
Nathan Cutler [Wed, 19 Jul 2017 12:27:11 +0000 (14:27 +0200)]
Merge pull request #16184 from smithfarm/wip-20154-kraken

kraken: rbd: Potential IO hang if image is flattened while read request is in-flight

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #16187 from smithfarm/wip-20266-kraken
Nathan Cutler [Wed, 19 Jul 2017 12:24:05 +0000 (14:24 +0200)]
Merge pull request #16187 from smithfarm/wip-20266-kraken

kraken: rbd: [api] is_exclusive_lock_owner shouldn't return -EBUSY

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #16195 from dillaman/wip-20351-kraken
Nathan Cutler [Wed, 19 Jul 2017 12:22:57 +0000 (14:22 +0200)]
Merge pull request #16195 from dillaman/wip-20351-kraken

kraken: tests: test/librbd: decouple ceph_test_librbd_api from libceph-common

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #15486 from dillaman/wip-20022-kraken
Nathan Cutler [Wed, 19 Jul 2017 10:56:47 +0000 (12:56 +0200)]
Merge pull request #15486 from dillaman/wip-20022-kraken

kraken: rbd-mirror: ensure missing images are re-synced when detected

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #14540 from smithfarm/wip-18910-kraken
Nathan Cutler [Wed, 19 Jul 2017 10:50:22 +0000 (12:50 +0200)]
Merge pull request #14540 from smithfarm/wip-18910-kraken

kraken: rbd-nbd: check /sys/block/nbdX/size to ensure kernel mapped correctly

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #16140 from smithfarm/wip-20271-kraken
Nathan Cutler [Wed, 19 Jul 2017 06:05:11 +0000 (08:05 +0200)]
Merge pull request #16140 from smithfarm/wip-20271-kraken

kraken: tests: LibRadosMiscConnectFailure.ConnectFailure hang

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #16112 from smithfarm/wip-20499-kraken
Nathan Cutler [Tue, 18 Jul 2017 21:14:59 +0000 (23:14 +0200)]
Merge pull request #16112 from smithfarm/wip-20499-kraken

kraken: tests: ObjectStore/StoreTest.OnodeSizeTracking/2 fails on bluestore

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14960 from yehudasa/wip-19704
Yehuda Sadeh [Tue, 18 Jul 2017 20:58:14 +0000 (13:58 -0700)]
Merge pull request #14960 from yehudasa/wip-19704

kraken: civetweb: move to post 1.8 version

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoosd: do not default-abort on leaked pg refs 14597/head
Greg Farnum [Mon, 10 Jul 2017 20:33:26 +0000 (13:33 -0700)]
osd: do not default-abort on leaked pg refs

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 4caf2df0c380a1281db9509b3feb342705512b58)

8 years agoosd: shutdown our reserver_finisher earlier in the process
Greg Farnum [Fri, 26 May 2017 05:14:38 +0000 (22:14 -0700)]
osd: shutdown our reserver_finisher earlier in the process

This finisher thread has a lot of callbacks which can hold PGRefs. Make
sure we drain them out before checking that all the PGs have finished
and have no outstanding references.

Moving this should be safe; we've already stopped the op thread et al
and the only things still running are the OSDService's objecter_finisher,
recovery_request_timer, and snap_sleep_timer (which has definitely been emptied
by the time we get here as it's synchronously cleared out on PG shutdown).

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 66ea9c1f66ae31035e62bd4335b08948b1e8e5e2)

8 years agoosd: Reset() the snaptrimmer on shutdown
Greg Farnum [Fri, 26 May 2017 04:52:49 +0000 (21:52 -0700)]
osd: Reset() the snaptrimmer on shutdown

We were failing to exit various wait states which held PGRefs. Error!

Fixes: http://tracker.ceph.com/issues/19931
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit b0e9deeea8a8e90f6d7e9d56b6b4aed890e01d7b)

8 years agoosd: print out pg debug ref counts on acquire/drop
Greg Farnum [Thu, 25 May 2017 01:43:34 +0000 (18:43 -0700)]
osd: print out pg debug ref counts on acquire/drop

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit a3b028a6d1ba74ed975ebd665b1b50fb7e5039a4)

8 years agomon: Fix status output warning for mon_warn_osd_usage_min_max_delta 16134/head
David Zafman [Fri, 7 Jul 2017 17:53:41 +0000 (10:53 -0700)]
mon: Fix status output warning for mon_warn_osd_usage_min_max_delta

Fixes: http://tracker.ceph.com/issues/20544
Caued by: 489e810c37ed6fb9d32d1015634041a577501ee4

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 56f9808016ab289bdc0ce7cfbb0503c78b509593)

Conflicts:
    src/mon/PGMap.cc:
        kraken has no daa0793c393a21bd2dd2ec52a0efd181e1032400 so we manually
        apply the changes from 56f9808016ab289bdc0ce7cfbb0503c78b509593 to
        src/mon/PGMonitor.cc instead of to src/mon/PGMap.cc

8 years agomon/PGMonitor: clean up min/max span warning
Sage Weil [Tue, 18 Apr 2017 17:54:56 +0000 (13:54 -0400)]
mon/PGMonitor: clean up min/max span warning

Clean up option naming.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 489e810c37ed6fb9d32d1015634041a577501ee4)

8 years agobluestore: Fix BlueStore::statfs available amount to not include bluefs min reserved
David Zafman [Fri, 17 Feb 2017 20:27:36 +0000 (12:27 -0800)]
bluestore: Fix BlueStore::statfs available amount to not include bluefs min reserved

This fixes OSD crashes because checking osd_failsafe_full_ratio won't work
without accurate statfs information.

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 72d83f848a35e8831d66e8529c4e26f51e845da6)

8 years agoosd: Round fullness in message to correspond to df -h
David Zafman [Fri, 17 Feb 2017 06:23:06 +0000 (22:23 -0800)]
osd: Round fullness in message to correspond to df -h

This really only works after journal drains because
we adjust for the journal.

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 26dcb591f9af01ed444aa758c3d601e7f67261b2)

8 years agofilestore: Account for dirty journal data in statfs
David Zafman [Fri, 17 Feb 2017 01:25:12 +0000 (17:25 -0800)]
filestore: Account for dirty journal data in statfs

Fixes: http://tracker.ceph.com/issues/16878
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 78adb70c21c6b8e6a9191b76917919b125a9490f)

8 years agomon: Add warning if diff in OSD usage > config mon_warn_osd_usage_percent (10%)
David Zafman [Wed, 15 Feb 2017 00:37:07 +0000 (16:37 -0800)]
mon: Add warning if diff in OSD usage > config mon_warn_osd_usage_percent (10%)

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit c8004e6558359fb542e45bb4b483a6c91afdc0b4)

8 years agomon: Bump min in ratio to 75%
David Zafman [Tue, 14 Feb 2017 22:40:05 +0000 (14:40 -0800)]
mon: Bump min in ratio to 75%

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 830cc7aa7be1ccd8f54f056b6a58e923cadd1c2b)

8 years agoosd: Fix ENOSPC crash message text
David Zafman [Tue, 14 Feb 2017 22:38:53 +0000 (14:38 -0800)]
osd: Fix ENOSPC crash message text

Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit 50cfe03fcba253c8380b21043ed03879134d6836)

8 years agoMerge pull request #16143 from smithfarm/wip-20365-kraken
Nathan Cutler [Tue, 18 Jul 2017 17:50:46 +0000 (19:50 +0200)]
Merge pull request #16143 from smithfarm/wip-20365-kraken

kraken: mon: osd crush set crushmap need sanity check

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #16138 from smithfarm/wip-20034-kraken
Nathan Cutler [Tue, 18 Jul 2017 17:48:51 +0000 (19:48 +0200)]
Merge pull request #16138 from smithfarm/wip-20034-kraken

kraken: ceph-disk: Racing between partition creation & device node creation

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #16135 from smithfarm/wip-20010-kraken
Nathan Cutler [Tue, 18 Jul 2017 17:47:34 +0000 (19:47 +0200)]
Merge pull request #16135 from smithfarm/wip-20010-kraken

kraken: ceph-disk: separate ceph-osd --check-needs-* logs

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoqa/tasks: rbd-mirror daemon not properly run in foreground mode 16342/head
Jason Dillaman [Fri, 14 Jul 2017 14:32:28 +0000 (10:32 -0400)]
qa/tasks: rbd-mirror daemon not properly run in foreground mode

Fixes: http://tracker.ceph.com/issues/20630
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 4fa1918717b25a5ffafbf649eedcfe7d5ab829c2)

8 years agorgw: when create_bucket use the same num_shards with info.num_shards 16290/head
lu.shasha [Tue, 9 May 2017 07:05:03 +0000 (15:05 +0800)]
rgw: when create_bucket use the same num_shards with info.num_shards

pr #14388 only fix the num_shards in BucketInfo, "init_bucket_index" function still use local num_shards

Fixes: http://tracker.ceph.com/issues/19745
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
(cherry picked from commit 4ce64a190b4ff36985e785e574c077d39796feea)

Conflicts:
src/rgw/rgw_rados.cc - init_bucket_index() called earlier

8 years agorgw: using the same bucket num_shards as master zg when create bucket in secondary zg
lu.shasha [Fri, 7 Apr 2017 07:34:27 +0000 (15:34 +0800)]
rgw: using the same bucket num_shards as master zg when create bucket in secondary zg

create bucket in secondary zonegroup will forward to master. The master may have different num_shards option.
So when create bucket in local, should use master's num_shards instead of local num_shards option.

Fixes: http://tracker.ceph.com/issues/19745
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
(cherry picked from commit a34c4b8fb13dd5590eb3c6ecb5e55207ed8e3ee8)

Conflicts:
    src/rgw/rgw_op.cc - no RGWBulkUploadOp:: methods in kraken; modifications
        to RGWBulkUploadOp::handle_dir() omitted

8 years agoosd: repair the PG_DEBUG_REFS build
Greg Farnum [Mon, 10 Jul 2017 20:31:21 +0000 (13:31 -0700)]
osd: repair the PG_DEBUG_REFS build

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit ec4185d1980b48b01687a177248d0894f326dc37)

Conflicts:
src/osd/OSD.cc
src/osd/Session.h

8 years agoosd: use PGRef instead of boost::intrusive_ptr<PG> everywhere
Greg Farnum [Wed, 24 May 2017 07:19:51 +0000 (00:19 -0700)]
osd: use PGRef instead of boost::intrusive_ptr<PG> everywhere

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
(cherry picked from commit 306ad85f0fb4597ba3bb3c04a67abdaba556ba74)

8 years agoMerge pull request #16215 from liewegas/wip-17743
Sage Weil [Sun, 9 Jul 2017 02:39:59 +0000 (21:39 -0500)]
Merge pull request #16215 from liewegas/wip-17743

kraken: CMakeLists.txt: disable memstore make check test

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoCMakeLists.txt: disable memstore make check test 16215/head
Sage Weil [Fri, 7 Jul 2017 15:38:25 +0000 (11:38 -0400)]
CMakeLists.txt: disable memstore make check test

This fails frequently on kraken, but is probably a wontfix.

See http://tracker.ceph.com/issues/17743

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agorbd-mirror: ensure missing images are re-synced when detected 15486/head
Jason Dillaman [Thu, 4 May 2017 01:36:21 +0000 (21:36 -0400)]
rbd-mirror: ensure missing images are re-synced when detected

Fixes: http://tracker.ceph.com/issues/19811
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 74bd4f230a0cb7b709f2cb5c6db3dc79f0d8dede)

Conflicts:
src/test/rbd_mirror/image_replayer/test_mock_BootstrapRequest.cc: trivial resolution
src/tools/rbd_mirror/image_replayer/BootstrapRequest.h: trivial resolution

8 years agoMerge pull request #14067 from asheplyakov/19322-bp-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:49:51 +0000 (09:49 +0200)]
Merge pull request #14067 from asheplyakov/19322-bp-kraken

kraken: rgw: fix break inside of yield in RGWFetchAllMetaCR

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14509 from smithfarm/wip-18499-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:48:57 +0000 (09:48 +0200)]
Merge pull request #14509 from smithfarm/wip-18499-kraken

kraken: rgw: Realm set does not create a new period

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14511 from smithfarm/wip-18772-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:48:01 +0000 (09:48 +0200)]
Merge pull request #14511 from smithfarm/wip-18772-kraken

kraken: rgw: crash when updating period with placement group

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14513 from smithfarm/wip-18843-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:45:15 +0000 (09:45 +0200)]
Merge pull request #14513 from smithfarm/wip-18843-kraken

kraken: rgw: usage stats and quota are not operational for multi-tenant users

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14515 from smithfarm/wip-18904-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:44:21 +0000 (09:44 +0200)]
Merge pull request #14515 from smithfarm/wip-18904-kraken

kraken: rgw: first write also tries to read object

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14516 from smithfarm/wip-18909-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:42:36 +0000 (09:42 +0200)]
Merge pull request #14516 from smithfarm/wip-18909-kraken

kraken: rgw: the swift container acl does not support field .ref

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #14517 from smithfarm/wip-19047-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:25:43 +0000 (09:25 +0200)]
Merge pull request #14517 from smithfarm/wip-19047-kraken

kraken: rgw: fix use of marker in List::list_objects()

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14524 from smithfarm/wip-19477-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:24:13 +0000 (09:24 +0200)]
Merge pull request #14524 from smithfarm/wip-19477-kraken

kraken: rgw: S3 v4 authentication issue with X-Amz-Expires

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #14525 from smithfarm/wip-19479-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:22:26 +0000 (09:22 +0200)]
Merge pull request #14525 from smithfarm/wip-19479-kraken

kraken: rgw: zonegroupmap set does not work

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14528 from smithfarm/wip-19534-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:21:22 +0000 (09:21 +0200)]
Merge pull request #14528 from smithfarm/wip-19534-kraken

kraken: rgw: Error parsing xml when get bucket lifecycle

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14606 from asheplyakov/19608-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:19:08 +0000 (09:19 +0200)]
Merge pull request #14606 from asheplyakov/19608-kraken

kraken: rgw: multisite: fetch_remote_obj() gets wrong version when copying from remote

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #15384 from asheplyakov/20015-bp-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:18:10 +0000 (09:18 +0200)]
Merge pull request #15384 from asheplyakov/20015-bp-kraken

kraken: cls/rgw: list_plain_entries() stops before bi_log entries

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14522 from smithfarm/wip-19472-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:03:16 +0000 (09:03 +0200)]
Merge pull request #14522 from smithfarm/wip-19472-kraken

kraken: rgw: add the remove-x-delete feature to cancel swift object expiration

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #14523 from smithfarm/wip-19475-kraken
Nathan Cutler [Fri, 7 Jul 2017 07:00:43 +0000 (09:00 +0200)]
Merge pull request #14523 from smithfarm/wip-19475-kraken

kraken: rgw: multisite: EPERM when trying to read SLO objects as system/admin user

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #14519 from smithfarm/wip-19175-kraken
Nathan Cutler [Fri, 7 Jul 2017 06:58:44 +0000 (08:58 +0200)]
Merge pull request #14519 from smithfarm/wip-19175-kraken

kraken: swift API: cannot disable object versioning with empty X-Versions-Location

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #14526 from smithfarm/wip-19524-kraken
Nathan Cutler [Fri, 7 Jul 2017 06:56:47 +0000 (08:56 +0200)]
Merge pull request #14526 from smithfarm/wip-19524-kraken

kraken: rgw: 'radosgw-admin zone create' command with specified zone-id creates a zone with different id

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #14529 from smithfarm/wip-19573-kraken
Nathan Cutler [Fri, 7 Jul 2017 06:55:30 +0000 (08:55 +0200)]
Merge pull request #14529 from smithfarm/wip-19573-kraken

kraken: rgw: Response header of swift API returned by radosgw does not contain x-openstack-request-id. But Swift returns it.

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agotest/librbd: decouple ceph_test_librbd_api from libceph-common 16195/head
Kefu Chai [Sat, 10 Jun 2017 15:59:19 +0000 (23:59 +0800)]
test/librbd: decouple ceph_test_librbd_api from libceph-common

Fixes: http://tracker.ceph.com/issues/20175
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit b7287fdc4d70c5ecedda78ae367b98e5d8f61c5b)

Conflicts:
src/test/librbd/CMakeLists.txt: trivial resolution