]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoMerge pull request #15371 from liewegas/wip-mon-client-features
Sage Weil [Wed, 7 Jun 2017 13:31:46 +0000 (08:31 -0500)]
Merge pull request #15371 from liewegas/wip-mon-client-features

mon: track features from connect clients, and use it to gate set-require-min-compat-client

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15530 from tchaikov/wip-jq-without-first
Kefu Chai [Wed, 7 Jun 2017 08:44:54 +0000 (16:44 +0800)]
Merge pull request #15530 from tchaikov/wip-jq-without-first

qa/workunits/ceph-helpers.sh: use syntax understood by jq 1.3

Reviewed-by: David Zafman <dzafman@redhat.com>
8 years agoMerge pull request #15423 from liewegas/wip-fix-indent
Kefu Chai [Wed, 7 Jun 2017 05:09:45 +0000 (13:09 +0800)]
Merge pull request #15423 from liewegas/wip-fix-indent

mon/FSCommand: fix indentation

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15497 from liewegas/wip-log-last
Kefu Chai [Wed, 7 Jun 2017 04:30:06 +0000 (12:30 +0800)]
Merge pull request #15497 from liewegas/wip-log-last

mon/LogMonitor: 'log last' command

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15522 from liewegas/wip-19901
Kefu Chai [Wed, 7 Jun 2017 04:20:57 +0000 (12:20 +0800)]
Merge pull request #15522 from liewegas/wip-19901

ceph_test_rados_api_misc: fix LibRadosMiscConnectFailure.ConnectFailure retry

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agomon/OSDMonitor: validate set-require-min-compat-client against connected clients 15371/head
Sage Weil [Tue, 30 May 2017 22:29:03 +0000 (18:29 -0400)]
mon/OSDMonitor: validate set-require-min-compat-client against connected clients

Prevent the user from setting a require_min_compat_client if a disallowed
client is currently connected to the mon cluster.  Instead, you'll get an
error like

Error EPERM: cannot set require_min_compat_client to luminous: 1 connected client(s) look like jewel (missing 0x800000000200000); add --yes-i-really-mean-it to do it anyway

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocommon: ceph_release_[from_]features
Sage Weil [Tue, 30 May 2017 22:18:41 +0000 (18:18 -0400)]
common: ceph_release_[from_]features

Map releases to client features (and back again).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon: add 'features' command to show connected client features
Sage Weil [Tue, 30 May 2017 20:37:22 +0000 (16:37 -0400)]
mon: add 'features' command to show connected client features

for whole mon cluster

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15422 from liewegas/wip-osd-rotational
Sage Weil [Wed, 7 Jun 2017 03:09:46 +0000 (22:09 -0500)]
Merge pull request #15422 from liewegas/wip-osd-rotational

osd: hdd vs ssd defaults for osd op thread pool

Reviewed-by: Mark Nelson <mnelson@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #15517 from liewegas/wip-20197
Sage Weil [Wed, 7 Jun 2017 03:07:32 +0000 (22:07 -0500)]
Merge pull request #15517 from liewegas/wip-20197

qa/suites/rados/upgrade: restart mds

8 years agoMerge pull request #15523 from ceph/wip-16674
Sage Weil [Wed, 7 Jun 2017 03:04:48 +0000 (22:04 -0500)]
Merge pull request #15523 from ceph/wip-16674

selinux: Allow read on var_run_t

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoqa/workunits/ceph-helpers.sh: use syntax understood by jq 1.3 15530/head
Kefu Chai [Wed, 7 Jun 2017 01:32:19 +0000 (09:32 +0800)]
qa/workunits/ceph-helpers.sh: use syntax understood by jq 1.3

trusty still ships jq 1.3 which does not offer "first". see
https://stedolan.github.io/jq/manual/v1.3/ .

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14745 from trociny/wip-18789
Jason Dillaman [Wed, 7 Jun 2017 00:56:49 +0000 (20:56 -0400)]
Merge pull request #14745 from trociny/wip-18789

