]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoMerge pull request #18875 from yaozongyou/rgw-cleanup
Yuri Weinstein [Tue, 14 Nov 2017 16:15:36 +0000 (08:15 -0800)]
Merge pull request #18875 from yaozongyou/rgw-cleanup

rgw: remove unused disable_signal_fd

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18895 from cooboos/wip-opt-maperase
Yuri Weinstein [Tue, 14 Nov 2017 16:15:19 +0000 (08:15 -0800)]
Merge pull request #18895 from cooboos/wip-opt-maperase

rgw: optimize the rgw-attr del code logic

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18845 from yaozongyou/wip-lifecycle-log-level
Casey Bodley [Tue, 14 Nov 2017 15:34:03 +0000 (10:34 -0500)]
Merge pull request #18845 from yaozongyou/wip-lifecycle-log-level

rgw: update life cycle related log level

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18873 from tchaikov/wip-bluestore-aio-log
Kefu Chai [Tue, 14 Nov 2017 07:03:56 +0000 (15:03 +0800)]
Merge pull request #18873 from tchaikov/wip-bluestore-aio-log

os/bluestore: print aio in batch

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #18888 from tchaikov/wip-osx
Kefu Chai [Tue, 14 Nov 2017 07:02:33 +0000 (15:02 +0800)]
Merge pull request #18888 from tchaikov/wip-osx

common,test,cmake: various changes to re-enable build on osx

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #16369 from bspark8/wip_dmc2_client_tracker
Kefu Chai [Tue, 14 Nov 2017 06:59:52 +0000 (14:59 +0800)]
Merge pull request #16369 from bspark8/wip_dmc2_client_tracker

dmclock: Delivery of the dmclock delta, rho and phase parameter + Enabling the client service tracker

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18798 from cbodley/wip-str-list-view
Kefu Chai [Tue, 14 Nov 2017 06:58:46 +0000 (14:58 +0800)]
Merge pull request #18798 from cbodley/wip-str-list-view

 common: add for_each_substr() for cheap string split

Reviewed-by: Adam Emerson <aemerson@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18663 from dragonylffly/wip-rbd-nbd-fix
Jason Dillaman [Mon, 13 Nov 2017 19:46:15 +0000 (14:46 -0500)]
Merge pull request #18663 from dragonylffly/wip-rbd-nbd-fix

rbd-nbd: bug fix when running in container

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18713 from liewegas/wip-snapset-snaps
Sage Weil [Mon, 13 Nov 2017 19:27:54 +0000 (13:27 -0600)]
Merge pull request #18713 from liewegas/wip-snapset-snaps

osd/PrimaryLogPG: do not pull-up snapc to snapset

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18882 from ceph/wip-cv-simple-testing
Andrew Schoen [Mon, 13 Nov 2017 17:26:08 +0000 (11:26 -0600)]
Merge pull request #18882 from ceph/wip-cv-simple-testing

ceph-volume add functional tests for simple, rearrange lvm tests

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge pull request #18617 from tchaikov/wip-mon-cleanup
Kefu Chai [Mon, 13 Nov 2017 14:27:28 +0000 (22:27 +0800)]
Merge pull request #18617 from tchaikov/wip-mon-cleanup

mon: remove unused waiting_for_commit

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18879 from liewegas/wip-zstd
Kefu Chai [Mon, 13 Nov 2017 08:09:36 +0000 (16:09 +0800)]
Merge pull request #18879 from liewegas/wip-zstd

compressor/zstd: improvements

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18837 from tchaikov/wip-warn-on-old-libstdcxx
Kefu Chai [Mon, 13 Nov 2017 04:36:40 +0000 (12:36 +0800)]
Merge pull request #18837 from tchaikov/wip-warn-on-old-libstdcxx

cmake: warn if libstdc++ older than 5.1.0 is used

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agocmake: warn if libstdc++ older than 5.1.0 is used 18837/head
Kefu Chai [Thu, 9 Nov 2017 06:35:00 +0000 (14:35 +0800)]
cmake: warn if libstdc++ older than 5.1.0 is used

