]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agomon/PGMap: erase osd_epochs entry too when we erase osd_stat entry 15573/head
Sage Weil [Thu, 8 Jun 2017 02:49:23 +0000 (22:49 -0400)]
mon/PGMap: erase osd_epochs entry too when we erase osd_stat entry

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/ClusterState: dump pgmap and inc at dout 30
Sage Weil [Wed, 7 Jun 2017 21:48:40 +0000 (17:48 -0400)]
mgr/ClusterState: dump pgmap and inc at dout 30

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15230 from chardan/jfw-wip-halflife_atomic_t-xio
Sage Weil [Wed, 7 Jun 2017 21:00:30 +0000 (16:00 -0500)]
Merge pull request #15230 from chardan/jfw-wip-halflife_atomic_t-xio

xio: migrate atomic_t to std::atomic<>

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15516 from javacruft/i386-cmake-fixes
Sage Weil [Wed, 7 Jun 2017 21:00:10 +0000 (16:00 -0500)]
Merge pull request #15516 from javacruft/i386-cmake-fixes

cmake: misc fixes for build on i386

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15525 from wjwithagen/wip-wjw-clang-testosdmap
Sage Weil [Wed, 7 Jun 2017 20:59:54 +0000 (15:59 -0500)]
Merge pull request #15525 from wjwithagen/wip-wjw-clang-testosdmap

test: osd/TestOSDMap.cc: fix Clang complain about promotion

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15498 from adamemerson/wip-fixation
Adam C. Emerson [Wed, 7 Jun 2017 17:29:28 +0000 (13:29 -0400)]
Merge pull request #15498 from adamemerson/wip-fixation

test: Fix narrowing conversion
rgw: Support certain archaic and antiquated distributions

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15436 from liewegas/wip-versions
Yuri Weinstein [Wed, 7 Jun 2017 16:36:59 +0000 (09:36 -0700)]
Merge pull request #15436 from liewegas/wip-versions

mon: {mon,osd,mds} {versions,count-metadata}

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15501 from liewegas/wip-blocked-is-err
Sage Weil [Wed, 7 Jun 2017 16:17:39 +0000 (11:17 -0500)]
Merge pull request #15501 from liewegas/wip-blocked-is-err

mon/PGMap: call blocked requests ERR not WARN

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agomon/PGMap: call requests blocked for 128x as long ERR not WARN 15501/head
Sage Weil [Wed, 7 Jun 2017 16:16:58 +0000 (12:16 -0400)]
mon/PGMap: call requests blocked for 128x as long ERR not WARN

- rename the option (max -> warn)
- add an err_..._ratio multiplier
- switch to HEALTH_ERR once requests are blocked long enough
- make the error ratio high (default is 32*128s -> about an hour) so that
we don't trigger on a heavily loaded cluster.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agorgw: Support certain archaic and antiquated distributions 15498/head
Adam C. Emerson [Mon, 5 Jun 2017 19:46:45 +0000 (15:46 -0400)]
rgw: Support certain archaic and antiquated distributions

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agotest: Fix narrowing conversion
Adam C. Emerson [Mon, 5 Jun 2017 19:33:31 +0000 (15:33 -0400)]
test: Fix narrowing conversion

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
8 years agoMerge pull request #15531 from liewegas/wip-osd-pglog
Sage Weil [Wed, 7 Jun 2017 14:48:57 +0000 (09:48 -0500)]
Merge pull request #15531 from liewegas/wip-osd-pglog

osd: rename osd -> osd_pglog; include pglog-related bufferlists

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoosd/osd_types: put pg_log_entry_t::extra_reqids in osd_pglog mempool 15531/head
Sage Weil [Wed, 7 Jun 2017 01:57:04 +0000 (21:57 -0400)]
osd/osd_types: put pg_log_entry_t::extra_reqids in osd_pglog mempool

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: put pg_log_entry_t::snaps in osd_pglog mempool
Sage Weil [Tue, 6 Jun 2017 20:55:23 +0000 (16:55 -0400)]
osd: put pg_log_entry_t::snaps in osd_pglog mempool

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: map ObjectModDesc to osd_pglog pool
Sage Weil [Tue, 6 Jun 2017 20:50:22 +0000 (16:50 -0400)]
osd: map ObjectModDesc to osd_pglog pool