rbd-mirror: coordinate image syncs with leader

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #15243 from yuyuyu101/wip-20049
Haomai Wang [Wed, 7 Jun 2017 00:32:53 +0000 (08:32 +0800)]
Merge pull request #15243 from yuyuyu101/wip-20049

msg: don't set msgr addr when disabing client bind

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #14117 from zhangsw/fix-rgw-getobjectmetadata-bug
Yehuda Sadeh [Wed, 7 Jun 2017 00:18:39 +0000 (17:18 -0700)]
Merge pull request #14117 from zhangsw/fix-rgw-getobjectmetadata-bug

rgw: return the version id in get object and object metadata request.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #15386 from ivancich/wip-add-readme-that-dmclock-is-a-subtree
Josh Durgin [Tue, 6 Jun 2017 22:48:04 +0000 (15:48 -0700)]
Merge pull request #15386 from ivancich/wip-add-readme-that-dmclock-is-a-subtree

doc: add README to dmclock subdir to inform developers it's a git subtree

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15392 from dillaman/wip-20049
Yuri Weinstein [Tue, 6 Jun 2017 22:18:51 +0000 (15:18 -0700)]
Merge pull request #15392 from dillaman/wip-20049

msg: do not enable client-side binding by default

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #15513 from Fabian-Gruenbichler/fixmgrdesc
Sage Weil [Tue, 6 Jun 2017 20:31:22 +0000 (15:31 -0500)]
Merge pull request #15513 from Fabian-Gruenbichler/fixmgrdesc

debian: ceph-mgr: fix package description

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15375 from ivancich/wip-fix-dmclock-testing
Sage Weil [Tue, 6 Jun 2017 20:27:07 +0000 (15:27 -0500)]
Merge pull request #15375 from ivancich/wip-fix-dmclock-testing

osd/dmclock/testing: reorganize testing, building now optional

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #15378 from Liuchang0812/print_ret_code_of_json_command
Sage Weil [Tue, 6 Jun 2017 20:26:28 +0000 (15:26 -0500)]
Merge pull request #15378 from Liuchang0812/print_ret_code_of_json_command

ceph.in: print return code when json_command failed

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15496 from wjwithagen/wip-wjw-host-to-ceph-errno
Sage Weil [Tue, 6 Jun 2017 20:26:15 +0000 (15:26 -0500)]
Merge pull request #15496 from wjwithagen/wip-wjw-host-to-ceph-errno

core: include/types.h, introduce host_to_ceph_errno

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15500 from liewegas/wip-20135
Sage Weil [Tue, 6 Jun 2017 20:25:37 +0000 (15:25 -0500)]
Merge pull request #15500 from liewegas/wip-20135

pybind/ceph_argparse: fix empty string check

8 years agoMerge pull request #15502 from xiexingguo/wip-fix-overload-extents
Sage Weil [Tue, 6 Jun 2017 20:25:16 +0000 (15:25 -0500)]
Merge pull request #15502 from xiexingguo/wip-fix-overload-extents

os/bluestore: avoid overloading extents during reshard; atomic deferred_batch_ops

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoqa/suites/rados/upgrade: restart mds 15517/head
Sage Weil [Tue, 6 Jun 2017 20:23:25 +0000 (16:23 -0400)]
qa/suites/rados/upgrade: restart mds

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoselinux: Allow read on var_run_t 15523/head
Boris Ranto [Tue, 6 Jun 2017 19:27:54 +0000 (21:27 +0200)]
selinux: Allow read on var_run_t

Fixes: http://tracker.ceph.com/issues/16674
Signed-off-by: Boris Ranto <branto@redhat.com>
8 years agoceph_test_rados_api_misc: fix LibRadosMiscConnectFailure.ConnectFailure retry 15522/head
Sage Weil [Tue, 6 Jun 2017 19:13:50 +0000 (15:13 -0400)]
ceph_test_rados_api_misc: fix LibRadosMiscConnectFailure.ConnectFailure retry