__GLIBCPP__ is used before 3.4.0, and gcc 4.8.0 and up is required to
build c++11 source, hence it's safe to check __GLIBCXX__. for the
versioning of libstdc++, see
https://gcc.gnu.org/onlinedocs/libstdc++/manual/abi.html#abi.versioning,
for the magic number of 20150422ul see
https://gcc.gnu.org/develop.html#timeline.
for the reason why we want to have this warning, see
https://github.com/ceph/ceph/pull/18755#issuecomment-342736554 .

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18815 from Liuchang0812/wip-kv-store-crc
Kefu Chai [Mon, 13 Nov 2017 04:30:14 +0000 (12:30 +0800)]
Merge pull request #18815 from Liuchang0812/wip-kv-store-crc

tool: misc cleanup of ceph-kvstore-tool

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18828 from majianpeng/fix-21932
Kefu Chai [Mon, 13 Nov 2017 04:26:44 +0000 (12:26 +0800)]
Merge pull request #18828 from majianpeng/fix-21932

os/bluestore: enlarege aligned_size avoid too many vector(> IOV_MAX)

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18854 from ifed01/wip-ifed-release-alloc-cleanup3
Kefu Chai [Mon, 13 Nov 2017 04:25:51 +0000 (12:25 +0800)]
Merge pull request #18854 from ifed01/wip-ifed-release-alloc-cleanup3

os/bluestore: avoid excessive ops in _txc_release_alloc

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #18822 from jcsp/wip-22082
Kefu Chai [Mon, 13 Nov 2017 04:24:54 +0000 (12:24 +0800)]
Merge pull request #18822 from jcsp/wip-22082

mon: clean up cluster logging on mon events

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agorgw: optimize the rgw-attr del code logic 18895/head
wangsongbo [Mon, 13 Nov 2017 03:26:08 +0000 (11:26 +0800)]
rgw: optimize the rgw-attr del code logic

Signed-off-by: wangsongbo wangsongbo@cloudin.cn
7 years agocompressor/zstd: use compress_generic from compression, cleanup 18879/head
Sage Weil [Mon, 13 Nov 2017 02:00:16 +0000 (20:00 -0600)]
compressor/zstd: use compress_generic from compression, cleanup

This is based on Yann Collet's changes (but somewhat adapted).

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18826 from liewegas/wip-22090
Sage Weil [Mon, 13 Nov 2017 01:50:14 +0000 (19:50 -0600)]
Merge pull request #18826 from liewegas/wip-22090

qa/suite/rados: fix balancer vs firefly tunables failures

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18805 from liewegas/wip-22039
Sage Weil [Sun, 12 Nov 2017 22:50:30 +0000 (16:50 -0600)]
Merge pull request #18805 from liewegas/wip-22039

os/bluestore: fix SharedBlob unregistration

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
7 years agoMerge pull request #18878 from liewegas/wip-perf-health
Sage Weil [Sun, 12 Nov 2017 22:50:08 +0000 (16:50 -0600)]
Merge pull request #18878 from liewegas/wip-perf-health

qa/suites/rados/perf: whitelist health warnings

7 years agoMerge pull request #18884 from liewegas/wip-internal-safe-to-start-threads
Sage Weil [Sun, 12 Nov 2017 22:49:13 +0000 (16:49 -0600)]
Merge pull request #18884 from liewegas/wip-internal-safe-to-start-threads

common/config: make internal_safe_to_start_threads internal

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agocompressor/zstd: fix build options
Sage Weil [Sun, 12 Nov 2017 15:54:13 +0000 (09:54 -0600)]
compressor/zstd: fix build options

Among other things, pass -O3, so that it goes faster.

Huge thank you to Yann Collet for identifying this as a build issue!

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18825 from dillaman/wip-release-notes-rbd-caps
Mykola Golub [Sun, 12 Nov 2017 15:22:48 +0000 (17:22 +0200)]
Merge pull request #18825 from dillaman/wip-release-notes-rbd-caps

doc/release-notes: clarify that you need to keep your existing OSD caps

Reviewed-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agorados: use size_t for `max_obj_len` 18888/head
Kefu Chai [Sun, 12 Nov 2017 00:36:16 +0000 (08:36 +0800)]
rados: use size_t for `max_obj_len`

otherwise, on some platforms where size_t is not uint64_t, MacOS for
instance, no matched generate_random_number() can be selected.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agobluestore: print aio in batch 18873/head
Kefu Chai [Fri, 10 Nov 2017 08:00:24 +0000 (16:00 +0800)]
bluestore: print aio in batch

