]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agocommon: fix BoundedKeyCounter const_pointer_iterator 18953/head
Casey Bodley [Wed, 15 Nov 2017 21:03:00 +0000 (16:03 -0500)]
common: fix BoundedKeyCounter const_pointer_iterator

with libc++, clang fails to compile a call to:

  vector::assign(const_pointer_iterator, const_pointer_iterator)

because const_pointer_iterator does not satisfy the InputIterator
concept. added the necessary typedefs for value_type and reference
to reflect the pointer type

Fixes: http://tracker.ceph.com/issues/22139
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18883 from cbodley/wip-22083+
Casey Bodley [Wed, 15 Nov 2017 19:51:14 +0000 (14:51 -0500)]
Merge pull request #18883 from cbodley/wip-22083+

rgw: set num_shards on 'radosgw-admin data sync init'

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agorgw: set num_shards on 'radosgw-admin data sync init' 18883/head
Casey Bodley [Fri, 10 Nov 2017 19:27:59 +0000 (14:27 -0500)]
rgw: set num_shards on 'radosgw-admin data sync init'

Fixes: http://tracker.ceph.com/issues/22083
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agodencoder/rgw: expose rgw sync status types
Casey Bodley [Wed, 8 Nov 2017 15:21:55 +0000 (10:21 -0500)]
dencoder/rgw: expose rgw sync status types

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18940 from trociny/wip-valgrind-DeadLockOwner
Jason Dillaman [Wed, 15 Nov 2017 17:57:30 +0000 (12:57 -0500)]
Merge pull request #18940 from trociny/wip-valgrind-DeadLockOwner

test/librbd: valgrind warning in TestMockManagedLockBreakRequest.DeadLockOwner

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17761 from cbodley/wip-rgw-bilog-trim
Yuri Weinstein [Wed, 15 Nov 2017 17:04:50 +0000 (09:04 -0800)]
Merge pull request #17761 from cbodley/wip-rgw-bilog-trim

rgw multisite: automated trimming for bucket index logs

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #18811 from oritwas/wip-rgw-22046
Yuri Weinstein [Wed, 15 Nov 2017 17:04:05 +0000 (09:04 -0800)]
Merge pull request #18811 from oritwas/wip-rgw-22046

tenant fixes for dynamic resharding

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18920 from yaozongyou/wip-ceph-dencoder-add-types
Yuri Weinstein [Wed, 15 Nov 2017 17:03:26 +0000 (09:03 -0800)]
Merge pull request #18920 from yaozongyou/wip-ceph-dencoder-add-types

ceph-dencoder: add support for cls_rgw_lc_obj_head

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18946 from joscollin/wip-add-cbodley
Casey Bodley [Wed, 15 Nov 2017 16:24:19 +0000 (11:24 -0500)]
Merge pull request #18946 from joscollin/wip-add-cbodley

.githubmap: Add cbodley

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18900 from qrGitHub/master
Casey Bodley [Wed, 15 Nov 2017 16:04:59 +0000 (11:04 -0500)]
Merge pull request #18900 from qrGitHub/master

rgw.iam: change '1' to '1ULL' in function print_actions

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
7 years ago.githubmap: Add cbodley 18946/head
Jos Collin [Wed, 15 Nov 2017 15:31:45 +0000 (21:01 +0530)]
.githubmap: Add cbodley

Signed-off-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #18921 from Leeshine/wip-data-sync-cmd
Jos Collin [Wed, 15 Nov 2017 15:28:58 +0000 (20:58 +0530)]
Merge pull request #18921 from Leeshine/wip-data-sync-cmd

rgw: add metadata and data sync related cmd into radosgw-admin usage

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agorgw: add data sync related cmd into radosgw-admin help info 18921/head
lvshanchun [Tue, 14 Nov 2017 22:05:00 +0000 (17:05 -0500)]
rgw: add data sync related cmd into radosgw-admin help info

+ radosgw-admin data sync status
+ radosgw-admin data sync init
+ radosgw-admin data sync run

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agorgw: add metadata sync related cmd into radosgw-admin help info
Leeshine [Tue, 14 Nov 2017 15:43:37 +0000 (23:43 +0800)]
rgw: add metadata sync related cmd into radosgw-admin help info