Fixes: http://tracker.ceph.com/issues/19901
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/dmclock/testing: reorganize testing, building now optional 15375/head
J. Eric Ivancich [Fri, 19 May 2017 20:54:33 +0000 (16:54 -0400)]
osd/dmclock/testing: reorganize testing, building now optional

Modify cmake files to take advantage or re-organization of dmclock's
cmake set-up, specifically not having dmclock's cmake files call
add_test. Remove dmclock tests from being dependencies on ceph's
"test" target. Make change so dmclock tests are not built unless
WITH_TESTS and WITH_DMCLOCK_TESTS are both set. This is so openSUSE
Leap will build correctly.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
8 years agoMerge commit '5c612d7e32a07a01b3b97f9cf58f2a3cef0e2e73'
J. Eric Ivancich [Tue, 6 Jun 2017 19:01:03 +0000 (15:01 -0400)]
Merge commit '5c612d7e32a07a01b3b97f9cf58f2a3cef0e2e73'

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
8 years agoSquashed 'src/dmclock/' changes from d6586d7..64bcc6e
J. Eric Ivancich [Tue, 6 Jun 2017 19:01:02 +0000 (15:01 -0400)]
Squashed 'src/dmclock/' changes from d6586d7..64bcc6e

64bcc6e Remove FindGTest and FindBoost, which already exist in cmake required version 2.8.11 and later. Also clean up.
ed6dc60 Do some clean-up and remove memory leaks from tests and simulations.
360172a Allow RunEvery object to be ended before destruction via "join" member function.
135b5d0 Fix two bugs discovered by valgrind. Do some other code clean-up as well.
a26d29e Modify cmake files to match naming of cmake's upstream gtest and ceph's boost.
e23e63f Reorganize CMakeLists.txt files, so that projects that incorporate dmclock can control whether add_test is called. Now, add_test is called only at the top-level. Projects that incorporate dmclock can use add_subdirectory on subdirectories beneath the top-level to selective exactly what is included.

git-subtree-dir: src/dmclock
git-subtree-split: 64bcc6ea697c7e790ec4a4229d1bb1d492f9e803

8 years agoqa/workunits/cephtool/test.sh: test 'log last [n]' 15497/head
Sage Weil [Tue, 6 Jun 2017 18:52:26 +0000 (14:52 -0400)]
qa/workunits/cephtool/test.sh: test 'log last [n]'

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocommon/LogEntry: make LogEntryKey opaque and cache its hash value
Sage Weil [Tue, 6 Jun 2017 18:50:46 +0000 (14:50 -0400)]
common/LogEntry: make LogEntryKey opaque and cache its hash value

This avoids recalculating.  We eliminate the default ctor at the same
time and make the type totally opaque (so that its fields cannot be
modified except by the ctor and decode).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15390 from liewegas/wip-osdmap-state
Sage Weil [Tue, 6 Jun 2017 18:19:18 +0000 (13:19 -0500)]
Merge pull request #15390 from liewegas/wip-osdmap-state

osd/OSDMap: make osd_state 32 bits wide

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15515 from tchaikov/wip-crc32-aarch64
Dan Mick [Tue, 6 Jun 2017 18:01:53 +0000 (11:01 -0700)]
Merge pull request #15515 from tchaikov/wip-crc32-aarch64

crc32c: include acconfig.h to fix ceph_crc32c_aarch64()

Reviewed-by: Dan Mick <dmick@redhat.com>
8 years agocrc32c: include acconfig.h to fix ceph_crc32c_aarch64() 15515/head
Kefu Chai [Tue, 6 Jun 2017 13:40:19 +0000 (21:40 +0800)]
crc32c: include acconfig.h to fix ceph_crc32c_aarch64()

HAVE_ARMV8_CRC is defined by "acconfig.h". so we need to include it for
the definition.

it's a regresssion introduced by 2a3382f. in that change,
crc32c_intel_baseline.h was removed from crc32.cc, and that header
includes accconfig.h indirectly. that's why we will have a dummy
ceph_crc32c_aarch64() which always returns 0. the dummy implementation
was intended to please the compiler. but we can probably just drop it in
future as a cleanup.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15511 from tchaikov/wip-doc-cartesian-product
Kefu Chai [Tue, 6 Jun 2017 13:57:49 +0000 (21:57 +0800)]
Merge pull request #15511 from tchaikov/wip-doc-cartesian-product

