]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomon: auto clean up stale upmap items 25196/head
xie xingguo [Wed, 21 Nov 2018 06:25:45 +0000 (14:25 +0800)]
mon: auto clean up stale upmap items

See https://www.spinics.net/lists/ceph-users/msg49518.html

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoosd/OSDMap: add pg-existence sanity check
xie xingguo [Wed, 21 Nov 2018 01:36:21 +0000 (09:36 +0800)]
osd/OSDMap: add pg-existence sanity check

The reason why __get_pg_pool_size(pg)__ or __get_pg_pool_crush_rule(pg)__ fails is
that the pg does not exist anymore. So it generally makes sense to check __pg_exists(pg)__
before moving further.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
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 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 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>
6 years agoMerge PR #24904 into master
Sage Weil [Fri, 9 Nov 2018 14:38:14 +0000 (08:38 -0600)]
Merge PR #24904 into master

* refs/pull/24904/head:
common: point of this may be called after released

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #24925 into master
Sage Weil [Fri, 9 Nov 2018 14:37:10 +0000 (08:37 -0600)]
Merge PR #24925 into master

* refs/pull/24925/head:
Avoid import _strptime failed
Avoid exception if remote plugin not enabled
Separate diskprediction local plugin from the diskprediction plugin

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #24859 from jan--f/ceph-volume-inventory
Alfredo Deza [Fri, 9 Nov 2018 13:49:55 +0000 (08:49 -0500)]
Merge pull request #24859 from jan--f/ceph-volume-inventory

ceph-volume: add inventory command

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoceph-volume: add inventory command 24859/head
Jan Fajerski [Wed, 31 Oct 2018 13:59:05 +0000 (14:59 +0100)]
ceph-volume: add inventory command

The inventory command provides information about a nodes disk inventory.
Existing logical volumes on a disk or one of its partitions are scanned
and reported.
The output can be formatted as plain text or json.

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
6 years agoMerge pull request #24934 from votdev/improve_crush_map_viewer
Lenz Grimmer [Fri, 9 Nov 2018 12:27:46 +0000 (13:27 +0100)]
Merge pull request #24934 from votdev/improve_crush_map_viewer

mgr/dashboard: Improve CRUSH map viewer

Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #24489 from ricardoasmarques/wip-saml2
Lenz Grimmer [Fri, 9 Nov 2018 12:11:22 +0000 (13:11 +0100)]
Merge pull request #24489 from ricardoasmarques/wip-saml2

mgr/dashboard: SSO - SAML 2.0 support

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agodoc: put command template into literal block 24999/head
Alexey Stupnikov [Thu, 8 Nov 2018 19:44:33 +0000 (20:44 +0100)]
doc: put command template into literal block

``ceph-deploy osd create --data {device} {ceph-node}`` command
is not displayed properly because of missing double colons.

Signed-off-by: Alexey Stupnikov <aleksey.stupnikov@gmail.com>
6 years agodebian: correct ceph-common relationship with older radosgw package 24996/head
Matthew Vernon [Thu, 8 Nov 2018 17:23:36 +0000 (17:23 +0000)]
debian: correct ceph-common relationship with older radosgw package

Fixes: https://tracker.ceph.com/issues/36741
9fd30b93f7281fad70b93512f0a25e3465f5b225 moved
/etc/bash_completion.d/radosgw-admin from radosgw to ceph-common. This
means that if you try and install a newer ceph-common over an older
radosgw, there's a conflict, and the install fails:

```
Unpacking ceph-common (12.2.8-1xenial) over (10.2.9-0ubuntu0.16.04.1) ...
dpkg: error processing archive ceph-common_12.2.8-1xenial_amd64.deb (--install):
 trying to overwrite '/etc/bash_completion.d/radosgw-admin', which is also in package radosgw 10.2.9-0ubuntu0.16.04.1
```

Per Debian policy (
https://www.debian.org/doc/debian-policy/ch-relationships.html#overwriting-files-in-other-packages
) the correct way to handle a package taking over a file is for a
versioned Replaces and Breaks.

The change went into 12.0.3, so this commit adds Replaces and Breaks
against radosgw less than that version. It should be backported to
Luminous to avoid issues with upgrades from older versions (Jewel and
Kraken).

Signed-off-by: Matthew Vernon <mv3@sanger.ac.uk>
6 years agomgr/dashboard: Show info button for crush rules in pool form 24627/head
Stephan Müller [Wed, 24 Oct 2018 14:02:24 +0000 (16:02 +0200)]
mgr/dashboard: Show info button for crush rules in pool form

Signed-off-by: Stephan Müller <smueller@suse.com>