]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomgr/dashboard: Show/Hide Grafana tabs according to user role 24851/head
Kanika Murarka [Mon, 19 Nov 2018 08:13:52 +0000 (13:43 +0530)]
mgr/dashboard: Show/Hide Grafana tabs according to user role

Fixes: http://tracker.ceph.com/issues/36655
Signed-off-by: Kanika Murarka <kmurarka@redhat.com>
6 years agoMerge pull request #25135 from cbodley/wip-test-log-garble
Casey Bodley [Fri, 16 Nov 2018 19:23:39 +0000 (14:23 -0500)]
Merge pull request #25135 from cbodley/wip-test-log-garble

test: fix libc++ crash in Log.GarbleRecovery

Reviewed-by: Adam Kupczyk <akucpzyk@redhat.com>
6 years agoMerge pull request #22613 from zhangsw/fix-rgw-copyobj-tailtag
Yuri Weinstein [Fri, 16 Nov 2018 16:06:51 +0000 (08:06 -0800)]
Merge pull request #22613 from zhangsw/fix-rgw-copyobj-tailtag

rgw: Copying object data should generate new tail tag for the new object.

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agoMerge pull request #23652 from theanalyst/rgw/awsv4/presign-slashes
Yuri Weinstein [Fri, 16 Nov 2018 16:06:23 +0000 (08:06 -0800)]
Merge pull request #23652 from theanalyst/rgw/awsv4/presign-slashes

rgw: s3: awsv4 drop special handling for x-amz-credential

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agoMerge pull request #25003 from ivancich/wip-update-reshard-params
Yuri Weinstein [Fri, 16 Nov 2018 16:03:35 +0000 (08:03 -0800)]
Merge pull request #25003 from ivancich/wip-update-reshard-params

rgw: reshard improvements

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
6 years agoMerge pull request #25102 from cbodley/wip-rgw-log-http-status
Yuri Weinstein [Fri, 16 Nov 2018 16:03:09 +0000 (08:03 -0800)]
Merge pull request #25102 from cbodley/wip-rgw-log-http-status

rgw: log http status with op prefix if available

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
6 years agotest: fix libc++ crash in Log.GarbleRecovery 25135/head
Casey Bodley [Fri, 16 Nov 2018 15:36:12 +0000 (10:36 -0500)]
test: fix libc++ crash in Log.GarbleRecovery

Signed-off-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #25007 from jan--f/c-v-dont-duplicated-rejected-reasons
Alfredo Deza [Fri, 16 Nov 2018 15:28:16 +0000 (10:28 -0500)]
Merge pull request #25007 from jan--f/c-v-dont-duplicated-rejected-reasons

ceph-volume: rename Device property valid to available

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #25002 from yehudasa/wip-rgw-svc-5
Casey Bodley [Fri, 16 Nov 2018 14:57:04 +0000 (09:57 -0500)]
Merge pull request #25002 from yehudasa/wip-rgw-svc-5

rgw: fix uninitialized access

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #24967 from bi-shun/fix-brotli
Kefu Chai [Fri, 16 Nov 2018 14:32:08 +0000 (22:32 +0800)]
Merge pull request #24967 from bi-shun/fix-brotli

compressor: Fix build of Brotli Compressor

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #24803 from tspmelo/wip-i18n
Lenz Grimmer [Fri, 16 Nov 2018 14:26:32 +0000 (15:26 +0100)]
Merge pull request #24803 from tspmelo/wip-i18n

mgr/dashboard: Add i18n support

Reviewed-by: Laura Paduano <lpaduano@suse.com>
6 years agoMerge PR #14092 into master
Sage Weil [Fri, 16 Nov 2018 13:11:44 +0000 (07:11 -0600)]
Merge PR #14092 into master

* refs/pull/14092/head:
mgr/DaemonServer: fix session leak
mon/MonClient: ignore new mon commands while stopping
mgr/DeviceState: fix DeviceState initial refcount
qa/suites: valgrind ceph-mgr too

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #25052 into master
Sage Weil [Fri, 16 Nov 2018 13:11:15 +0000 (07:11 -0600)]
Merge PR #25052 into master

* refs/pull/25052/head:
mgr: lock pg_map too for osd_pool_stats and notify_osdmap
mgr/DaemonServer: use with_osdmap_and_pgmap instead of nested calls
mgr/ClusterState: add with_osdmap_and_pgmap

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocompressor: modify brotli compression plugin. 24967/head
BI SHUN KE [Wed, 7 Nov 2018 08:14:22 +0000 (16:14 +0800)]
compressor: modify brotli compression plugin.

* add "common/ceph_context.h" header file to CompressionPluginBrotli.cc
* set the brotli v1.0.7 stable version for compressor plugin use.

Signed-off-by: BI SHUN KE <aionshun@livemail.tw>
6 years agoMerge pull request #25092 from jan--f/c-v-inventory-doc
Alfredo Deza [Fri, 16 Nov 2018 12:52:57 +0000 (07:52 -0500)]
Merge pull request #25092 from jan--f/c-v-inventory-doc

doc: add ceph-volume inventory sections

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #25053 from rhcs-dashboard/pytest-faulthandler
Lenz Grimmer [Fri, 16 Nov 2018 11:59:37 +0000 (12:59 +0100)]
Merge pull request #25053 from rhcs-dashboard/pytest-faulthandler