doc: update sample explaning "%" operator in test suites

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #14074 from jecluis/wip-mon-osd-replacement
Sage Weil [Tue, 6 Jun 2017 13:25:15 +0000 (08:25 -0500)]
Merge pull request #14074 from jecluis/wip-mon-osd-replacement

mon: replace osds with `osd destroy` and `osd new`

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15487 from liewegas/wip-no-more-stat-spam
Sage Weil [Tue, 6 Jun 2017 13:24:48 +0000 (08:24 -0500)]
Merge pull request #15487 from liewegas/wip-no-more-stat-spam

mgr/DaemonServer: stop spamming log with pg stats

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15494 from liewegas/wip-20187
Sage Weil [Tue, 6 Jun 2017 13:24:08 +0000 (08:24 -0500)]
Merge pull request #15494 from liewegas/wip-20187

qa/workunits/cephtool/test.sh: fix osd full health detail grep

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agopybind/ceph_argparse: fix no arg check 15500/head
Sage Weil [Tue, 6 Jun 2017 13:23:32 +0000 (09:23 -0400)]
pybind/ceph_argparse: fix no arg check

This fixes breakage from commit a1214a702cfd8465deb91847f4dc63c0e80fb586
that caused a [] to be appended to some json argument lists.

Fixes: http://tracker.ceph.com/issues/20135
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph-mgr: fix package description 15513/head
Fabian Grünbichler [Thu, 18 May 2017 12:35:19 +0000 (14:35 +0200)]
ceph-mgr: fix package description

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agotool/ceph: print return code when json_command failed 15378/head
liuchang0812 [Wed, 31 May 2017 07:34:25 +0000 (15:34 +0800)]
tool/ceph: print return code when json_command failed

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
8 years agodoc: update sample explaning "%" operator in tes suites 15511/head
Kefu Chai [Tue, 6 Jun 2017 12:06:52 +0000 (20:06 +0800)]
doc: update sample explaning "%" operator in tes suites

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15499 from jcsp/wip-doc-whitespace
John Spray [Tue, 6 Jun 2017 11:36:05 +0000 (12:36 +0100)]
Merge pull request #15499 from jcsp/wip-doc-whitespace

doc: fix syntax on code snippets in cephfs/multimds

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
8 years agoMerge pull request #15492 from dillaman/wip-20185
Mykola Golub [Tue, 6 Jun 2017 10:49:29 +0000 (13:49 +0300)]
Merge pull request #15492 from dillaman/wip-20185

rbd: properly decode features when using image name optional

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #15483 from dillaman/wip-20182
Mykola Golub [Tue, 6 Jun 2017 10:48:51 +0000 (13:48 +0300)]
Merge pull request #15483 from dillaman/wip-20182

librbd: filter expected error codes from is_exclusive_lock_owner

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-mirror A/A: coordinate image syncs with leader 14745/head
Mykola Golub [Mon, 17 Apr 2017 19:05:25 +0000 (21:05 +0200)]
rbd-mirror A/A: coordinate image syncs with leader

Fixes: http://tracker.ceph.com/issues/18789
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #15490 from ceph/wip-fix-selinux
Boris Ranto [Tue, 6 Jun 2017 08:47:29 +0000 (10:47 +0200)]
Merge pull request #15490 from ceph/wip-fix-selinux

selinux: Install ceph-base before ceph-selinux

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorbd-mirror: resolve potential recursive lock
Mykola Golub [Fri, 5 May 2017 09:56:50 +0000 (11:56 +0200)]
rbd-mirror: resolve potential recursive lock

