]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agocheck feature bits when encoding objectstore_perf_stat_t 20378/head
Kefu Chai [Tue, 23 Jan 2018 07:30:58 +0000 (15:30 +0800)]
check feature bits when encoding objectstore_perf_stat_t

OS_PERF_STAT_NS feature bit is added. it's sharing the same bit with
QOS_DMC.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20294 from rzarzynski/wip-bs-drop-std_function
Kefu Chai [Fri, 9 Feb 2018 02:45:24 +0000 (10:45 +0800)]
Merge pull request #20294 from rzarzynski/wip-bs-drop-std_function

os/bluestore: avoid overhead of std::function in blob_t.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19232 from socketpair/precision
Kefu Chai [Fri, 9 Feb 2018 02:44:27 +0000 (10:44 +0800)]
Merge pull request #19232 from socketpair/precision

mgr: increase time resolution of Commit/Apply OSD latencies.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18804 from majianpeng/bluestore-collection-prealloc
Kefu Chai [Fri, 9 Feb 2018 02:43:24 +0000 (10:43 +0800)]
Merge pull request #18804 from majianpeng/bluestore-collection-prealloc

os/bluestore: Prealloc memory avoid realloc in list_collection.

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18494 from ifed01/wip-stupidalloc-fix2
Kefu Chai [Fri, 9 Feb 2018 02:42:43 +0000 (10:42 +0800)]
Merge pull request #18494 from ifed01/wip-stupidalloc-fix2

os/bluestore: do not assert if BlueFS rebalance is unable to allocate sufficient space

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18343 from shinobu-x/sk-remove-osdmap
Kefu Chai [Fri, 9 Feb 2018 02:41:50 +0000 (10:41 +0800)]
Merge pull request #18343 from shinobu-x/sk-remove-osdmap

mon/PGMap: Remove unnecessary header

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #19954 into master
Patrick Donnelly [Fri, 9 Feb 2018 02:17:15 +0000 (18:17 -0800)]
Merge PR #19954 into master

* refs/pull/19954/head:
test/encoding: refactor to avoid escaping shell magic
mds: minor refactor of SimpleLock
mds: track Capability in mempool
mds: move CInode container members to mempool
mds: move CDentry container members to mempool
mds: move CDir container members to mempool
mds: put MDSCacheObject compact_map in mempool
common: use size_t for object size
mds: convert to allocator agnostic string_view
mds: simplify initialization
compact_*: support mempool allocated containers

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge pull request #20007 from mogeb/steady-clock-librbd
Jason Dillaman [Fri, 9 Feb 2018 00:20:21 +0000 (19:20 -0500)]
Merge pull request #20007 from mogeb/steady-clock-librbd

librbd: use steady clock to measure elapsed time in AioCompletion

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20008 from mogeb/steady-clock-tools-rbd
Jason Dillaman [Fri, 9 Feb 2018 00:20:07 +0000 (19:20 -0500)]
Merge pull request #20008 from mogeb/steady-clock-tools-rbd

tools/rbd: use steady clock in bencher

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20218 from shun-s/wip-speedup-diskusage-resize
Jason Dillaman [Fri, 9 Feb 2018 00:19:52 +0000 (19:19 -0500)]
Merge pull request #20218 from shun-s/wip-speedup-diskusage-resize

librbd: speed up object map disk usage and resize

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20311 from Songweibin/wip-group-snap-ls
Jason Dillaman [Fri, 9 Feb 2018 00:19:35 +0000 (19:19 -0500)]
Merge pull request #20311 from Songweibin/wip-group-snap-ls

rbd: do not show title if there is no group snapshot

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20349 from trociny/wip-22932
Jason Dillaman [Fri, 9 Feb 2018 00:19:12 +0000 (19:19 -0500)]
Merge pull request #20349 from trociny/wip-22932

rbd-mirror: fix potential infinite loop when formatting status message

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge PR #20310 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:30:04 +0000 (13:30 -0800)]
Merge PR #20310 into master