KernelDevice::aio_{submit,write,read}() are critical paths. calling
cct->_conf->subsys.should_gather() multi-times is not optimal. the
downside of this issue is that if the aio is printed, the size of
buffer in PrebufferedStreambuf could be large if the number of iov is
large, that could be a heavy load to the memory subsystem.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: should add snappy header dir for libceph_snappy
Kefu Chai [Sat, 11 Nov 2017 03:25:56 +0000 (11:25 +0800)]
cmake: should add snappy header dir for libceph_snappy

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotest/unittest_compression: fail if factory is not ready
Kefu Chai [Sat, 11 Nov 2017 03:08:56 +0000 (11:08 +0800)]
test/unittest_compression: fail if factory is not ready

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/blkdev: should include "blkdev.h"
Kefu Chai [Sat, 11 Nov 2017 03:07:02 +0000 (11:07 +0800)]
common/blkdev: should include "blkdev.h"

otherwise `string` and `set` are not declared.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/PluginRegistry: define PLUGIN_SUFFIX to support osx
Kefu Chai [Sat, 11 Nov 2017 03:06:24 +0000 (11:06 +0800)]
common/PluginRegistry: define PLUGIN_SUFFIX to support osx

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocommon/config: make internal_safe_to_start_threads internal 18884/head
Sage Weil [Fri, 10 Nov 2017 23:25:25 +0000 (17:25 -0600)]
common/config: make internal_safe_to_start_threads internal

There is no reason for this to be exposed like a normal config option
(even a legacy one) since it is an internal safety flag.

We do keep the clear_() helper there for the unit test.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18404 from cbodley/wip-vstart-mrgw
Casey Bodley [Fri, 10 Nov 2017 19:20:26 +0000 (14:20 -0500)]
Merge pull request #18404 from cbodley/wip-vstart-mrgw

rgw: mrgw.sh uses instance name 'client.rgw'

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoceph-volume tests.functional update lvm/tox.ini paths after moving it 18882/head
Alfredo Deza [Fri, 10 Nov 2017 18:18:07 +0000 (13:18 -0500)]
ceph-volume tests.functional update lvm/tox.ini paths after moving it

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional move top level tox.ini to lvm/tox.ini
Alfredo Deza [Fri, 10 Nov 2017 18:14:55 +0000 (13:14 -0500)]
ceph-volume tests.functional move top level tox.ini to lvm/tox.ini

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional move xenial to lvm/xenial
Alfredo Deza [Fri, 10 Nov 2017 18:12:51 +0000 (13:12 -0500)]
ceph-volume tests.functional move xenial to lvm/xenial

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional lvm move xenial/bluestore to xenial/bluestore/create
Alfredo Deza [Fri, 10 Nov 2017 18:11:58 +0000 (13:11 -0500)]
ceph-volume tests.functional lvm move xenial/bluestore to xenial/bluestore/create

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional lvm move xenial/create to xenial/filestore/create
Alfredo Deza [Fri, 10 Nov 2017 18:09:48 +0000 (13:09 -0500)]
ceph-volume tests.functional lvm move xenial/create to xenial/filestore/create

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional move centos7 to lvm/centos7
Alfredo Deza [Fri, 10 Nov 2017 18:02:05 +0000 (13:02 -0500)]
ceph-volume tests.functional move centos7 to lvm/centos7

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional lvm move bluestore to bluestore/create
Alfredo Deza [Fri, 10 Nov 2017 17:58:27 +0000 (12:58 -0500)]
ceph-volume tests.functional lvm move bluestore to bluestore/create

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional lvm move create to filestore/create
Alfredo Deza [Fri, 10 Nov 2017 17:54:01 +0000 (12:54 -0500)]
ceph-volume tests.functional lvm move create to filestore/create

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional simple xenial bluestore scenario
Alfredo Deza [Fri, 10 Nov 2017 17:42:19 +0000 (12:42 -0500)]
ceph-volume tests.functional simple xenial bluestore scenario

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional simple xenial filestore scenario
Alfredo Deza [Fri, 10 Nov 2017 17:40:18 +0000 (12:40 -0500)]
ceph-volume tests.functional simple xenial filestore scenario

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional simple tox.ini update for xenial scnearios
Alfredo Deza [Fri, 10 Nov 2017 17:30:05 +0000 (12:30 -0500)]
ceph-volume tests.functional simple tox.ini update for xenial scnearios

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional simple tox.ini addition for bluestore
Alfredo Deza [Fri, 10 Nov 2017 14:12:09 +0000 (09:12 -0500)]
ceph-volume tests.functional simple tox.ini addition for bluestore

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add initial files for simple bluestore activate
Alfredo Deza [Fri, 10 Nov 2017 14:11:39 +0000 (09:11 -0500)]
ceph-volume tests.functional add initial files for simple bluestore activate

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional add initial files for simple filestore activate
Alfredo Deza [Thu, 9 Nov 2017 21:55:30 +0000 (16:55 -0500)]
ceph-volume tests.functional add initial files for simple filestore activate

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agocompressor/zstd: improvements
Stefan Priebe [Sun, 5 Nov 2017 18:51:32 +0000 (19:51 +0100)]
compressor/zstd: improvements