Would have been possible when release_image had lead to cancel
sync (i.e. cancel_sync_request).

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agorbd-mirror: make sync throttler per pool
Mykola Golub [Sun, 16 Apr 2017 17:58:42 +0000 (19:58 +0200)]
rbd-mirror: make sync throttler per pool

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agotest/rbd_mirror: TestMockImageReplayer cleanup
Mykola Golub [Sat, 22 Apr 2017 10:26:16 +0000 (12:26 +0200)]
test/rbd_mirror: TestMockImageReplayer cleanup

Remove unnecessary ImageSyncThrottler dependency.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #15415 from dillaman/wip-rbd-valgrind
Mykola Golub [Tue, 6 Jun 2017 07:38:34 +0000 (10:38 +0300)]
Merge pull request #15415 from dillaman/wip-rbd-valgrind

librbd: fix valgrind errors and ensure tests detect future leaks

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #15140 from dillaman/wip-18963
Mykola Golub [Tue, 6 Jun 2017 07:37:56 +0000 (10:37 +0300)]
Merge pull request #15140 from dillaman/wip-18963

rbd-mirror: permit release of local image exclusive lock after force promotion

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoos/bluestore: reduce overhead when trying to unshard blobs 15502/head
xie xingguo [Tue, 6 Jun 2017 02:38:57 +0000 (10:38 +0800)]
os/bluestore: reduce overhead when trying to unshard blobs

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: atomic deferred_batch_ops
xie xingguo [Tue, 6 Jun 2017 01:21:05 +0000 (09:21 +0800)]
os/bluestore: atomic deferred_batch_ops

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoos/bluestore: avoid overloading of extents during reshard
xie xingguo [Tue, 6 Jun 2017 01:16:22 +0000 (09:16 +0800)]
os/bluestore: avoid overloading of extents during reshard

This is potentially big stuff...

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #15484 from Adirl/wip
Haomai Wang [Tue, 6 Jun 2017 01:22:52 +0000 (09:22 +0800)]
Merge pull request #15484 from Adirl/wip

msg/async/rdma: Add DSCP support

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agoMerge pull request #15493 from yehudasa/wip-rgw-dynamic-sharding
Yehuda Sadeh [Tue, 6 Jun 2017 00:10:04 +0000 (17:10 -0700)]
Merge pull request #15493 from yehudasa/wip-rgw-dynamic-sharding

rgw: dynamic resharding

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agocls/rgw: add missing members initialization 15493/head
Yehuda Sadeh [Mon, 5 Jun 2017 20:07:42 +0000 (13:07 -0700)]
cls/rgw: add missing members initialization

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #14239 from liewegas/wip-bluestore-ec-clone
Sage Weil [Mon, 5 Jun 2017 21:39:32 +0000 (16:39 -0500)]
Merge pull request #14239 from liewegas/wip-bluestore-ec-clone

os/bluestore: try to unshare blobs for EC overwrite workload

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoMerge pull request #15299 from joscollin/wip-cleanup-redundant-headers-6
Sage Weil [Mon, 5 Jun 2017 21:39:05 +0000 (16:39 -0500)]
Merge pull request #15299 from joscollin/wip-cleanup-redundant-headers-6

common: Remove redundant includes - 6

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15429 from jcsp/wip-nuke-rest
Sage Weil [Mon, 5 Jun 2017 21:36:36 +0000 (16:36 -0500)]
Merge pull request #15429 from jcsp/wip-nuke-rest

pybind/mgr: Delete `rest` module

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agorgw: fix a race
Yehuda Sadeh [Mon, 5 Jun 2017 17:05:24 +0000 (10:05 -0700)]
rgw: fix a race

We referred to complete_op_data after aio call that could have released
it.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agotest/cli/radosgw-admin: update reference help.t
Yehuda Sadeh [Fri, 2 Jun 2017 22:15:27 +0000 (15:15 -0700)]
test/cli/radosgw-admin: update reference help.t

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: fix index completion
Yehuda Sadeh [Fri, 2 Jun 2017 21:42:13 +0000 (14:42 -0700)]
rgw: fix index completion