* refs/pull/20310/head:
qa: adjust cephfs full test for kclient

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20148 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:05:26 +0000 (13:05 -0800)]
Merge PR #20148 into master

* refs/pull/20148/head:
mds: reset connection's priv when marking down connection
mds: fix session reference leak

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20155 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:05:19 +0000 (13:05 -0800)]
Merge PR #20155 into master

* refs/pull/20155/head:
osdc/Journaler: make sure flush() writes enough data

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #20190 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:05:12 +0000 (13:05 -0800)]
Merge PR #20190 into master

* refs/pull/20190/head:
mon: allow removal of tier of ec overwritable pool

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
7 years agoMerge PR #20200 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:05:05 +0000 (13:05 -0800)]
Merge PR #20200 into master

* refs/pull/20200/head:
client: add cap_dirtier_uid/gid to CapSnap

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge PR #20246 into master
Patrick Donnelly [Thu, 8 Feb 2018 21:04:54 +0000 (13:04 -0800)]
Merge PR #20246 into master

* refs/pull/20246/head:
mds: remove extra 0x in ino prints
mds: print inode number not CInode ptr

7 years agoMerge pull request #20367 from ceph/simple-custom-cluster
Alfredo Deza [Thu, 8 Feb 2018 13:48:41 +0000 (08:48 -0500)]
Merge pull request #20367 from ceph/simple-custom-cluster

ceph-volume: adds custom cluster name support to simple

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: use a custom cluster name in simple functional tests 20367/head
Andrew Schoen [Thu, 8 Feb 2018 13:09:57 +0000 (07:09 -0600)]
ceph-volume: use a custom cluster name in simple functional tests

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20305 from xiexingguo/wip-more-balancer-fixes
Xie Xingguo [Thu, 8 Feb 2018 04:30:46 +0000 (12:30 +0800)]
Merge pull request #20305 from xiexingguo/wip-more-balancer-fixes

pybind/mgr/balancer: more specific command outputs

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20355 from luomuyao/typo
Xie Xingguo [Thu, 8 Feb 2018 03:41:48 +0000 (11:41 +0800)]
Merge pull request #20355 from luomuyao/typo

rgw: fix a typo in comment

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agotest/encoding: refactor to avoid escaping shell magic 19954/head
Patrick Donnelly [Thu, 8 Feb 2018 00:03:48 +0000 (16:03 -0800)]
test/encoding: refactor to avoid escaping shell magic

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: minor refactor of SimpleLock
Patrick Donnelly [Wed, 24 Jan 2018 23:32:18 +0000 (15:32 -0800)]
mds: minor refactor of SimpleLock

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: track Capability in mempool
Patrick Donnelly [Wed, 24 Jan 2018 18:34:20 +0000 (10:34 -0800)]
mds: track Capability in mempool

Partial-fix: http://tracker.ceph.com/issues/21402

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: move CInode container members to mempool
Patrick Donnelly [Tue, 16 Jan 2018 02:30:59 +0000 (18:30 -0800)]
mds: move CInode container members to mempool

Partial-fix: http://tracker.ceph.com/issues/21402

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoos/bluestore: avoid overhead of std::function in blob_t. 20294/head
Radoslaw Zarzynski [Sun, 4 Feb 2018 04:45:43 +0000 (05:45 +0100)]
os/bluestore: avoid overhead of std::function in blob_t.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agorgw: fix a typo in comment 20355/head
luomuyao [Thu, 8 Feb 2018 01:02:50 +0000 (09:02 +0800)]
rgw: fix a typo in comment

Signed-off-by: luomuyao <luo.muyao@zte.com.cn>
7 years agoMerge pull request #20161 from tchaikov/wip-20086
Josh Durgin [Wed, 7 Feb 2018 22:43:59 +0000 (14:43 -0800)]
Merge pull request #20161 from tchaikov/wip-20086

test/librados: be more tolerant with timed lock tests

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20173 from liewegas/wip-os-ch
Josh Durgin [Wed, 7 Feb 2018 22:04:08 +0000 (14:04 -0800)]
Merge pull request #20173 from liewegas/wip-os-ch

