]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomgr/devicehealth: implement config_notify hook 25147/head
Sage Weil [Sat, 17 Nov 2018 13:15:36 +0000 (07:15 -0600)]
mgr/devicehealth: implement config_notify hook

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr: call config_notify method when mgr's config has changed
Sage Weil [Sat, 17 Nov 2018 13:15:19 +0000 (07:15 -0600)]
mgr: call config_notify method when mgr's config has changed

This provides a hook for the module to refresh any config values it has
cached in module-local variables.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/MonClient: add callback for (any) config change
Sage Weil [Sat, 17 Nov 2018 12:50:17 +0000 (06:50 -0600)]
mon/MonClient: add callback for (any) config change

This is a coarse "there was some config update".  It's fired whether or
not it values are observed.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agocommon/config: fix debug output for config callbacks changes
Sage Weil [Fri, 16 Nov 2018 10:38:31 +0000 (04:38 -0600)]
common/config: fix debug output for config callbacks changes

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #25046 from tchaikov/wip-16500
Kefu Chai [Fri, 16 Nov 2018 10:34:24 +0000 (18:34 +0800)]
Merge pull request #25046 from tchaikov/wip-16500

tests: do not check for invalid k/m combinations

Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
6 years agoMerge pull request #25084 from s0nea/wip-dashboard-add-missing-test-suites
Lenz Grimmer [Fri, 16 Nov 2018 10:16:42 +0000 (11:16 +0100)]
Merge pull request #25084 from s0nea/wip-dashboard-add-missing-test-suites

mgr/dashboard/qa: add missing dashboard suites

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge PR #24973 into master
Sage Weil [Fri, 16 Nov 2018 06:23:14 +0000 (00:23 -0600)]
Merge PR #24973 into master

* refs/pull/24973/head:
mgr: Separate diskprediction cloud plugin from the diskprediction plugin

6 years agoMerge PR #20185 into master
Sage Weil [Fri, 16 Nov 2018 06:22:37 +0000 (00:22 -0600)]
Merge PR #20185 into master