This can consume significant space for EC pools.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: move pglog to osd_pglog mempool
Sage Weil [Tue, 6 Jun 2017 20:49:11 +0000 (16:49 -0400)]
osd: move pglog to osd_pglog mempool

This actually everything in the osd mempool, so it's basically a rename.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15413 from tchaikov/wip-rgw-boost-cleanup
Kefu Chai [Wed, 7 Jun 2017 14:34:43 +0000 (22:34 +0800)]
Merge pull request #15413 from tchaikov/wip-rgw-boost-cleanup

rgw: drop asio/{yield,coroutine}.hpp replacements

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15434 from yuyuyu101/wip-lz4
Sage Weil [Wed, 7 Jun 2017 14:07:45 +0000 (09:07 -0500)]
Merge pull request #15434 from yuyuyu101/wip-lz4

compressor: add LZ4 support

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15512 from jcsp/wip-mgrmap-epoch
Sage Weil [Wed, 7 Jun 2017 14:05:58 +0000 (09:05 -0500)]
Merge pull request #15512 from jcsp/wip-mgrmap-epoch

mon: don't prefix mgr summary with epoch number

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15437 from dachary/wip-bluestore
Sage Weil [Wed, 7 Jun 2017 14:02:29 +0000 (09:02 -0500)]
Merge pull request #15437 from dachary/wip-bluestore

ceph-disk: add --filestore argument, default to --bluestore

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15547 from wjwithagen/wip-wjw-freebsd-get_device_by_fd
Sage Weil [Wed, 7 Jun 2017 13:43:08 +0000 (08:43 -0500)]
Merge pull request #15547 from wjwithagen/wip-wjw-freebsd-get_device_by_fd

common/blkdev.cc: propagate get_device_by_fd to different OSes

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15435 from liewegas/wip-bluestore-warning
Sage Weil [Wed, 7 Jun 2017 13:41:41 +0000 (08:41 -0500)]
Merge pull request #15435 from liewegas/wip-bluestore-warning

os/bluestore: fix warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
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 agocommon/blkdev.cc: propagate get_device_by_fd to different OSes 15547/head
Willem Jan Withagen [Wed, 7 Jun 2017 09:21:57 +0000 (11:21 +0200)]
common/blkdev.cc: propagate get_device_by_fd to different OSes

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
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 agotest: osd/TestOSDMap.cc: fix Clang complain about promotion 15525/head
Willem Jan Withagen [Tue, 6 Jun 2017 21:35:18 +0000 (23:35 +0200)]
test: osd/TestOSDMap.cc: fix Clang complain about promotion

/home/jenkins/workspace/ceph-freebsd/src/test/osd/TestOSDMap.cc:444:15: error: non-constant-expression cannot be narrowed from type 'unsigned int' to 'int' in initializer list [-Wc++11-narrowing]
    m.set(x, {i});
              ^
/home/jenkins/workspace/ceph-freebsd/src/test/osd/TestOSDMap.cc:444:15: note: insert an explicit cast to silence this issue
    m.set(x, {i});
              ^
              static_cast<int>( )
1 error generated.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
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 agoceph-disk: add --filestore argument, default to --bluestore 15437/head
Sage Weil [Wed, 19 Apr 2017 13:31:57 +0000 (09:31 -0400)]
ceph-disk: add --filestore argument, default to --bluestore

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agobuild: misc fixes for cmake build on i386 15516/head
James Page [Tue, 6 Jun 2017 14:01:40 +0000 (15:01 +0100)]
build: misc fixes for cmake build on i386

Scope SIMD CPU flag detection base on target architecture,
resolving build failures in gf-complete on i386; this is
inline with the previous autotools based feature detection.

Only compile crypto/isa-l if yasm 64 bit complier is found,
effectively limiting scope to x86_64.

Signed-off-by: James Page <james.page@ubuntu.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 agomon: don't prefix mgr summary with epoch number 15512/head
John Spray [Tue, 6 Jun 2017 12:16:05 +0000 (13:16 +0100)]
mon: don't prefix mgr summary with epoch number

Missed this one when culling the various epochs
from the human readable ceph status output.

Signed-off-by: John Spray <john.spray@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 agoxio: migrate atomic_t to std::atomic<> 15230/head
Jesse Williamson [Fri, 28 Apr 2017 11:52:46 +0000 (04:52 -0700)]
xio: migrate atomic_t to std::atomic<>

Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
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>