os: unify Sequencer and CollectionHandle

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoceph-volume: set conf.cluster name during simple activate
Andrew Schoen [Wed, 7 Feb 2018 20:42:24 +0000 (14:42 -0600)]
ceph-volume: set conf.cluster name during simple activate

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20144 from adamemerson/wip-cache-register
Adam C. Emerson [Wed, 7 Feb 2018 18:46:18 +0000 (13:46 -0500)]
Merge pull request #20144 from adamemerson/wip-cache-register

Cache Register!

Provide the ability to examine and delete elements from the cache.

rgw: Add cache introspection and manipulation

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20176 from dillaman/wip-librbd-clone-v2-1
Mykola Golub [Wed, 7 Feb 2018 17:54:50 +0000 (19:54 +0200)]
Merge pull request #20176 from dillaman/wip-librbd-clone-v2-1

librbd: initial hooks for clone v2 support

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agorgw: Add cache introspection and manipulation 20144/head
Adam C. Emerson [Sat, 27 Jan 2018 21:18:53 +0000 (16:18 -0500)]
rgw: Add cache introspection and manipulation

Provide the ability to examine and delete elements from the cache.

Fixes: http://tracker.ceph.com/issues/22603
Fixes: http://tracker.ceph.com/issues/22604
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
7 years agorbd-mirror: fix potential infinite loop when formatting status message 20349/head
Mykola Golub [Wed, 7 Feb 2018 11:09:54 +0000 (13:09 +0200)]
rbd-mirror: fix potential infinite loop when formatting status message

The improvements include:

- tag_tid values should always be increasing, so loop only if
  master.tag_tid > mirror_tag_tid in calculate_behind_master_or_send_update;
- in send_update_tag_cache don't refetch a tag if it is already in the
  cache;
- make fake tags with tag_data.predecessor.tag_tid set to zero;
- make sure the new tag is inserted to the cache if an old entry
  with this id happens to exist.

Fixes: http://tracker.ceph.com/issues/22932
Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20318 from ovh/bp-limit-normalize-key
Kefu Chai [Wed, 7 Feb 2018 14:43:58 +0000 (22:43 +0800)]
Merge pull request #20318 from ovh/bp-limit-normalize-key

common/config: limit calls to normalize_key_name

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #19958 from renhwztetecs/renhw-wip-osd-sighup
Kefu Chai [Wed, 7 Feb 2018 14:40:59 +0000 (22:40 +0800)]
Merge pull request #19958 from renhwztetecs/renhw-wip-osd-sighup

osd: Sign in early SIGHUP signal

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomds: move CDentry container members to mempool
Patrick Donnelly [Mon, 15 Jan 2018 16:28:27 +0000 (08:28 -0800)]
mds: move CDentry container members to mempool

Partial-fix: http://tracker.ceph.com/issues/21402

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: move CDir container members to mempool
Patrick Donnelly [Fri, 12 Jan 2018 19:50:19 +0000 (11:50 -0800)]
mds: move CDir container members to mempool

Partial-fix: http://tracker.ceph.com/issues/21402

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: put MDSCacheObject compact_map in mempool
Patrick Donnelly [Sun, 14 Jan 2018 22:15:08 +0000 (14:15 -0800)]
mds: put MDSCacheObject compact_map in mempool

Partial-fix: http://tracker.ceph.com/issues/21402

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agocommon: use size_t for object size
Patrick Donnelly [Wed, 24 Jan 2018 19:26:42 +0000 (11:26 -0800)]
common: use size_t for object size

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomds: convert to allocator agnostic string_view
Patrick Donnelly [Mon, 15 Jan 2018 22:30:55 +0000 (14:30 -0800)]
mds: convert to allocator agnostic string_view

This is necessary to allow many interfaces to take mempool allocated strings.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #20264 from ceph/wip-rm22620
Andrew Schoen [Wed, 7 Feb 2018 14:21:04 +0000 (15:21 +0100)]
Merge pull request #20264 from ceph/wip-rm22620