- static linking #define to get the advanced stuff
- hint src size to compressor
- no flush needed before end
- check for error

It's about twice as 25% faster now for 16KB chunks.

Note that a quick test to use resetCStream and reusing the same stream
did not appear to have any effect.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocommon: get_str_vec and friends use for_each_substr 18798/head
Casey Bodley [Fri, 3 Nov 2017 18:44:54 +0000 (14:44 -0400)]
common: get_str_vec and friends use for_each_substr

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agocommon: add for_each_substr() for cheap string split
Casey Bodley [Tue, 7 Nov 2017 15:54:59 +0000 (10:54 -0500)]
common: add for_each_substr() for cheap string split

using boost::string_view avoids copies (and potential allocation) of
the substrings

using a callback model avoids baking in the container type, along with
the copies and allocations required for insertion

this interface is ideal for cases where you just want to iterate over
the substrings, and don't actually need to store them in a container

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agotest/common: extend str_list tests to include set
Casey Bodley [Fri, 3 Nov 2017 20:25:24 +0000 (16:25 -0400)]
test/common: extend str_list tests to include set

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agocommon: add simplified interfaces to get_str_*
Casey Bodley [Fri, 3 Nov 2017 20:24:22 +0000 (16:24 -0400)]
common: add simplified interfaces to get_str_*

the simpler interfaces rely on return value optimization to avoid
copying the result. removing the container from the argument list makes
it easier to provide a default argument for 'delims'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18821 from prallabh/wip-22084
Yuri Weinstein [Fri, 10 Nov 2017 16:04:31 +0000 (08:04 -0800)]
Merge pull request #18821 from prallabh/wip-22084

rgw: Fix swift object expiry not deleting objects

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18846 from yaozongyou/fix-lifecycle-bug
Yuri Weinstein [Fri, 10 Nov 2017 16:04:11 +0000 (08:04 -0800)]
Merge pull request #18846 from yaozongyou/fix-lifecycle-bug

rgw: check going_down() when lifecycle processing

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/suites/rados/perf: whitelist health warnings 18878/head
Sage Weil [Fri, 10 Nov 2017 15:00:39 +0000 (09:00 -0600)]
qa/suites/rados/perf: whitelist health warnings

We may see these as cluster stabilizes.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocommon/buffers: add function parameter to limit buffers size. 18828/head
Jianpeng Ma [Fri, 10 Nov 2017 14:47:41 +0000 (22:47 +0800)]
common/buffers: add function parameter to limit buffers size.

Fixes: http://tracker.ceph.com/issues/21932
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
7 years agoMerge pull request #18877 from Jeegn-Chen/wip-issue-22103
Haomai Wang [Fri, 10 Nov 2017 14:43:13 +0000 (08:43 -0600)]
Merge pull request #18877 from Jeegn-Chen/wip-issue-22103

rados: make ceph_perf_msgr_client work for multiple jobs

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agoqa/suites/rados: stop testing firefly tunables 18826/head
Sage Weil [Wed, 8 Nov 2017 23:37:29 +0000 (17:37 -0600)]
qa/suites/rados: stop testing firefly tunables