Was missing bucket complete op, only had the guard (bad merge?).
Pass zones_trace as pointer and treat it as optional param (which
it is).

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: increase max shard prime, consolidate logic
Yehuda Sadeh [Fri, 2 Jun 2017 00:21:07 +0000 (17:21 -0700)]
rgw: increase max shard prime, consolidate logic

Handle larger num of shards (max ~64k now). Use the same hash logic for shard ids
everywhere.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: new num shards proportional to number of objects per shard
Yehuda Sadeh [Thu, 1 Jun 2017 23:55:35 +0000 (16:55 -0700)]
rgw: new num shards proportional to number of objects per shard

and also limit number of shards to not exceed the max.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: handle zones_trace in bi async completion handler
Yehuda Sadeh [Tue, 30 May 2017 23:35:17 +0000 (16:35 -0700)]
rgw: handle zones_trace in bi async completion handler

needed following a rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: remove debug helper code
Yehuda Sadeh [Thu, 25 May 2017 21:11:01 +0000 (14:11 -0700)]
rgw: remove debug helper code

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: ignore -ENOENT on bi_list()
Yehuda Sadeh [Wed, 24 May 2017 23:57:28 +0000 (16:57 -0700)]
rgw: ignore -ENOENT on bi_list()

just treat it as success with empty result

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: run resharding thread only on master zone
Orit Wasserman [Sun, 28 May 2017 07:42:54 +0000 (10:42 +0300)]
rgw: run resharding thread only on master zone

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agorgw: add check to see if out is null
Orit Wasserman [Tue, 23 May 2017 15:45:00 +0000 (18:45 +0300)]
rgw: add check to see if out is null

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agorgw: update entry in resharding log when resharding has started
Orit Wasserman [Tue, 23 May 2017 10:37:08 +0000 (13:37 +0300)]
rgw:  update entry in resharding log when resharding has started

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agorgw: start resharding theard
Orit Wasserman [Sun, 21 May 2017 10:26:37 +0000 (13:26 +0300)]
rgw: start resharding theard

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agorgw: replace reshard blocking sleep with interruptible condition wait
Yehuda Sadeh [Thu, 18 May 2017 18:51:21 +0000 (11:51 -0700)]
rgw: replace reshard blocking sleep with interruptible condition wait

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: add bucket to resharding queue if needs resharding
Orit Wasserman [Fri, 19 May 2017 11:02:17 +0000 (14:02 +0300)]
rgw: add bucket to resharding queue if needs resharding

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agorgw-admin: radosgw-admin reshard execute -> reshard process
Yehuda Sadeh [Thu, 25 May 2017 00:00:02 +0000 (17:00 -0700)]
rgw-admin: radosgw-admin reshard execute -> reshard process

to be in line with other radosgw-admin commands.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: update bucket instance with resharding details
Yehuda Sadeh [Wed, 24 May 2017 23:01:25 +0000 (16:01 -0700)]
rgw: update bucket instance with resharding details

can be useful info for later in a cross zone sync

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoradosgw-admin: reshard execute output adjustments
Yehuda Sadeh [Wed, 24 May 2017 20:21:43 +0000 (13:21 -0700)]
radosgw-admin: reshard execute output adjustments

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agocls/rgw: remove unused field in reshard entry
Yehuda Sadeh [Wed, 24 May 2017 18:47:05 +0000 (11:47 -0700)]
cls/rgw: remove unused field in reshard entry

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: reshard: renew lease and handle marker when listing reshard repo
Yehuda Sadeh [Wed, 24 May 2017 18:21:46 +0000 (11:21 -0700)]
rgw: reshard: renew lease and handle marker when listing reshard repo

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agocls/rgw: fix reshard_list truncation identification
Yehuda Sadeh [Wed, 24 May 2017 18:24:20 +0000 (11:24 -0700)]
cls/rgw: fix reshard_list truncation identification

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agocls/rgw: expose api to generate reshard indexing key
Yehuda Sadeh [Wed, 24 May 2017 18:23:46 +0000 (11:23 -0700)]
cls/rgw: expose api to generate reshard indexing key