ceph-volume dmcrypt support for simple

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20307 from tchaikov/wip-std-filesystem
Kefu Chai [Wed, 7 Feb 2018 13:56:28 +0000 (21:56 +0800)]
Merge pull request #20307 from tchaikov/wip-std-filesystem

test/admin_socket_output: switch to std::experimental::filesystem

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
7 years agoMerge pull request #20324 from tchaikov/wip-cmake-build-boost
Kefu Chai [Wed, 7 Feb 2018 13:53:30 +0000 (21:53 +0800)]
Merge pull request #20324 from tchaikov/wip-cmake-build-boost

cmake: fix the include dir for building boost::python

Reviewed-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
7 years agopybind/mgr/balancer: cancel plan if distribution is already perfect 20305/head
xie xingguo [Fri, 2 Feb 2018 07:24:21 +0000 (15:24 +0800)]
pybind/mgr/balancer: cancel plan if distribution is already perfect

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agopybind/mgr/balancer: allow customized optimization threshold
xie xingguo [Fri, 2 Feb 2018 07:12:49 +0000 (15:12 +0800)]
pybind/mgr/balancer: allow customized optimization threshold

In practice it is hard to achieve a 100% (perfect) balanced distribution.
This patch introduces a user visiable threshold configuration here, which
allow user to define the minimal deviation to trigger an optimization.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agopybind/mgr/balancer: be more specific on creating an optimization plan
xie xingguo [Thu, 1 Feb 2018 07:40:56 +0000 (15:40 +0800)]
pybind/mgr/balancer: be more specific on creating an optimization plan

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #20347 from Songweibin/wip-osd-cleanup
Xie Xingguo [Wed, 7 Feb 2018 07:34:04 +0000 (15:34 +0800)]
Merge pull request #20347 from Songweibin/wip-osd-cleanup

osd: drop redundant comment

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoosd: drop redundant comment 20347/head
songweibin [Wed, 7 Feb 2018 05:53:21 +0000 (13:53 +0800)]
osd: drop redundant comment

Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agoMerge PR #20288 into master
Patrick Donnelly [Wed, 7 Feb 2018 04:38:14 +0000 (20:38 -0800)]
Merge PR #20288 into master

* refs/pull/20288/head:
ptl-tool: open githubmap with utf-8 code

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agomds: remove extra 0x in ino prints 20246/head
Patrick Donnelly [Thu, 1 Feb 2018 23:20:48 +0000 (15:20 -0800)]
mds: remove extra 0x in ino prints

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agotest/objectstore/TestObjectStoreState: make objects match collection 20173/head
Sage Weil [Mon, 5 Feb 2018 17:59:09 +0000 (11:59 -0600)]
test/objectstore/TestObjectStoreState: make objects match collection

- start pool at 1
- make hash fall within pg (just match it for now)

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/ObjectStore: remove void *osr from Transaction
Sage Weil [Wed, 31 Jan 2018 16:48:45 +0000 (10:48 -0600)]
os/ObjectStore: remove void *osr from Transaction

No longer used!  (It was only needed for an ugly FileStore hack.)

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/filestore: do not rely on ObjectStore::Transaction::osr
Sage Weil [Wed, 31 Jan 2018 16:48:20 +0000 (10:48 -0600)]
os/filestore: do not rely on ObjectStore::Transaction::osr

This was used only to name the osr for the purposes of the tracepoint. We
can do that ourselves!

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd: drop explicit calls to osr->flush
Sage Weil [Sat, 27 Jan 2018 17:02:23 +0000 (11:02 -0600)]
osd: drop explicit calls to osr->flush

These are no longer needed as the implementations do it themselves.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PrimaryLogPG: drop unnecessary flush() on shutdown
Sage Weil [Sat, 27 Jan 2018 17:06:00 +0000 (11:06 -0600)]
osd/PrimaryLogPG: drop unnecessary flush() on shutdown