+ radosgw-admin metadata sync status
+ radosgw-admin metadata sync init
+ radosgw-admin metadata sync run

Signed-off-by: lvshanchun <lvshanchun@gmail.com>
7 years agotest/librbd: valgrind warning in TestMockManagedLockBreakRequest.DeadLockOwner 18940/head
Mykola Golub [Wed, 15 Nov 2017 08:20:58 +0000 (10:20 +0200)]
test/librbd: valgrind warning in TestMockManagedLockBreakRequest.DeadLockOwner

When running with 'debug_rbd >= 20':

  Conditional jump or move depends on uninitialised value(s)
    by 0x94277B: operator<< (ostream:167)
    by 0x94277B: librbd::managed_lock::BreakRequest<librbd::(anonymous namespace)::MockTestImageCtx>::handle_get_watchers(int) (BreakRequest.cc:101)

Signed-off-by: Mykola Golub <to.my.trociny@gmail.com>
7 years agoMerge pull request #18905 from ifed01/wip-bluestore-recalc-alloc
Kefu Chai [Wed, 15 Nov 2017 04:30:11 +0000 (12:30 +0800)]
Merge pull request #18905 from ifed01/wip-bluestore-recalc-alloc

os/bluestore: remove ineffective BlueFS fnode extent calculation.

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #18903 from jan--f/jan-mgr-prometheus-unkown-pgstate
Kefu Chai [Wed, 15 Nov 2017 04:20:16 +0000 (12:20 +0800)]
Merge pull request #18903 from jan--f/jan-mgr-prometheus-unkown-pgstate

pybind/mgr/prometheus: don't crash when encountering an unknown PG state

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18885 from dzafman/wip-22112
Kefu Chai [Wed, 15 Nov 2017 04:18:58 +0000 (12:18 +0800)]
Merge pull request #18885 from dzafman/wip-22112

ceph-objectstore-tool: Fix set-size to clear data_digest if changing …

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #18622 from majianpeng/bluestore-opseq
Kefu Chai [Wed, 15 Nov 2017 04:17:05 +0000 (12:17 +0800)]
Merge pull request #18622 from majianpeng/bluestore-opseq

os/bluestore: OpSequencer: reduce kv_submitted_waiters if _is_all_kv_submitted() return true.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
7 years agoMerge pull request #17032 from yangdongsheng/rbd_qos
Jason Dillaman [Tue, 14 Nov 2017 23:57:16 +0000 (18:57 -0500)]
Merge pull request #17032 from yangdongsheng/rbd_qos

rbd: implement image qos in tokenbucket algorithm

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18483 from Songweibin/wip-list-children2
Jason Dillaman [Tue, 14 Nov 2017 21:14:14 +0000 (16:14 -0500)]
Merge pull request #18483 from Songweibin/wip-list-children2

 rbd: fix rbd children listing when child is in trash

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #18007 from yehudasa/wip-rgw-config-desc
Yehuda Sadeh [Tue, 14 Nov 2017 20:31:28 +0000 (15:31 -0500)]
Merge pull request #18007 from yehudasa/wip-rgw-config-desc

options.cc: document rgw config options

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Abhishek Lekshmanan <alekshmanan@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18894 from liewegas/wip-fix-balancer
Sage Weil [Tue, 14 Nov 2017 17:01:46 +0000 (11:01 -0600)]
Merge pull request #18894 from liewegas/wip-fix-balancer

mgr/balancer: skip CRUSH_ITEM_NONE

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoMerge pull request #18763 from cfanz/master
Yuri Weinstein [Tue, 14 Nov 2017 16:19:06 +0000 (08:19 -0800)]
Merge pull request #18763 from cfanz/master

rgw: don't write bucket_header when it is not changed in rgw_bucket_prepare_op

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #18852 from theanalyst/wip-22083
Yuri Weinstein [Tue, 14 Nov 2017 16:17:42 +0000 (08:17 -0800)]
Merge pull request #18852 from theanalyst/wip-22083

rgw: data sync: set num_shards when building full maps

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #18866 from cbodley/wip-22101
Yuri Weinstein [Tue, 14 Nov 2017 16:16:38 +0000 (08:16 -0800)]
Merge pull request #18866 from cbodley/wip-22101