mgr/dashboard: add pytest plugin: faulthandler

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
6 years agomgr: lock pg_map too for osd_pool_stats and notify_osdmap 25052/head
Sage Weil [Thu, 15 Nov 2018 22:27:18 +0000 (16:27 -0600)]
mgr: lock pg_map too for osd_pool_stats and notify_osdmap

Fixes: http://tracker.ceph.com/issues/36766
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/DaemonServer: use with_osdmap_and_pgmap instead of nested calls
Sage Weil [Thu, 15 Nov 2018 22:28:34 +0000 (16:28 -0600)]
mgr/DaemonServer: use with_osdmap_and_pgmap instead of nested calls

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 agoc-v device test: rename valid to available 25007/head
Jan Fajerski [Fri, 16 Nov 2018 08:27:34 +0000 (09:27 +0100)]
c-v device test: rename valid to available

Update test to reflect 8a80990471108b0920d1d8aa1239733ae2b20e9c

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
6 years agoinventory test: rename valid to available
Jan Fajerski [Fri, 16 Nov 2018 08:24:37 +0000 (09:24 +0100)]
inventory test: rename valid to available

Fixes test to reflect 8a80990471108b0920d1d8aa1239733ae2b20e9c

Signed-off-by: Jan Fajerski <jfajerski@suse.com>
6 years agoceph-volume: rename Device property valid to available
Jan Fajerski [Fri, 16 Nov 2018 08:22:06 +0000 (09:22 +0100)]
ceph-volume: rename Device property valid to available

This flag is used in the inventory reporting and available is deemed more
appropriate. Furthermore this fixes a bug where rejected_reasons
accumulated duplicate entries.

Fixes: http://tracker.ceph.com/issues/36701
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
6 years agodoc: add ceph-volume inventory sections 25092/head
Jan Fajerski [Wed, 14 Nov 2018 13:09:37 +0000 (14:09 +0100)]
doc: add ceph-volume inventory sections

Signed-off-by: Jan Fajerski <jfajerski@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 agomgr/DaemonServer: fix session leak 14092/head
Sage Weil [Fri, 9 Nov 2018 03:30:09 +0000 (21:30 -0600)]
mgr/DaemonServer: fix session leak

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomon/MonClient: ignore new mon commands while stopping
Sage Weil [Fri, 9 Nov 2018 03:28:18 +0000 (21:28 -0600)]
mon/MonClient: ignore new mon commands while stopping

If one thread is stopping and another threads tries to send a new mon
command, just ignore it.

Signed-off-by: Sage Weil <sage@redhat.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 agomgr/ClusterState: add with_osdmap_and_pgmap
Sage Weil [Thu, 15 Nov 2018 22:26:48 +0000 (16:26 -0600)]
mgr/ClusterState: add with_osdmap_and_pgmap

Several call sites need to lock both

Signed-off-by: Sage Weil <sage@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 agomgr/dashboard: Trim HTML translations 24803/head
Tiago Melo [Wed, 7 Nov 2018 19:01:53 +0000 (19:01 +0000)]
mgr/dashboard: Trim HTML translations

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Add locale files
Tiago Melo [Mon, 29 Oct 2018 12:54:43 +0000 (12:54 +0000)]
mgr/dashboard: Add locale files

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Use I18N in TypeScript strings
Tiago Melo [Tue, 30 Oct 2018 18:17:32 +0000 (18:17 +0000)]
mgr/dashboard: Use I18N in TypeScript strings

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Add missing HTML translations
Tiago Melo [Tue, 6 Nov 2018 18:30:47 +0000 (18:30 +0000)]
mgr/dashboard: Add missing HTML translations

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Fix existing translations
Tiago Melo [Tue, 6 Nov 2018 17:57:45 +0000 (17:57 +0000)]
mgr/dashboard: Fix existing translations

Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Add I18N section to HACKING.rst
Sebastian Krah [Fri, 19 Oct 2018 14:31:35 +0000 (16:31 +0200)]
mgr/dashboard: Add I18N section to HACKING.rst

Signed-off-by: Sebastian Krah <skrah@suse.com>
Signed-off-by: Tiago Melo <tmelo@suse.com>
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 agorgw: log http status with op prefix if available 25102/head
Casey Bodley [Wed, 14 Nov 2018 18:30:23 +0000 (13:30 -0500)]
rgw: log http status with op prefix if available

Signed-off-by: Casey Bodley <cbodley@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 agomgr/dashboard: Add language selector
Sebastian Krah [Fri, 19 Oct 2018 12:34:58 +0000 (14:34 +0200)]
mgr/dashboard: Add language selector

Add the language selector to the navigation.

Signed-off-by: Sebastian Krah <skrah@suse.com>
Signed-off-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Add i18n providers
Sebastian Krah [Fri, 19 Oct 2018 07:21:02 +0000 (09:21 +0200)]
mgr/dashboard: Add i18n providers

Prepare the dashboard to support i18n

Add ngx-translate polyfill to extract translations from the typescript files.
Add a npm script to extract marked strings to a translation template.

Signed-off-by: Sebastian Krah <skrah@suse.com>
Signed-off-by: Tiago Melo <tmelo@suse.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>