The ObjectStore implementation should handle this.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos: make implementation flush before collection_{list,empty}
Sage Weil [Sat, 27 Jan 2018 16:59:01 +0000 (10:59 -0600)]
os: make implementation flush before collection_{list,empty}

This takes the (awkward) burden off the caller.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/ObjectStore: make all read operations CollectionHandle-based
Sage Weil [Sat, 27 Jan 2018 03:37:56 +0000 (21:37 -0600)]
os/ObjectStore: make all read operations CollectionHandle-based

Drop the coll_t shims, and convert the last few that weren't already
handle-based.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20313 from guzhongyan/fix-22350
Sage Weil [Tue, 6 Feb 2018 20:01:41 +0000 (14:01 -0600)]
Merge pull request #20313 from guzhongyan/fix-22350

osd/OSDMap: misleading message in print_oneline_summary()

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20317 from liewegas/wip-pg-scrub-priority
Sage Weil [Tue, 6 Feb 2018 20:01:19 +0000 (14:01 -0600)]
Merge pull request #20317 from liewegas/wip-pg-scrub-priority

osd/PG: pass scrub priority to replica

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20319 from tchaikov/wip-ops_blocked_by_scrub-cleanup
Sage Weil [Tue, 6 Feb 2018 20:00:53 +0000 (14:00 -0600)]
Merge pull request #20319 from tchaikov/wip-ops_blocked_by_scrub-cleanup

osd: pass ops_blocked_by_scrub() to requeue_scrub()

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoos/bluestore: do not assert on insufficient allocation during bluefs 18494/head
Igor Fedotov [Tue, 6 Feb 2018 17:45:24 +0000 (20:45 +0300)]
os/bluestore: do not assert on insufficient allocation during bluefs
rebalance

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agotest/store_test: add test case to for excessive fragmentation
Igor Fedotov [Tue, 6 Feb 2018 16:50:40 +0000 (19:50 +0300)]
test/store_test: add test case to for excessive fragmentation

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoos/bluestore: fix lack of extent demotion in StupidAllocator::init_rm_free
Igor Fedotov [Mon, 23 Oct 2017 16:32:23 +0000 (09:32 -0700)]
os/bluestore: fix lack of extent demotion in StupidAllocator::init_rm_free

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoceph-volume: do not test custom cluster names with simple 20264/head
Andrew Schoen [Tue, 6 Feb 2018 17:36:03 +0000 (11:36 -0600)]
ceph-volume: do not test custom cluster names with simple

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20279 from liewegas/wip-idempotent-sequence
Sage Weil [Tue, 6 Feb 2018 16:53:35 +0000 (10:53 -0600)]
Merge pull request #20279 from liewegas/wip-idempotent-sequence

ceph_test_filestore_idempotent_sequence: many fixes

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoceph-volume: sleep 2 minutes after reboot in simple tests
Andrew Schoen [Tue, 6 Feb 2018 16:46:44 +0000 (10:46 -0600)]
ceph-volume: sleep 2 minutes after reboot in simple tests

This will allow for some time for OSD services to start back up after
reboot. If not we see race conditions where tests fail because they
were run before the OSD finished startup.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoos/ObjectStore: combine Sequencer and CollectionImpl in ObjectStore
Sage Weil [Mon, 15 Jan 2018 21:23:46 +0000 (15:23 -0600)]
os/ObjectStore: combine Sequencer and CollectionImpl in ObjectStore

In practice we have a sequencer per collection. Combine them in the interface
to simplify our lives!

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph_test_objectstore_workloadgen: remove
Sage Weil [Mon, 29 Jan 2018 20:01:05 +0000 (14:01 -0600)]
ceph_test_objectstore_workloadgen: remove

Stale test code, never run.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/tasks/recovery_bench: drop recovery_bench task
Sage Weil [Mon, 29 Jan 2018 20:24:30 +0000 (14:24 -0600)]
qa/tasks/recovery_bench: drop recovery_bench task