rgw: RGWEnv::set() takes std::string

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
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 agoceph-dencoder: adding support for cls_rgw_lc_obj_head 18920/head
Yao Zongyou [Tue, 14 Nov 2017 13:42:25 +0000 (21:42 +0800)]
ceph-dencoder: adding support for cls_rgw_lc_obj_head

After adding cls_rgw_lc_obj_head, we can using the following command
to look into lc processing related information:
rados -p default.rgw.log getomapheader lc.0 ./header.bin --namespace=lc
ceph-dencoder type cls_rgw_lc_obj_head import ./header.bin decode dump_json

Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.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 agolibrbd: add new API methods and expand the rbd CLI to list trashed images 18483/head
songweibin [Tue, 31 Oct 2017 10:25:59 +0000 (18:25 +0800)]
librbd: add new API methods and expand the rbd CLI to list trashed images

implement librbd::RBD::list_children2 and rbd_list_children2
methods and expand the rbd CLI to list trashed images

Signed-off-by: songweibin <song.weibin@zte.com.cn>
7 years agolibrbd: limit IO per second by TokenBucketThrottle 17032/head
Dongsheng Yang [Tue, 12 Sep 2017 16:39:50 +0000 (00:39 +0800)]
librbd: limit IO per second by TokenBucketThrottle

Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
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 agopybind/mgr/prometheus: don't crash when encountering an unknown PG state 18903/head
Jan Fajerski [Mon, 13 Nov 2017 13:42:56 +0000 (14:42 +0100)]
pybind/mgr/prometheus: don't crash when encountering an unknown PG state

Signed-off-by: Jan Fajerski <jfajerski@suse.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 agoos/bluestore: remove ineffective BlueFS fnode extent calculation. 18905/head
Igor Fedotov [Wed, 1 Nov 2017 20:55:26 +0000 (13:55 -0700)]
os/bluestore: remove ineffective BlueFS fnode extent calculation.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
7 years agomgr/balancer: skip CRUSH_ITEM_NONE 18894/head
Sage Weil [Mon, 13 Nov 2017 01:49:02 +0000 (19:49 -0600)]
mgr/balancer: skip CRUSH_ITEM_NONE

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agorgw.iam: change '1' to '1ULL' in function print_actions 18900/head
Bingyin Zhang [Mon, 13 Nov 2017 10:47:46 +0000 (18:47 +0800)]
rgw.iam: change '1' to '1ULL' in function print_actions

* IAM has 54 operations corresponding to 54 bits. 1 is a signed integer
* which can cover 31 operations, so we need 1ULL here.

Signed-off-by: Bingyin Zhang <zhangbingyin@cloudin.cn>
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 agoceph-objectstore-tool: Fix set-size to clear data_digest if changing disk size 18885/head
David Zafman [Fri, 10 Nov 2017 00:11:14 +0000 (16:11 -0800)]
ceph-objectstore-tool: Fix set-size to clear data_digest if changing disk size

Signed-off-by: David Zafman <dzafman@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 agorgw: more documentation for bilog trim config 17761/head
Casey Bodley [Tue, 24 Oct 2017 21:55:34 +0000 (17:55 -0400)]
rgw: more documentation for bilog trim config

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: fix notify timeout for BucketTrimWatcher
Casey Bodley [Tue, 24 Oct 2017 20:54:59 +0000 (16:54 -0400)]
rgw: fix notify timeout for BucketTrimWatcher