So that we could use it as a marker when doing reshard_list.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: remove unneeded and duplicate code
Yehuda Sadeh [Tue, 23 May 2017 00:10:14 +0000 (17:10 -0700)]
rgw: remove unneeded and duplicate code

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: initialize bucket structure
Yehuda Sadeh [Tue, 23 May 2017 00:10:07 +0000 (17:10 -0700)]
rgw: initialize bucket structure

after reading bucket info

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw-admin: revive reshard execute command
Yehuda Sadeh [Wed, 24 May 2017 23:58:47 +0000 (16:58 -0700)]
rgw-admin: revive reshard execute command

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: bucket_id does not include bucket name
Yehuda Sadeh [Wed, 24 May 2017 23:58:19 +0000 (16:58 -0700)]
rgw: bucket_id does not include bucket name

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: bi_list() initialize is_truncated if -ENOENT
Yehuda Sadeh [Wed, 24 May 2017 23:55:21 +0000 (16:55 -0700)]
rgw: bi_list() initialize is_truncated if -ENOENT

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: internal api cleanup
Yehuda Sadeh [Wed, 24 May 2017 23:54:30 +0000 (16:54 -0700)]
rgw: internal api cleanup

rename method, minor change

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agocls/rgw: reshard add command doesn't read existing status
Yehuda Sadeh [Wed, 24 May 2017 23:53:34 +0000 (16:53 -0700)]
cls/rgw: reshard add command doesn't read existing status

No need to read existing status.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agocls/rgw: fix remove_reshard objclass op
Yehuda Sadeh [Fri, 19 May 2017 22:44:06 +0000 (15:44 -0700)]
cls/rgw: fix remove_reshard objclass op

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agocls/rgw: modify logshard key
Yehuda Sadeh [Fri, 19 May 2017 16:22:29 +0000 (09:22 -0700)]
cls/rgw: modify logshard key

The logshard key shouldn't include bucket id.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: multiple fixes and adjustments related to resharding scheduler
Yehuda Sadeh [Thu, 18 May 2017 23:21:19 +0000 (16:21 -0700)]
rgw: multiple fixes and adjustments related to resharding scheduler

still wip, but:
 - get rid of some unneeded rados locking
 - rename shards to logshards where relevant to avoid confusion
 - remove unused code

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: fix compilation following rebase
Yehuda Sadeh [Thu, 18 May 2017 21:48:07 +0000 (14:48 -0700)]
rgw: fix compilation following rebase

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: replace reshard blocking sleep with interruptible condition wait
Yehuda Sadeh [Thu, 18 May 2017 18:51:21 +0000 (11:51 -0700)]
rgw: replace reshard blocking sleep with interruptible condition wait

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agorgw: actually reshard an entry from the resharding queue
Orit Wasserman [Fri, 19 May 2017 13:48:12 +0000 (16:48 +0300)]
rgw: actually reshard an entry from the resharding queue

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agorgw: check if buckets needs resharding on all ops that add new objects
Orit Wasserman [Fri, 19 May 2017 12:20:18 +0000 (15:20 +0300)]
rgw: check if buckets needs resharding on all ops that add new objects

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agorgw: add bucket to resharding queue if needs resharding
Orit Wasserman [Fri, 19 May 2017 11:02:17 +0000 (14:02 +0300)]
rgw: add bucket to resharding queue if needs resharding

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agorgw: check for bucket resharding when adding an object
Orit Wasserman [Thu, 18 May 2017 19:48:28 +0000 (22:48 +0300)]
rgw: check for bucket resharding  when adding an object

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agorgw: add a function to add a bucket to the resharding queue
Orit Wasserman [Thu, 18 May 2017 19:47:12 +0000 (22:47 +0300)]
rgw: add a function to add a bucket to the resharding queue

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
8 years agorgw: add a check_bucket_shards to the quota
Orit Wasserman [Thu, 18 May 2017 04:01:35 +0000 (07:01 +0300)]
rgw: add a check_bucket_shards to the quota

Signed-off-by: Orit Wasserman <owasserm@redhat.com>