This relies on smalliobench, which is gone now.  The task could
pretty easily be resurrected if we substitute in another tool.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph_xattr_bench: drop
Sage Weil [Mon, 29 Jan 2018 21:19:24 +0000 (15:19 -0600)]
ceph_xattr_bench: drop

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agotest/bench: remove smallio bench tools
Sage Weil [Mon, 29 Jan 2018 20:23:39 +0000 (14:23 -0600)]
test/bench: remove smallio bench tools

These are stale and superceded by the fio ObjectStore (and other)
backends.  Shed the weight!

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agolibrbd: drop unused variable from flatten state machine 20176/head
Jason Dillaman [Tue, 6 Feb 2018 13:20:42 +0000 (08:20 -0500)]
librbd: drop unused variable from flatten state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20267 from liewegas/wip-22847
Kefu Chai [Tue, 6 Feb 2018 06:49:35 +0000 (14:49 +0800)]
Merge pull request #20267 from liewegas/wip-22847

mon/OSDMonitor: filter out pgs that shouldn't exist from force-create-pg

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20259 from guzhongyan/rados-cleanup
Kefu Chai [Tue, 6 Feb 2018 06:48:42 +0000 (14:48 +0800)]
Merge pull request #20259 from guzhongyan/rados-cleanup

rados: clean up rados_getxattrs() and rados_striper_getxattrs()

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20260 from guzhongyan/fix-22042
Kefu Chai [Tue, 6 Feb 2018 06:45:03 +0000 (14:45 +0800)]
Merge pull request #20260 from guzhongyan/fix-22042

librados: invalid free() in rados_getxattrs_next()

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20255 from david-z/wip-fix-kv-max-option
Kefu Chai [Tue, 6 Feb 2018 06:41:11 +0000 (14:41 +0800)]
Merge pull request #20255 from david-z/wip-fix-kv-max-option

config: Change bluestore_cache_kv_max to type INT64

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20301 from bigclouds/wip-fix-declaration-of-rados-striper-trunc
Kefu Chai [Tue, 6 Feb 2018 06:40:28 +0000 (14:40 +0800)]
Merge pull request #20301 from bigclouds/wip-fix-declaration-of-rados-striper-trunc

libradosstriper: fix the function declaration of rados_striper_trunc

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20233 from cbodley/wip-test-log-nullptr
Kefu Chai [Tue, 6 Feb 2018 06:35:18 +0000 (14:35 +0800)]
Merge pull request #20233 from cbodley/wip-test-log-nullptr

test/log: fix for crash with libc++

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20223 from Yan-waller/wip-walle-180124cephosd
Kefu Chai [Tue, 6 Feb 2018 06:31:52 +0000 (14:31 +0800)]
Merge pull request #20223 from Yan-waller/wip-walle-180124cephosd

osd: use existing osd_required variable for messenger policy

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20201 from majianpeng/mosdrepop-encode-log
Kefu Chai [Tue, 6 Feb 2018 06:29:34 +0000 (14:29 +0800)]
Merge pull request #20201 from majianpeng/mosdrepop-encode-log

osd: avoid encoding the same log entries repeatedly for different peers

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agolibrbd: speed up diskusage and resize 20218/head
shun-s [Fri, 19 Jan 2018 06:59:50 +0000 (14:59 +0800)]
librbd: speed up diskusage and resize

  speed up diskusage and resize

Signed-off-by: shun-s <song.shun3@zte.com.cn>
7 years agoos/filestore: add replay guards for omap operations 20279/head
Sage Weil [Mon, 5 Feb 2018 15:08:44 +0000 (09:08 -0600)]
os/filestore: add replay guards for omap operations

These were not guarded, meaning they could get replayed onto an object
that was cloned or renamed.  Eek!