from seconds to msec

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: curly brace style for bilog trim classes
Casey Bodley [Tue, 24 Oct 2017 20:51:39 +0000 (16:51 -0400)]
rgw: curly brace style for bilog trim classes

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: BucketTrimWatcher checks handle in stop
Casey Bodley [Tue, 24 Oct 2017 18:45:12 +0000 (14:45 -0400)]
rgw: BucketTrimWatcher checks handle in stop

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: hold cr reference in MetadataListCR callback
Casey Bodley [Tue, 24 Oct 2017 16:23:41 +0000 (12:23 -0400)]
rgw: hold cr reference in MetadataListCR callback

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: add comment for bucket in BucketCounter
Casey Bodley [Tue, 24 Oct 2017 16:23:08 +0000 (12:23 -0400)]
rgw: add comment for bucket in BucketCounter

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: move shard marker helper into BucketIndexShardsManager
Casey Bodley [Tue, 24 Oct 2017 15:08:24 +0000 (11:08 -0400)]
rgw: move shard marker helper into BucketIndexShardsManager

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoqa/rgw: add kwargs for debug output
Casey Bodley [Tue, 10 Oct 2017 19:05:01 +0000 (15:05 -0400)]
qa/rgw: add kwargs for debug output

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agotest/rgw: add test_bucket_index_log_trim()
Casey Bodley [Wed, 20 Sep 2017 14:01:17 +0000 (10:01 -0400)]
test/rgw: add test_bucket_index_log_trim()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: add TrimComplete to watch/notify api
Casey Bodley [Fri, 15 Sep 2017 19:54:44 +0000 (15:54 -0400)]
rgw: add TrimComplete to watch/notify api

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: RGWDataSyncSingleEntryCR calls BucketChangeObserver
Casey Bodley [Fri, 15 Sep 2017 18:48:43 +0000 (14:48 -0400)]
rgw: RGWDataSyncSingleEntryCR calls BucketChangeObserver

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: start BucketTrimManager in RGWRados
Casey Bodley [Fri, 15 Sep 2017 18:09:14 +0000 (14:09 -0400)]
rgw: start BucketTrimManager in RGWRados

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: add BucketTrimInstanceCR
Casey Bodley [Thu, 7 Sep 2017 20:27:53 +0000 (16:27 -0400)]
rgw: add BucketTrimInstanceCR

fetches bucket sync status from each peer, calculates the min markers
for each shard, and trims the bilog shards. calls the TrimObserver on
success

Fixes: http://tracker.ceph.com/issues/18229
Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: add HTTPManager to BucketTrimManager
Casey Bodley [Thu, 7 Sep 2017 20:24:13 +0000 (16:24 -0400)]
rgw: add HTTPManager to BucketTrimManager

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: RGWGetBucketInstanceInfoCR takes rgw_bucket or metadata key
Casey Bodley [Thu, 7 Sep 2017 20:17:46 +0000 (16:17 -0400)]
rgw: RGWGetBucketInstanceInfoCR takes rgw_bucket or metadata key

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: add RGWRadosBILogTrimCR
Casey Bodley [Thu, 14 Sep 2017 20:50:47 +0000 (16:50 -0400)]
rgw: add RGWRadosBILogTrimCR

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: add RGWBucketInfo overload for BucketShard::init
Casey Bodley [Thu, 14 Sep 2017 20:51:13 +0000 (16:51 -0400)]
rgw: add RGWBucketInfo overload for BucketShard::init

for use by callers that have already read the bucket instance info

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: add /admin/log rest api for bucket sync status
Casey Bodley [Thu, 7 Sep 2017 19:26:35 +0000 (15:26 -0400)]
rgw: add /admin/log rest api for bucket sync status

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: add json decoders for bucket sync status
Casey Bodley [Thu, 7 Sep 2017 20:17:00 +0000 (16:17 -0400)]
rgw: add json decoders for bucket sync status

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: add rgw_bucket_sync_status() to bypass manager
Casey Bodley [Tue, 12 Sep 2017 16:48:56 +0000 (12:48 -0400)]
rgw: add rgw_bucket_sync_status() to bypass manager

RGWBucketSyncStatusManager::init() is doing a lot of extra work that's
not needed to serve the rest api (spawning an http manager thread,
fetching the bucket instance info, etc)

uses RGWShardCollectCR to limit the number of concurrent reads to 16

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: add 'radosgw-admin bilog autotrim'
Casey Bodley [Wed, 6 Sep 2017 16:59:03 +0000 (12:59 -0400)]
rgw: add 'radosgw-admin bilog autotrim'

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: add configure_bucket_trim()
Casey Bodley [Thu, 7 Sep 2017 16:48:47 +0000 (12:48 -0400)]
rgw: add configure_bucket_trim()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: BucketTrimManager implements BucketTrimObserver
Casey Bodley [Fri, 1 Sep 2017 15:06:30 +0000 (11:06 -0400)]
rgw: BucketTrimManager implements BucketTrimObserver

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agorgw: collect cold buckets for trim
Casey Bodley [Fri, 1 Sep 2017 16:40:58 +0000 (12:40 -0400)]
rgw: collect cold buckets for trim

Signed-off-by: Casey Bodley <cbodley@redhat.com>