We can't mix the balancer compat-set testing with firefly tunables because
it requires that all buckets be straw2.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomgr/balancer: fail a bit more gracefully if we can't create a compat weight-set
Sage Weil [Wed, 8 Nov 2017 23:35:35 +0000 (17:35 -0600)]
mgr/balancer: fail a bit more gracefully if we can't create a compat weight-set

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agorados: make ceph_perf_msgr_client work for multiple jobs 18877/head
Jeegn Chen [Fri, 10 Nov 2017 12:59:01 +0000 (20:59 +0800)]
rados: make ceph_perf_msgr_client work for multiple jobs

Move the invocation of msgr->start() before a client initiates a connection.
So the nonce is probably initialized and the server side is able to differenciate
the connections from different Messengers from the same client.

Fixes: http://tracker.ceph.com/issues/22103
Signed-off-by: Jeegn Chen <jeegnchen@gmail.com>
7 years agoMerge pull request #18876 from smithfarm/wip-rn-typos
Abhishek L [Fri, 10 Nov 2017 12:34:20 +0000 (13:34 +0100)]
Merge pull request #18876 from smithfarm/wip-rn-typos

doc: release notes: fix grammar/style nits

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
7 years agodoc: release notes: fix grammar/style nits 18876/head
Nathan Cutler [Fri, 10 Nov 2017 10:49:14 +0000 (11:49 +0100)]
doc: release notes: fix grammar/style nits

Signed-off-by: Nathan Cutler <ncutler@suse.com>
7 years agorgw: remove unused disable_signal_fd 18875/head
Yao Zongyou [Fri, 10 Nov 2017 10:00:22 +0000 (18:00 +0800)]
rgw: remove unused disable_signal_fd

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
7 years agomon: clean up cluster logging on mon events 18822/head
John Spray [Wed, 8 Nov 2017 16:54:44 +0000 (11:54 -0500)]
mon: clean up cluster logging on mon events

These changes come from observing the output
when killing a mon and watching the survivors
form a new quorum.

Fixes: http://tracker.ceph.com/issues/22082
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18862 from Jeegn-Chen/wip-issue-22100
Haomai Wang [Fri, 10 Nov 2017 03:47:28 +0000 (21:47 -0600)]
Merge pull request #18862 from Jeegn-Chen/wip-issue-22100

rados: Copy payload in ceph_perf_msgr_client

Reviewed-by: Haomai Wang <haomai@xsky.com>
7 years agorados: Copy payload in ceph_perf_msgr_client 18862/head
Jeegn Chen [Fri, 10 Nov 2017 02:14:50 +0000 (10:14 +0800)]
rados: Copy payload in ceph_perf_msgr_client

Copy payload in ceph_perf_msgr_client so that payload can keep unchanged

Fixes: http://tracker.ceph.com/issues/22100
Signed-off-by: Jeegn Chen <jeegnchen@gmail.com>
7 years agoMerge pull request #18707 from liewegas/wip-filestore-rocksdb-compression
Sage Weil [Fri, 10 Nov 2017 02:08:04 +0000 (20:08 -0600)]
Merge pull request #18707 from liewegas/wip-filestore-rocksdb-compression

os/filestore: disable rocksdb compression

Reviewed-by: Douglas Fuller <dfuller@redhat.com>
7 years agoceph-volume tests.functional create a specific test.yml for simple activate
Alfredo Deza [Thu, 9 Nov 2017 21:07:53 +0000 (16:07 -0500)]
ceph-volume tests.functional create a specific test.yml for simple activate

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.functional create a separate tox.ini environ for
Alfredo Deza [Thu, 9 Nov 2017 20:40:51 +0000 (15:40 -0500)]
ceph-volume tests.functional create a separate tox.ini environ for
`simple`

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #18823 from ceph/wip-bz1498200
Andrew Schoen [Thu, 9 Nov 2017 18:01:12 +0000 (12:01 -0600)]
Merge pull request #18823 from ceph/wip-bz1498200

ceph-volume: support GPT and other deployed OSDs

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoos/bluestore: fix SharedBlob unregistration 18805/head
Sage Weil [Wed, 8 Nov 2017 04:05:10 +0000 (22:05 -0600)]
os/bluestore: fix SharedBlob unregistration

We use the SharedBlobSet remove() in three cases:

- from SharedBlob::put(), we try to remove ourselves from the set, but
  have to deal with a racing lookup, so the removal is conditional on
  nref still being 0.
- from split_cache(), we move the SharedBlob to another collection
- from make_blob_unshared(), we remove the entry when we clear the sbid.

The problem is that the condtiional remove() (for the first case) was being
used for all three cases, and in the second two cases nref is always != 0,
so it doesn't actually happen.  This can lead to a crash during cache
shutdown.

Fix by making two variants: remove() that is unconditional, and
try_remove() that is conditional.

Set the sb->coll pointer after because remove() asserts the parent matches
where we are unregistering.

Fixes: http://tracker.ceph.com/issues/22039
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18817 from ZVampirEM77/wip-em-zone-cleanup
Yuri Weinstein [Thu, 9 Nov 2017 17:36:26 +0000 (09:36 -0800)]
Merge pull request #18817 from ZVampirEM77/wip-em-zone-cleanup

rgw cleanup: some unnecessary function called and repeated assignment

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18683 from tchaikov/wip-erasure-cleanup
Sage Weil [Thu, 9 Nov 2017 17:10:27 +0000 (11:10 -0600)]
Merge pull request #18683 from tchaikov/wip-erasure-cleanup

erasure-code: refactor the interfaces to hide internals from public

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agodoc/ceph-volume include the top level systemd.rst in the toctree 18823/head
Alfredo Deza [Thu, 9 Nov 2017 15:50:43 +0000 (10:50 -0500)]
doc/ceph-volume include the top level systemd.rst in the toctree

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate add --file in help docstring as an example
Alfredo Deza [Thu, 9 Nov 2017 11:49:49 +0000 (06:49 -0500)]
ceph-volume simple.activate add --file in help docstring as an example

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/ceph-volume activate has a --file option for json files
Alfredo Deza [Thu, 9 Nov 2017 11:46:59 +0000 (06:46 -0500)]
doc/ceph-volume activate has a --file option for json files

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate enable the osd when activating
Alfredo Deza [Wed, 8 Nov 2017 22:23:41 +0000 (17:23 -0500)]
ceph-volume simple.activate enable the osd when activating

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume systemd.systemctl always force symlink when masking ceph-disk
Alfredo Deza [Wed, 8 Nov 2017 20:25:05 +0000 (15:25 -0500)]
ceph-volume systemd.systemctl always force symlink when masking ceph-disk

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate use the contents of the JSON file, fallback to CLI args
Alfredo Deza [Wed, 8 Nov 2017 20:21:10 +0000 (15:21 -0500)]
ceph-volume simple.activate use the contents of the JSON file, fallback to CLI args

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate only check for missing id and uuid if file is not passed in
Alfredo Deza [Wed, 8 Nov 2017 19:50:16 +0000 (14:50 -0500)]
ceph-volume simple.activate only check for missing id and uuid if file is not passed in

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate allow to pass a file to activate
Alfredo Deza [Wed, 8 Nov 2017 19:28:12 +0000 (14:28 -0500)]
ceph-volume simple.activate allow to pass a file to activate

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests.util add tests for OSDPath validator
Alfredo Deza [Wed, 8 Nov 2017 17:49:31 +0000 (12:49 -0500)]
ceph-volume tests.util add tests for OSDPath validator

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume systemd.systemctl masking ceph-disk needs to be done by directly symlinki...
Alfredo Deza [Wed, 8 Nov 2017 16:56:36 +0000 (11:56 -0500)]
ceph-volume systemd.systemctl masking ceph-disk needs to be done by directly symlinking to dev/null

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume systemd.systemctl masking needs to use systemctl mask, not disable
Alfredo Deza [Wed, 8 Nov 2017 14:47:12 +0000 (09:47 -0500)]
ceph-volume systemd.systemctl masking needs to use systemctl mask, not disable

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.scan if mounted device cannot be detected, raise an error
Alfredo Deza [Wed, 8 Nov 2017 14:46:20 +0000 (09:46 -0500)]
ceph-volume simple.scan if mounted device cannot be detected, raise an error

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.activate remove str formatting from logging
Alfredo Deza [Wed, 8 Nov 2017 14:17:52 +0000 (09:17 -0500)]
ceph-volume simple.activate remove str formatting from logging

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume util.arg_validators always convert the path to an absolute path
Alfredo Deza [Wed, 8 Nov 2017 14:11:41 +0000 (09:11 -0500)]
ceph-volume util.arg_validators always convert the path to an absolute path

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agorgw: Fix swift object expiry not deleting objects 18821/head
Pavan Rallabhandi [Wed, 8 Nov 2017 16:05:54 +0000 (21:35 +0530)]
rgw: Fix swift object expiry not deleting objects