Fixes: http://tracker.ceph.com/issues/22920
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agotest/objectstore/run_seed_to_range: stop on first error
Sage Weil [Mon, 5 Feb 2018 15:09:04 +0000 (09:09 -0600)]
test/objectstore/run_seed_to_range: stop on first error

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph_test_idempotent_sequence: use coll_entry_t
Sage Weil [Sun, 4 Feb 2018 16:51:37 +0000 (10:51 -0600)]
ceph_test_idempotent_sequence: use coll_entry_t

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph_filestore_idempotent_sequence: fix up clone, move ops; cleanup
Sage Weil [Sun, 4 Feb 2018 16:34:25 +0000 (10:34 -0600)]
ceph_filestore_idempotent_sequence: fix up clone, move ops; cleanup

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/tasks/filestore_idempotent: run failure tests later in sequence
Sage Weil [Sat, 3 Feb 2018 15:29:44 +0000 (09:29 -0600)]
qa/tasks/filestore_idempotent: run failure tests later in sequence

We want to get past the initial colleciton and object creation steps,
which don't include interesting ops.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocls/rbd: store original namespace type within trash snapshot namespace
Jason Dillaman [Tue, 6 Feb 2018 00:04:37 +0000 (19:04 -0500)]
cls/rbd: store original namespace type within trash snapshot namespace

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20016 from cbodley/wip-18885
Casey Bodley [Mon, 5 Feb 2018 21:44:37 +0000 (16:44 -0500)]
Merge pull request #20016 from cbodley/wip-18885

rgw: log unlink_instance mtime as object's mtime

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoceph-volume: adds the simple dmcrypt_plain and dmcrypt_luks tests
Andrew Schoen [Mon, 5 Feb 2018 20:18:28 +0000 (14:18 -0600)]
ceph-volume: adds the simple dmcrypt_plain and dmcrypt_luks tests

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-volume: fix ceph-volume simple scan help menu test
Andrew Schoen [Mon, 5 Feb 2018 19:53:13 +0000 (13:53 -0600)]
ceph-volume: fix ceph-volume simple scan help menu test

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #20145 from linuxbox2/rgwf-deref-readdir-off
Matt Benjamin [Mon, 5 Feb 2018 19:22:48 +0000 (14:22 -0500)]
Merge pull request #20145 from linuxbox2/rgwf-deref-readdir-off

rgw_file: avoid evaluating nullptr for readdir offset

7 years agoMerge pull request #20188 from cbodley/wip-rgw-frontend-multimap
Casey Bodley [Mon, 5 Feb 2018 18:52:04 +0000 (13:52 -0500)]
Merge pull request #20188 from cbodley/wip-rgw-frontend-multimap

rgw: beast frontend can listen on multiple endpoints

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #20013 from cbodley/wip-rgw-auth-skew
Casey Bodley [Mon, 5 Feb 2018 18:51:43 +0000 (13:51 -0500)]
Merge pull request #20013 from cbodley/wip-rgw-auth-skew

rgw: share time skew check between v2 and v4 auth

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #20017 from cbodley/wip-22248
Casey Bodley [Mon, 5 Feb 2018 18:50:48 +0000 (13:50 -0500)]
Merge pull request #20017 from cbodley/wip-22248

rgw: unlink deleted bucket from bucket's owner

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #20120 from cbodley/wip-22797
Casey Bodley [Mon, 5 Feb 2018 18:49:13 +0000 (13:49 -0500)]
Merge pull request #20120 from cbodley/wip-22797

rgw: fix for empty query string in beast frontend

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #20038 from oritwas/wip-rgw-22742
Orit Wasserman [Mon, 5 Feb 2018 18:02:06 +0000 (20:02 +0200)]
Merge pull request #20038 from oritwas/wip-rgw-22742

rgw: bucket resharding should not update bucket ACL or user stats
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #20295 from trociny/wip-test_deep_copy_clone
Jason Dillaman [Mon, 5 Feb 2018 17:26:44 +0000 (12:26 -0500)]
Merge pull request #20295 from trociny/wip-test_deep_copy_clone

test/pybind/rbd: skip test_deep_copy_clone if layering not enabled

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agocls/rbd: tweak handling for moving snapshots to trash namespace
Jason Dillaman [Mon, 5 Feb 2018 16:11:09 +0000 (11:11 -0500)]
cls/rbd: tweak handling for moving snapshots to trash namespace

Signed-off-by: Jason Dillaman <dillaman@redhat.com>