* refs/pull/20185/head:
Common, log: Added functionality test for recovery after silenced (#20174)

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #19987 into master
Sage Weil [Fri, 16 Nov 2018 06:22:17 +0000 (00:22 -0600)]
Merge PR #19987 into master

* refs/pull/19987/head:
qa/tasks/ceph: ignore failure when chown ceph:ceph

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agomgr: Separate diskprediction cloud plugin from the diskprediction plugin 24973/head
hsiang41 [Wed, 7 Nov 2018 14:05:35 +0000 (22:05 +0800)]
mgr: Separate diskprediction cloud plugin from the diskprediction plugin

Separate diskprediction local cloud from the diskprediction plugin.
Devicehealth invoke device prediction function related on the global
configuration "device_failure_prediction_mode".

Signed-off-by: Rick Chen <rick.chen@prophetstor.com>
6 years agoMerge pull request #20683 from Aran85/wip-rados-loadgen-align
Kefu Chai [Fri, 16 Nov 2018 05:22:16 +0000 (13:22 +0800)]
Merge pull request #20683 from Aran85/wip-rados-loadgen-align

tools: add offset-align option to "rados" load-gen

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24799 from xiexingguo/wip-js-safe-to-destroy
Kefu Chai [Fri, 16 Nov 2018 05:21:07 +0000 (13:21 +0800)]
Merge pull request #24799 from xiexingguo/wip-js-safe-to-destroy

mgr/DaemonServer: add js-output for "ceph osd safe-to-destroy"

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #24969 from joke-lee/doc-dump-journal-help-info
Kefu Chai [Fri, 16 Nov 2018 05:19:53 +0000 (13:19 +0800)]
Merge pull request #24969 from joke-lee/doc-dump-journal-help-info

osd: add --dump-journal option in ceph-osd help info

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #24866 from linuxbox2/wip-rm-aclparser
Casey Bodley [Thu, 15 Nov 2018 19:01:17 +0000 (14:01 -0500)]
Merge pull request #24866 from linuxbox2/wip-rm-aclparser

rgw: remove rgw_aclparser.cc

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #25108 from tchaikov/wip-bluestore-repair
Kefu Chai [Thu, 15 Nov 2018 16:06:57 +0000 (00:06 +0800)]
Merge pull request #25108 from tchaikov/wip-bluestore-repair

tools/ceph_kvstore_tool: do not open rocksdb when repairing it

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
6 years agoMerge pull request #25070 from tchaikov/wip-25146
Kefu Chai [Thu, 15 Nov 2018 13:15:33 +0000 (21:15 +0800)]
Merge pull request #25070 from tchaikov/wip-25146

rocksdb: pick up a fix to be backward compatible

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agomgr/dashboard/qa: add missing dashboard suites 25084/head
Tatjana Dehler [Wed, 14 Nov 2018 07:36:31 +0000 (08:36 +0100)]
mgr/dashboard/qa: add missing dashboard suites

Fixes: https://tracker.ceph.com/issues/37152
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
6 years agorocksdb: pick up a fix to be backward compatible 25070/head
Kefu Chai [Tue, 13 Nov 2018 03:28:40 +0000 (11:28 +0800)]
rocksdb: pick up a fix to be backward compatible

see https://github.com/facebook/rocksdb/pull/3488

also bump up the rocksdb version to v5.17.2

Fixes: http://tracker.ceph.com/issues/25146
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24901 from wjwithagen/wjw-fix-rbd-ggate-cmake
Kefu Chai [Thu, 15 Nov 2018 07:40:04 +0000 (15:40 +0800)]
Merge pull request #24901 from wjwithagen/wjw-fix-rbd-ggate-cmake

tool: link rbd-ggate against librados-cxx

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25060 from mooncak/fix_typos
Kefu Chai [Thu, 15 Nov 2018 07:29:39 +0000 (15:29 +0800)]
Merge pull request #25060 from mooncak/fix_typos

doc: Fix some typos

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24999 from MrStupnikov/master-docfix-1358
Kefu Chai [Thu, 15 Nov 2018 07:14:03 +0000 (15:14 +0800)]
Merge pull request #24999 from MrStupnikov/master-docfix-1358

doc: Put command template into literal block

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoerasure-code/lrc: error out if "l == 0" 25046/head
Kefu Chai [Wed, 14 Nov 2018 08:33:04 +0000 (16:33 +0800)]
erasure-code/lrc: error out if "l == 0"

l (locality) should not be 0, and k+m should be multiple of it

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoerasure-code: return error using `ss` not derr
Kefu Chai [Mon, 12 Nov 2018 03:04:54 +0000 (11:04 +0800)]
erasure-code: return error using `ss` not derr

log is not very visible from user's perspective. we'd better return the
error message using the input parameter, if the technique is
unsupported.

also, remove the trailing newline, as `ss` will be sent back to user,
it's the the front-end's responsibility to format the error message.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotests: do not check for invalid k/m combinations
Kefu Chai [Mon, 12 Nov 2018 01:55:14 +0000 (09:55 +0800)]
tests: do not check for invalid k/m combinations

This reverts commit c5bafae6fd10282f408695c7763b1277469123f6.

in 37f73607 and 3ec41030, we detect invalid "k". and we should always
detect invalid combinations of parameters in
ErasureCodeInterface::init(), and return -EINVAL instead of "autotune" them
as put in the commit message of c5bafae6, if the profile is invalid for
given erasure plugin. so ErasureCodeBench::encode() and
ErasureCodeBench::decode() will bail out with the error message returned by
ErasureCodeInterface::init() if the parameters are not valid.

also, i checked all ErasureCodeInterface::init() implementations, none
of them is overwriting the settings without returning a non-zero return
code. so we are not overriding or autotuning the settings specified by
user.

Fixes: http://tracker.ceph.com/issues/16500
Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotests: use stoi() instead of atoi()
Kefu Chai [Mon, 12 Nov 2018 01:49:53 +0000 (09:49 +0800)]
tests: use stoi() instead of atoi()

stoi() is simpler if we need to convert std::string to integer.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24996 from mcv21/bug/note_file_move
Kefu Chai [Thu, 15 Nov 2018 06:28:47 +0000 (14:28 +0800)]
Merge pull request #24996 from mcv21/bug/note_file_move

debian: correct ceph-common relationship with older radosgw package

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25048 from swinds24/master_fix_36764
Kefu Chai [Thu, 15 Nov 2018 06:26:53 +0000 (14:26 +0800)]
Merge pull request #25048 from swinds24/master_fix_36764

ceph-mgr: hold lock while accessing the request list and submitting request

Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24458 from rzarzynski/wip-osd-drop-osd_instructions
Kefu Chai [Thu, 15 Nov 2018 06:16:05 +0000 (14:16 +0800)]
Merge pull request #24458 from rzarzynski/wip-osd-drop-osd_instructions

osd: drop the unused request_redirect_t::osd_instructions

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24141 from liu-chunmei/ceph_seastar_perfcounter
Kefu Chai [Thu, 15 Nov 2018 06:13:39 +0000 (14:13 +0800)]
Merge pull request #24141 from liu-chunmei/ceph_seastar_perfcounter

common,crimson: port perfcounters to seastar

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24858 from jecluis/wip-pr-19983-tests
Kefu Chai [Thu, 15 Nov 2018 06:12:09 +0000 (14:12 +0800)]
Merge pull request #24858 from jecluis/wip-pr-19983-tests

qa/cephtool: test bounds on pool's `hit_set_*`

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #25106 from tchaikov/wip-qa-envlibrados
Kefu Chai [Thu, 15 Nov 2018 06:06:54 +0000 (14:06 +0800)]
Merge pull request #25106 from tchaikov/wip-qa-envlibrados

qa: fix upgrade tests and test_envlibrados_for_rocksdb.sh

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agotools/ceph_kvstore_tool: do not open rocksdb when repairing it 25108/head
Kefu Chai [Thu, 15 Nov 2018 05:56:19 +0000 (13:56 +0800)]
tools/ceph_kvstore_tool: do not open rocksdb when repairing it

before this change, the `need_open_db` parameter is passed to the
constructor of BlueStore as `min_alloc_size`. and rocksdb will fail to
repair because Repairer::Run() also tries to acquire the db lock, and it
will fail to do so if the lock file is already acquired by
BlueStore::_mount().

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa: patch rocksdb the right way 25106/head
Kefu Chai [Thu, 15 Nov 2018 05:02:59 +0000 (13:02 +0800)]
qa: patch rocksdb the right way

quote from patch(1)

>       but usually just
>
>       patch -pnum <patchfile

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24979 from neha-ojha/wip-upgrade-bug
Neha Ojha [Thu, 15 Nov 2018 04:51:55 +0000 (20:51 -0800)]
Merge pull request #24979 from neha-ojha/wip-upgrade-bug

doc/releases/mimic.rst: make note of 13.2.2 upgrade bug

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #25072 from tchaikov/wip-silence-sign-compare
Kefu Chai [Thu, 15 Nov 2018 04:09:49 +0000 (12:09 +0800)]
Merge pull request #25072 from tchaikov/wip-silence-sign-compare

os/tests: silence -Wsign-compare warning

Reviewed-by: Jos Collin <jcollin@redhat.com>
6 years agoqa: use FOUND_VAR to be backward compatible with cmake 2.8.12
Kefu Chai [Thu, 15 Nov 2018 01:47:27 +0000 (09:47 +0800)]
qa: use FOUND_VAR to be backward compatible with cmake 2.8.12

before this change, we assume that the variable set if rados::radospp is
found will be radospp_FOUND, but this is a feature cmake 3, see
https://cmake.org/cmake/help/v3.3/module/FindPackageHandleStandardArgs.html

while the cmake shipped by centos is cmake 2.8.12, where the variable
name will be <UPPERCASED_NAME>_FOUND, see
https://cmake.org/cmake/help/v2.8.12/cmake.html#module:FindPackageHandleStandardArgs

in the test of test_envlibrados_for_rocksdb.sh, we are using cmake not
the cmake3 offered by EPEL7, so RADOSPP_FOUND will be set instead. that's why
executable env_librados_test will fail to link against rados::radospp.
as rados::radospp won't be defined if radospp_FOUND is not defined/set.

after this change, the 2nd mode of FIND_PACKAGE_HANDLE_STANDARD_ARGS()
is used instead to ensure that radospp_FOUND is defined even if cmake
2.8.12 is used.

also, the message() commands for debugging purpose are removed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/suites: add librados2 to "extra_packages" for upgrade tests
Kefu Chai [Thu, 15 Nov 2018 03:34:29 +0000 (11:34 +0800)]
qa/suites: add librados2 to "extra_packages" for upgrade tests

we use the playbook of "testnodes.yml" defined by ceph-cm-ansible for
initializing test nodes, and the role of "testnode" is used by
testnodes.yml. "testnode" requires "qemu-system-x86" or "qemu-kvm"
package to be installed. the qemu in turn depends on librbd1 and
librados2.

before librados3 was introduced, this worked perfectly. because in ceph
repo, qa/packages/packages.yaml defines the default set of packages the
"install" tasks should install. and in that yaml file, librados2 was
listed. so the package management system will overwrite the librados2
installed by ansible playbook with the version specified by the
"install" task, as apt/yum thinks this is what user requires explicitly,
so it's fine to install a different version of librados2.

after librados3 was introduced, librados2 was removed from
qa/packages/packages.yaml. because, by default, we need to install
librados3 instead of librados2 for ready a nautilus cluster. but the
problem is, the packge list also applies to "install" tasks installing
releases before nautilus, where we still need to replace the librados2
installed by ansible.

so, to address this issue, "librados2" is added to "extra_packages" of
the "install" tasks of tests installing old releases to install
librados2 explicitly instead of as a dependency of other ceph packages
like librbd1.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/DaemonServer: add js-output for "ceph osd safe-to-destroy" 24799/head
xie xingguo [Mon, 29 Oct 2018 08:56:07 +0000 (16:56 +0800)]
mgr/DaemonServer: add js-output for "ceph osd safe-to-destroy"

E.g.:
 - case 1:
$ceph osd safe-to-destroy 0 1 2 -f json-pretty
Error EAGAIN: 12 pgs have unknown state; cannot draw any conclusions

 - case 2:
$ceph osd safe-to-destroy 0 1 2 -f json-pretty
{
    "safe_to_destroy": [
        0,
        1,
        2
    ],
    "active": [],
    "missing_stats": [],
    "stored_pgs": []
}

 - case 3:
$ceph osd safe-to-destroy 0 1 2 -f json-pretty
{
    "safe_to_destroy": [],
    "active": [
        0,
        1,
        2
    ],
    "missing_stats": [],
    "stored_pgs": []
}

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #25098 from ceph/rm-27062
Alfredo Deza [Wed, 14 Nov 2018 18:31:18 +0000 (13:31 -0500)]
Merge pull request #25098 from ceph/rm-27062

ceph-volume: reject devices that have existing GPT headers

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #25093 from alfredodeza/wip-bz1644828
Andrew Schoen [Wed, 14 Nov 2018 17:00:34 +0000 (11:00 -0600)]
Merge pull request #25093 from alfredodeza/wip-bz1644828

ceph-volume: remove LVs when using zap --destroy

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoos/tests: silence -Wsign-compare warning 25072/head
Kefu Chai [Tue, 13 Nov 2018 08:45:10 +0000 (16:45 +0800)]
os/tests: silence -Wsign-compare warning

silence warning like

In file included from
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/test/objectstore/store_test.cc:25:0:
/home/jenkins-build/build/workspace/ceph-pull-requests-arm64/src/googletest/googletest/include/gtest/gtest.h:
In instantiation of 'testing::AssertionResult
testing::internal::CmpHelperEQ(const char*, const char*, const T1&,
const T2&) [with T1 = int; T2 = long unsigned int]':

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoceph-volume: update tests after removing the LVPath arg validator 25098/head
Andrew Schoen [Wed, 14 Nov 2018 16:35:32 +0000 (10:35 -0600)]
ceph-volume: update tests after removing the LVPath arg validator

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: rm#27062

6 years agoceph-volume: return lvs as vg/lv from ValidDevice if as_string is True
Andrew Schoen [Tue, 13 Nov 2018 19:02:39 +0000 (13:02 -0600)]
ceph-volume: return lvs as vg/lv from ValidDevice if as_string is True

All code in prepare and activate expect lvs to be in that format.
Eventually we can refactor all that to use the Device class as well.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: rm#27062

6 years agoceph-volume: adds lv_name property to Device class
Andrew Schoen [Tue, 13 Nov 2018 18:40:45 +0000 (12:40 -0600)]
ceph-volume: adds lv_name property to Device class

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: rm#27062

6 years agoceph-volume: combine the LVPath arg validator with ValidDevice
Andrew Schoen [Tue, 13 Nov 2018 18:28:23 +0000 (12:28 -0600)]
ceph-volume: combine the LVPath arg validator with ValidDevice

This combines the two arg validators and makes both batch and
prepare/active both use ValidDevice.

This will also allow us to use lvs with a full path, like
/dev/vg/lv instead of always enforcing vg/lv.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: rm#27062

6 years agoceph-volume: adds has_gpt_headers property to Device class
Andrew Schoen [Tue, 13 Nov 2018 18:27:19 +0000 (12:27 -0600)]
ceph-volume: adds has_gpt_headers property to Device class

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: rm#27062

6 years agoceph-volume: add PTTYPE to blkid parser
Andrew Schoen [Tue, 13 Nov 2018 15:35:21 +0000 (09:35 -0600)]
ceph-volume: add PTTYPE to blkid parser

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
Resolves: rm#27062

6 years agoMerge pull request #25094 from CharlotteRose/wip-fix-boxes
Jos Collin [Wed, 14 Nov 2018 16:23:28 +0000 (21:53 +0530)]
Merge pull request #25094 from CharlotteRose/wip-fix-boxes

doc: Fixed the paragraph and boxes

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
6 years agoMerge pull request #24789 from Ranjitha-G/dashboard-test-erasure
Lenz Grimmer [Wed, 14 Nov 2018 15:46:34 +0000 (16:46 +0100)]
Merge pull request #24789 from Ranjitha-G/dashboard-test-erasure

mgr/dashboard: Add unit test case for controller/erasure_code_profile.py

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agodoc: Fixed the paragraph and boxes. 25094/head
Scoots Hamilton [Wed, 14 Nov 2018 15:27:48 +0000 (10:27 -0500)]
doc: Fixed the paragraph and boxes.

Signed-off-by: Scoots Hamilton <scoots@redhat.com>
6 years agoMerge pull request #24788 from Ranjitha-G/dashboard-hacking-doc
Lenz Grimmer [Wed, 14 Nov 2018 12:44:19 +0000 (13:44 +0100)]
Merge pull request #24788 from Ranjitha-G/dashboard-hacking-doc

mgr/dashboard: Fix some setup steps in HACKING.rst

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agodoc: Fix some typos 25060/head
mooncake [Mon, 12 Nov 2018 15:15:37 +0000 (23:15 +0800)]
doc: Fix some typos

Signed-off-by: mooncake <xcoder@tenxcloud.com>
6 years agoMerge pull request #25080 from smithfarm/wip-37089
Josh Durgin [Wed, 14 Nov 2018 10:17:52 +0000 (15:47 +0530)]
Merge pull request #25080 from smithfarm/wip-37089

tests: make ceph-admin-commands.sh log what it does

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge pull request #25083 from iridescent-rsy/fix-typo
Jason Dillaman [Wed, 14 Nov 2018 06:32:58 +0000 (12:02 +0530)]
Merge pull request #25083 from iridescent-rsy/fix-typo

rbd: fix some typos

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agorbd_mirror: fix a typo. 25083/head
Shiyang Ruan [Wed, 14 Nov 2018 03:21:17 +0000 (11:21 +0800)]
rbd_mirror: fix a typo.

Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
6 years agorbd_mirror: restore the header annotation.
Shiyang Ruan [Mon, 12 Nov 2018 06:29:43 +0000 (14:29 +0800)]
rbd_mirror: restore the header annotation.

Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
6 years agorbd: fix typos.
Shiyang Ruan [Tue, 6 Nov 2018 09:13:43 +0000 (17:13 +0800)]
rbd: fix typos.

Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
6 years agodoc/releases/mimic.rst: make note of 13.2.2 upgrade bug 24979/head
Neha Ojha [Wed, 7 Nov 2018 19:21:57 +0000 (11:21 -0800)]
doc/releases/mimic.rst: make note of 13.2.2 upgrade bug

Signed-off-by: Neha Ojha <nojha@redhat.com>
6 years agoceph-volume tests update tests to handle new SystemExit exceptions in main 25093/head
Alfredo Deza [Tue, 13 Nov 2018 22:06:03 +0000 (17:06 -0500)]
ceph-volume tests update tests to handle new SystemExit exceptions in main

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.api verify that Volume object can be removed
Alfredo Deza [Tue, 13 Nov 2018 22:05:31 +0000 (17:05 -0500)]
ceph-volume tests.api verify that Volume object can be removed

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume api.lvm allow passing a Volume object to remove_lv
Alfredo Deza [Tue, 13 Nov 2018 21:56:02 +0000 (16:56 -0500)]
ceph-volume api.lvm allow passing a Volume object to remove_lv

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests.functional.lvm test full removal of LVs
Alfredo Deza [Tue, 13 Nov 2018 21:05:32 +0000 (16:05 -0500)]
ceph-volume tests.functional.lvm test full removal of LVs

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume main raise sys.exit to prevent garbage in help
Alfredo Deza [Tue, 13 Nov 2018 13:32:16 +0000 (08:32 -0500)]
ceph-volume main raise sys.exit to prevent garbage in help

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume lvm.zap remove vgs|lvs when --destroy is used
Alfredo Deza [Tue, 13 Nov 2018 13:30:23 +0000 (08:30 -0500)]
ceph-volume lvm.zap remove vgs|lvs when --destroy is used

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge PR #24490 into master
Patrick Donnelly [Tue, 13 Nov 2018 21:03:02 +0000 (13:03 -0800)]
Merge PR #24490 into master

* refs/pull/24490/head:
mds: flush dirty dirfrags that weren't logged when deactivating mds
mds: use MDlog::trim_all() to trim log when deactivating mds
mds: don't cap log when there are replicated objects

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agotests: make ceph-admin-commands.sh log what it does 25080/head
Nathan Cutler [Tue, 13 Nov 2018 18:46:24 +0000 (19:46 +0100)]
tests: make ceph-admin-commands.sh log what it does

Fixes: http://tracker.ceph.com/issues/37089
Signed-off-by: Nathan Cutler <ncutler@suse.com>
6 years agoMerge pull request #25057 from joke-lee/wip-ceph-dencoder-support
Casey Bodley [Tue, 13 Nov 2018 13:56:26 +0000 (08:56 -0500)]
Merge pull request #25057 from joke-lee/wip-ceph-dencoder-support

ceph-dencoder: add RGWRealm and RGWPeriod  support.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #25071 from tchaikov/wip-install-dep-for-python-saml
Kefu Chai [Tue, 13 Nov 2018 10:17:54 +0000 (18:17 +0800)]
Merge pull request #25071 from tchaikov/wip-install-dep-for-python-saml

install-deps.sh: install libtool-ltdl-devel for building python-saml

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoosd: add --dump-journal option in ceph-osd help info 24969/head
yuliyang [Tue, 13 Nov 2018 09:38:46 +0000 (17:38 +0800)]
osd: add --dump-journal option in ceph-osd help info

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
6 years agoinstall-deps.sh: install libtool-ltdl-devel for building python-saml 25071/head
Kefu Chai [Tue, 13 Nov 2018 07:27:08 +0000 (15:27 +0800)]
install-deps.sh: install libtool-ltdl-devel for building python-saml

python-saml depends on dm.xmlsec.binding. which links against ltdl. so
without libtool-ltdl-devel, we will have

/opt/rh/devtoolset-7/root/usr/libexec/gcc/aarch64-redhat-linux/7/ld:
cannot find -lltdl

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoceph-dencoder: add RGWRealm support. 25057/head
yuliyang [Mon, 12 Nov 2018 12:54:38 +0000 (20:54 +0800)]
ceph-dencoder: add RGWRealm support.

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
6 years agoMerge pull request #25037 from tchaikov/wip-qa-upgrade
Kefu Chai [Mon, 12 Nov 2018 22:38:21 +0000 (06:38 +0800)]
Merge pull request #25037 from tchaikov/wip-qa-upgrade

qa: add librados3 to exclude_packages for ugprade tests

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoMerge pull request #25063 from alfredodeza/wip-rm36768
Alfredo Deza [Mon, 12 Nov 2018 19:59:14 +0000 (14:59 -0500)]
Merge pull request #25063 from alfredodeza/wip-rm36768

ceph-volume: patch Device when testing

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoceph-volume tests patch Device() by splitting parametrized method 25063/head
Alfredo Deza [Mon, 12 Nov 2018 17:57:26 +0000 (12:57 -0500)]
ceph-volume tests patch Device() by splitting parametrized method

This was causing failures on systems where there is no LVM or where the
device names don't match. Patching is always recommended to avoid
conflicts with the system testing

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume tests inventory should patch before using .get_devices()
Alfredo Deza [Mon, 12 Nov 2018 17:56:42 +0000 (12:56 -0500)]
ceph-volume tests inventory should patch before using .get_devices()

Signed-off-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #25039 from tchaikov/wip-install-setuptools
Kefu Chai [Mon, 12 Nov 2018 12:05:29 +0000 (20:05 +0800)]
Merge pull request #25039 from tchaikov/wip-install-setuptools

install-deps: install setuptools before upgrading virtualenv

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge PR #25051 into master
Sage Weil [Mon, 12 Nov 2018 08:50:23 +0000 (02:50 -0600)]
Merge PR #25051 into master

* refs/pull/25051/head:
doc/governance: reference the new Ceph Foundation

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
6 years agodoc/governance: reference the new Ceph Foundation 25051/head
Sage Weil [Thu, 8 Nov 2018 20:38:00 +0000 (14:38 -0600)]
doc/governance: reference the new Ceph Foundation

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoceph-mgr: hold lock while accessing the request list and submitting request 25048/head
Jerry Lee [Mon, 12 Nov 2018 06:27:53 +0000 (14:27 +0800)]
ceph-mgr: hold lock while accessing the request list and submitting request

The request creation can fire up the notify event early and it can cause
a race condition where the actual request was not yet added to the
self.requests list which makes the submit_request() function waits
forever without accepting new requests.

https://marc.info/?l=ceph-devel&m=154104291714160&w=2

Fixes: https://tracker.ceph.com/issues/36764
Signed-off-by: Jerry Lee <leisurelysw24@gmail.com>
6 years agoinstall-deps: install setuptools before upgrading virtualenv 25039/head
Kefu Chai [Sat, 10 Nov 2018 21:33:43 +0000 (13:33 -0800)]
install-deps: install setuptools before upgrading virtualenv

this should address the failures when running install-deps.sh, like

Downloading/unpacking virtualenv
  Running setup.py egg_info for package virtualenv
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'python_requires'
      warnings.warn(msg)
    error in virtualenv setup command: 'extras_require' must be a
dictionary whose values are strings or lists of strings containing valid
project/version requirement specifiers.
    Complete output from command python setup.py egg_info:
    /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown
distribution option: 'python_requires'

  warnings.warn(msg)

error in virtualenv setup command: 'extras_require' must be a dictionary
whose values are strings or lists of strings containing valid
project/version requirement specifiers.

this only happens on very old virtualenv shipped with RHEL7.4

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #25033 into master
Sage Weil [Sat, 10 Nov 2018 20:07:11 +0000 (14:07 -0600)]
Merge PR #25033 into master

* refs/pull/25033/head:
doc/governance: update CLT membership

Reviewed-by: Sebastian Wagner <swagner@suse.com>
6 years agoMerge pull request #25038 from yuriw/wip-yuriw-crontab-master
Kefu Chai [Sat, 10 Nov 2018 19:46:19 +0000 (11:46 -0800)]
Merge pull request #25038 from yuriw/wip-yuriw-crontab-master

qa/tests: added "-n 7" to make sure mimic-x runs on built master branch

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoqa/tests: added "-n 7" to make sure mimic-x runs on built master branch 25038/head
Yuri Weinstein [Sat, 10 Nov 2018 18:18:49 +0000 (10:18 -0800)]
qa/tests: added "-n 7" to make sure mimic-x runs on built master branch

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agodoc/governance: update CLT membership 25033/head
Sage Weil [Thu, 8 Nov 2018 20:36:55 +0000 (14:36 -0600)]
doc/governance: update CLT membership

- Neha is the new RADOS lead, but Josh is sticking around on the CLT
- John is leaving Red Hat and the Ceph project (we will miss him!)
- alphabetize

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoqa: add librados3 to exclude_packages for ugprade tests 25037/head
Kefu Chai [Sat, 10 Nov 2018 15:17:24 +0000 (07:17 -0800)]
qa: add librados3 to exclude_packages for ugprade tests

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #25023 into master
Sage Weil [Sat, 10 Nov 2018 13:46:53 +0000 (07:46 -0600)]
Merge PR #25023 into master

* refs/pull/25023/head:
doc/governance: Add Sebastian to CLT

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agodoc/governance: Add Sebastian to CLT 25023/head
Sebastian Wagner [Sat, 10 Nov 2018 10:59:46 +0000 (11:59 +0100)]
doc/governance: Add Sebastian to CLT

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #24830 from dillaman/wip-rbd-pool-stats
Mykola Golub [Sat, 10 Nov 2018 10:23:40 +0000 (12:23 +0200)]
Merge pull request #24830 from dillaman/wip-rbd-pool-stats

rbd: expose pool stats summary tool

Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #24265 from trociny/wip-36091
Jason Dillaman [Sat, 10 Nov 2018 00:56:11 +0000 (19:56 -0500)]
Merge pull request #24265 from trociny/wip-36091

osd: collect client perf stats when query is enabled

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #24214 from iridescent-rsy/bursting_io
Jason Dillaman [Sat, 10 Nov 2018 00:53:55 +0000 (19:53 -0500)]
Merge pull request #24214 from iridescent-rsy/bursting_io

librbd: reduce the TokenBucket fill cycle and support bursting io configuration

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #22476 from dzafman/wip-23875
Josh Durgin [Fri, 9 Nov 2018 23:15:01 +0000 (15:15 -0800)]
Merge pull request #22476 from dzafman/wip-23875

Removal of snapshot with corrupt replica crashes osd

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #24806 into master
Sage Weil [Fri, 9 Nov 2018 20:53:56 +0000 (14:53 -0600)]
Merge PR #24806 into master

* refs/pull/24806/head:
os/filestore: fix merge_collection replay guards

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #24843 into master
Sage Weil [Fri, 9 Nov 2018 20:53:16 +0000 (14:53 -0600)]
Merge PR #24843 into master

* refs/pull/24843/head:
osd/osd_types: fix notify-ack string rendering

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agorbd: added new 'pool stats' action 24830/head
Jason Dillaman [Tue, 30 Oct 2018 14:21:17 +0000 (10:21 -0400)]
rbd: added new 'pool stats' action

This provides a quick summary of provisioned pool usage.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agolibrbd: new pool init/stat API methods
Jason Dillaman [Tue, 30 Oct 2018 01:55:54 +0000 (21:55 -0400)]
librbd: new pool init/stat API methods

The init method is a stub for handling new pool initialization. It
currently only handles setting the application tag. The stats method
will quickly calculate the number of images and provisioned space for
those images within the pool. Querying the pool stats on a pool with
10,000 images only required approximately 2 seconds as compared to
over 2 minutes for a "rbd ls -l" scan.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
6 years agomgr/dashboard: Add unit test case for controller/erasure_code_profile.py 24789/head
Ranjitha G [Sat, 27 Oct 2018 16:27:03 +0000 (21:57 +0530)]
mgr/dashboard: Add unit test case for controller/erasure_code_profile.py

Signed-off-by: Ranjitha G <ranjitha.kmg@gmail.com>
6 years agoMerge pull request #24998 from alfredodeza/wip-rm36470
Andrew Schoen [Fri, 9 Nov 2018 15:44:44 +0000 (09:44 -0600)]
Merge pull request #24998 from alfredodeza/wip-rm36470

ceph-volume enable  --no-systemd flag for simple sub-command

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
6 years agoMerge pull request #24627 from Devp00l/wip-manage-ec-profiles
Lenz Grimmer [Fri, 9 Nov 2018 15:29:43 +0000 (16:29 +0100)]
Merge pull request #24627 from Devp00l/wip-manage-ec-profiles

mgr/dashboard: Adds ECP management to the frontend

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge PR #24459 into master
Sage Weil [Fri, 9 Nov 2018 15:24:57 +0000 (09:24 -0600)]
Merge PR #24459 into master

* refs/pull/24459/head:
os: Transaction uses append_hole() to minimize bl:_buffers inflation.

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #24890 into master
Sage Weil [Fri, 9 Nov 2018 14:38:33 +0000 (08:38 -0600)]
Merge PR #24890 into master

* refs/pull/24890/head:
mon: fix 'log last' missing out latest event

Reviewed-by: Sage Weil <sage@redhat.com>