In cls_timeindex_list() though `to_index` has expired for a timespan, the marker is set for a subsequent index during the time boundary check.
This marker is further returned to RGWObjectExpirer::process_single_shard(), where this out_marker is trimmed from the respective shard,
resulting in a lost removal hint and a leaked object.

Fixes: http://tracker.ceph.com/issues/22084
Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com>
7 years agoos/bluestore: avoid excessive ops in _txc_release_alloc 18854/head
linux [Thu, 9 Nov 2017 14:55:08 +0000 (15:55 +0100)]
os/bluestore: avoid excessive ops in _txc_release_alloc

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #18781 from iliul/correct-error-messages
Casey Bodley [Thu, 9 Nov 2017 14:48:26 +0000 (09:48 -0500)]
Merge pull request #18781 from iliul/correct-error-messages

rgw/rgw_op.cc: Fix error message in rgw_user_get_all_buckets_stats

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18796 from ivancich/wip-fix-fmt-warnings
Casey Bodley [Thu, 9 Nov 2017 14:43:33 +0000 (09:43 -0500)]
Merge pull request #18796 from ivancich/wip-fix-fmt-warnings

rgw: address warnings due to incorrect format code

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #17659 from majianpeng/osd-wait-ratherthan-waitinterval
Kefu Chai [Thu, 9 Nov 2017 14:18:47 +0000 (22:18 +0800)]
Merge pull request #17659 from majianpeng/osd-wait-ratherthan-waitinterval

osd/OSD: Using Wait rather than WaitInterval to wait queue.is_empty().

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18759 from tchaikov/wip-mon-log-last
Kefu Chai [Thu, 9 Nov 2017 14:17:31 +0000 (22:17 +0800)]
Merge pull request #18759 from tchaikov/wip-mon-log-last

mon/LogMonitor: "log last" should return up to n entries

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18779 from tchaikov/wip-osd-remove-unused-objects_read_async
Kefu Chai [Thu, 9 Nov 2017 14:16:51 +0000 (22:16 +0800)]
Merge pull request #18779 from tchaikov/wip-osd-remove-unused-objects_read_async

osd: remove unused ReplicatedBackend::objects_read_async()

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Xinze Chi <xinze@xsky.com>
7 years agoMerge pull request #18809 from tchaikov/wip-21904
Kefu Chai [Thu, 9 Nov 2017 14:15:06 +0000 (22:15 +0800)]
Merge pull request #18809 from tchaikov/wip-21904

mgr/zabbix: ignore osd with 0 kb capacity

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Wido den Hollander <wido@42on.com>
7 years agorgw/rgw_op.cc: Fix error message in rgw_user_get_all_buckets_stats 18781/head
iliul [Tue, 7 Nov 2017 07:17:26 +0000 (15:17 +0800)]
rgw/rgw_op.cc: Fix error message in rgw_user_get_all_buckets_stats

Signed-off-by: iliul <liul.stone@gmail.com>
7 years agorgw: check going_down() when lifecycle processing 18846/head
Yao Zongyou [Thu, 9 Nov 2017 12:40:15 +0000 (20:40 +0800)]
rgw: check going_down() when lifecycle processing

Fixes: http://tracker.ceph.com/issues/22099
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
7 years agoceph-volume util.arg_validators require superuser privs to check paths
Alfredo Deza [Wed, 8 Nov 2017 14:10:47 +0000 (09:10 -0500)]
ceph-volume util.arg_validators require superuser privs to check paths

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume simple.scan skip directories to scan
Alfredo Deza [Wed, 8 Nov 2017 14:09:06 +0000 (09:09 -0500)]
ceph-volume simple.scan skip directories to scan

Signed-off-by: Alfredo Deza <adeza@redhat.com>