]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agoMerge pull request #33690 from rhcs-dashboard/44237-remove-config-opt-read-from-syste...
Kefu Chai [Wed, 4 Mar 2020 12:54:42 +0000 (20:54 +0800)]
Merge pull request #33690 from rhcs-dashboard/44237-remove-config-opt-read-from-system-roles

mgr/dashboard: remove 'config-opt: read' perm. from system roles.

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge pull request #33699 from liewegas/fix-44078
Kefu Chai [Wed, 4 Mar 2020 12:52:06 +0000 (20:52 +0800)]
Merge pull request #33699 from liewegas/fix-44078

common/ceph_time: tolerate mono time going backwards

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #33701 from tchaikov/wip-mgr-orch-exception
Kefu Chai [Wed, 4 Mar 2020 12:47:44 +0000 (20:47 +0800)]
Merge pull request #33701 from tchaikov/wip-mgr-orch-exception

mgr/orch: try harder when pickle fails to marshal an exception

Reviewed-by: Joshua Schmid <jschmid@suse.de>
5 years agoMerge pull request #33682 from thinkercui/bugfix_monsession_map_lock
Kefu Chai [Wed, 4 Mar 2020 12:40:34 +0000 (20:40 +0800)]
Merge pull request #33682 from thinkercui/bugfix_monsession_map_lock

mon: Get session_map_lock before remove_session

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33703 from smithfarm/wip-doc-mon_status
Nathan Cutler [Wed, 4 Mar 2020 10:26:51 +0000 (11:26 +0100)]
Merge pull request #33703 from smithfarm/wip-doc-mon_status

doc: adjust for mon_status changes in octopus

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agomon: Get session_map_lock before remove_session 33682/head
Xiaofei Cui [Tue, 3 Mar 2020 07:58:02 +0000 (15:58 +0800)]
mon: Get session_map_lock before remove_session

Get session_map_lock to prevent race.

Fixes: https://tracker.ceph.com/issues/44407
Signed-off-by: Xiaofei Cui <cuixiaofei@sangfor.com.cn>
5 years agoMerge pull request #33482 from rosinL/wip-fix-unitest-seastar-socket
Kefu Chai [Wed, 4 Mar 2020 05:35:23 +0000 (13:35 +0800)]
Merge pull request #33482 from rosinL/wip-fix-unitest-seastar-socket

test/test_socket: fix dispatch_sockets() unexpected exception

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
5 years agoMerge pull request #33584 from liewegas/fix-39525
Kefu Chai [Wed, 4 Mar 2020 04:44:38 +0000 (12:44 +0800)]
Merge pull request #33584 from liewegas/fix-39525

compressor/lz4: work around bug in liblz4 versions <1.8.2

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #32444 from majianpeng/simple-debug-message
Kefu Chai [Wed, 4 Mar 2020 04:42:23 +0000 (12:42 +0800)]
Merge pull request #32444 from majianpeng/simple-debug-message

osd/PrimaryLogPG: simple debug message.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33659 from rzarzynski/wip-osd-ps-plco-via-setter
Kefu Chai [Wed, 4 Mar 2020 04:41:41 +0000 (12:41 +0800)]
Merge pull request #33659 from rzarzynski/wip-osd-ps-plco-via-setter

osd: peering updates peer_last_complete_ondisk via setter.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33660 from rzarzynski/wip-osd-clean-pgtrim-includes
Kefu Chai [Wed, 4 Mar 2020 04:41:20 +0000 (12:41 +0800)]
Merge pull request #33660 from rzarzynski/wip-osd-clean-pgtrim-includes

osd: drop unnecessary includes of messages/MOSDPGTrim.h.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33673 from cbodley/wip-denc-enum
Kefu Chai [Wed, 4 Mar 2020 04:40:48 +0000 (12:40 +0800)]
Merge pull request #33673 from cbodley/wip-denc-enum

denc: support enums wider than 8 bits

Reviewed-By: Adam Emersen <aemerson@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33689 from Songweibin/wip-fix-typos
Xie Xingguo [Wed, 4 Mar 2020 00:04:27 +0000 (08:04 +0800)]
Merge pull request #33689 from Songweibin/wip-fix-typos

doc/rbd: fix small typos

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge PR #33667 into master
Sage Weil [Tue, 3 Mar 2020 21:59:33 +0000 (15:59 -0600)]
Merge PR #33667 into master

* refs/pull/33667/head:
mgr/orch: show placement in 'orch ls'
mgr/orch: fix SPEC alignment in 'orch ls'
mgr/orch: include spec ref in ServiceDescription

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33669 into master
Sage Weil [Tue, 3 Mar 2020 21:59:22 +0000 (15:59 -0600)]
Merge PR #33669 into master

* refs/pull/33669/head:
mgr/cephadm: reduce log level for NodeAssignment
mgr/cephadm: make NodeAssignment return a simple host list

Reviewed-by: Joshua Schmid <jschmid@suse.de>
5 years agodoc: adjust for mon_status changes in octopus 33703/head
Nathan Cutler [Tue, 3 Mar 2020 17:28:19 +0000 (18:28 +0100)]
doc: adjust for mon_status changes in octopus

In octopus, we no longer have "ceph mon_status", but we do have
"ceph tell mon.<id> mon_status", so reflect this in the docs.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge PR #33678 into master
Sage Weil [Tue, 3 Mar 2020 21:43:33 +0000 (15:43 -0600)]
Merge PR #33678 into master

* refs/pull/33678/head:
mgr/cephadm: fix upgrade when daemon is stopped

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33671 into master
Sage Weil [Tue, 3 Mar 2020 21:31:43 +0000 (15:31 -0600)]
Merge PR #33671 into master

* refs/pull/33671/head:
mgr/cephadm: refresh configs when dependencies change
mgr/cephadm: track last config time and dependencies

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33695 into master
Sage Weil [Tue, 3 Mar 2020 20:58:49 +0000 (14:58 -0600)]
Merge PR #33695 into master

* refs/pull/33695/head:
mgr/orch: add apply alertmanager to CLI
mgr/orch: add apply grafana to CLI

Reviewed-by: Patrick Seidensal <pseidensal@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33672 into master
Sage Weil [Tue, 3 Mar 2020 20:58:20 +0000 (14:58 -0600)]
Merge PR #33672 into master

* refs/pull/33672/head:
Refactor, prepare for other adoptions

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoqa/tasks/test_orchestrator_cli: enable test_osd_create exception check 33701/head
Kefu Chai [Tue, 3 Mar 2020 16:24:08 +0000 (00:24 +0800)]
qa/tasks/test_orchestrator_cli: enable test_osd_create exception check

this reverts 9639acfefe09c87adc821bb5c5cc41974685331d, as the test does
make sense. what fails this test is the machinary to marshal/unmarshal
exception fails to handle un-picklable exceptions. the previous commit
is supposed to use a fallback to handle them.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agomgr/orch: try harder when pickle fails to marshal an exception
Kefu Chai [Tue, 3 Mar 2020 16:18:35 +0000 (00:18 +0800)]
mgr/orch: try harder when pickle fails to marshal an exception

pickle cannot marshal instances of class not defined in the top level of
a module. for instance, `DriveGroupValidationError` is defined in a
submodule of `ceph` python module, that's why we cannot capture it.

this prevent the `ceph` command line from getting a proper error when
the command fails if the command is implemented using cross python
module call(s).

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #33664 into master
Patrick Donnelly [Tue, 3 Mar 2020 17:44:22 +0000 (09:44 -0800)]
Merge PR #33664 into master

* refs/pull/33664/head:
doc: change case from `apis` to `APIs`

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33655 from p-se/pse-fix-prom-alert-pool-full
Lenz Grimmer [Tue, 3 Mar 2020 16:23:31 +0000 (16:23 +0000)]
Merge pull request #33655 from p-se/pse-fix-prom-alert-pool-full

monitoring: restore lost fix for `pool full` alert

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge PR #33636 into master
Patrick Donnelly [Tue, 3 Mar 2020 16:17:43 +0000 (08:17 -0800)]
Merge PR #33636 into master

* refs/pull/33636/head:
qa: add upgrade test for volume upgrade from legacy

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agocommon/ceph_time: tolerate mono time going backwards 33699/head
Sage Weil [Tue, 3 Mar 2020 16:09:06 +0000 (10:09 -0600)]
common/ceph_time: tolerate mono time going backwards

Some kernels (and possibly some hardware?) can trigger a monotonic clock
that goes back in time.  That, in turn, can lead to a negative monotonic
time span.  This would trigger an assert.

This this problem seems to be widespread, tolerate the case and interpret
it as a 0-length interval (vs something negative).

Fixes: https://tracker.ceph.com/issues/44078
Fixes: https://tracker.ceph.com/issues/43365
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #33694 into master
Sage Weil [Tue, 3 Mar 2020 15:07:19 +0000 (09:07 -0600)]
Merge PR #33694 into master

* refs/pull/33694/head:
cephadm: fix `alertmanager not implemented yet`

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #33679 into master
Sage Weil [Tue, 3 Mar 2020 15:05:12 +0000 (09:05 -0600)]
Merge PR #33679 into master

* refs/pull/33679/head:
cephadm: fix failure when getting keyring for deploying daemons

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agomgr/orch: add apply alertmanager to CLI 33695/head
Sage Weil [Tue, 3 Mar 2020 13:34:14 +0000 (07:34 -0600)]
mgr/orch: add apply alertmanager to CLI

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/orch: add apply grafana to CLI
Sage Weil [Tue, 3 Mar 2020 13:26:02 +0000 (07:26 -0600)]
mgr/orch: add apply grafana to CLI

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: refresh configs when dependencies change 33671/head
Sage Weil [Mon, 2 Mar 2020 20:21:20 +0000 (14:21 -0600)]
mgr/cephadm: refresh configs when dependencies change

If a daemon config (e.g., prometheus) depends on other daemons'
existence, refresh the config if that list changes (e.g., new
node-exporter, mgr removed, etc.).

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33588 from dillaman/wip-rbd-snapshot-mirror
Mykola Golub [Tue, 3 Mar 2020 13:19:55 +0000 (15:19 +0200)]
Merge pull request #33588 from dillaman/wip-rbd-snapshot-mirror

rbd-mirror: initial end-to-end test and associated bug fixes

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agomgr/orch: show placement in 'orch ls' 33667/head
Sage Weil [Mon, 2 Mar 2020 15:01:05 +0000 (09:01 -0600)]
mgr/orch: show placement in 'orch ls'

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: fix upgrade when daemon is stopped 33678/head
Sage Weil [Tue, 3 Mar 2020 02:05:38 +0000 (20:05 -0600)]
mgr/cephadm: fix upgrade when daemon is stopped

Tried to fix this in 5649d5571c14 but didn't remove the early image_id
check.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: fix `alertmanager not implemented yet` 33694/head
Patrick Seidensal [Mon, 2 Mar 2020 15:49:43 +0000 (16:49 +0100)]
cephadm: fix `alertmanager not implemented yet`

```
Traceback (most recent call last):
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 391, in do_work
    res = self._on_complete_(*args, **kwargs)
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 455, in call_self
    return f(self, *inner_args)
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 2576, in _create_alertmanager
    custom_config=self._generate_alertmanager_config)
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 2051, in _create_daemon
    stdin=json.dumps(cephadm_config))
  File "/home/user/src/ceph/src/pybind/mgr/cephadm/module.py", line 1459, in _run_cephadm
    code, '\n'.join(err)))
RuntimeError: cephadm exited with an error code: 1, stderr:ERROR: alertmanager not implemented yet
```

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
5 years agomgr/dashboard: remove 'config-opt: read' perm. from system roles. 33690/head
Alfonso Martínez [Tue, 3 Mar 2020 11:34:11 +0000 (12:34 +0100)]
mgr/dashboard: remove 'config-opt: read' perm. from system roles.

Fixes: https://tracker.ceph.com/issues/44237
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
5 years agodoc/rbd: fix small typos 33689/head
songweibin [Tue, 3 Mar 2020 11:30:27 +0000 (19:30 +0800)]
doc/rbd: fix small typos

Signed-off-by: songweibin <song.weibin@zte.com.cn>
5 years agoMerge pull request #33120 from vshankar/wip-mgr-volumes-clone-sync-attrs
Ramana Raja [Tue, 3 Mar 2020 10:43:34 +0000 (16:13 +0530)]
Merge pull request #33120 from vshankar/wip-mgr-volumes-clone-sync-attrs

mgr/volumes: sync inode attributes for cloned subvolumes

Reviewed-by: Ramana Raja <rraja@redhat.com>
5 years agoMerge pull request #32423 from bk201/wip-43420
Lenz Grimmer [Tue, 3 Mar 2020 09:30:16 +0000 (09:30 +0000)]
Merge pull request #32423 from bk201/wip-43420

mgr/dashboard: allow refreshing inventory page

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agodoc: change case from `apis` to `APIs` 33664/head
Deepika Upadhyay [Mon, 2 Mar 2020 14:04:56 +0000 (19:34 +0530)]
doc: change case from `apis` to `APIs`

use APIs instead of apis to be consistent throughout.

fixes: https://tracker.ceph.com/issues/44374
Signed-off-by: Deepika Upadhyay <dupadhya@redhat.com>
5 years agoMerge pull request #33680 from tchaikov/wip-crimson-cleanups
Kefu Chai [Tue, 3 Mar 2020 08:23:23 +0000 (16:23 +0800)]
Merge pull request #33680 from tchaikov/wip-crimson-cleanups

crimson: clang related cleanups

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
5 years agoMerge pull request #31910 from rosinL/wip-fix-dpdk-test
Kefu Chai [Tue, 3 Mar 2020 06:34:22 +0000 (14:34 +0800)]
Merge pull request #31910 from rosinL/wip-fix-dpdk-test

test/msgr: fix ComplexTest fail when using DPDK protocal stack

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33661 from bk203/patch-1
Kefu Chai [Tue, 3 Mar 2020 05:52:41 +0000 (13:52 +0800)]
Merge pull request #33661 from bk203/patch-1

doc: update Zabbix template reference

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoqa: add upgrade test for volume upgrade from legacy 33636/head
Patrick Donnelly [Tue, 17 Dec 2019 23:10:34 +0000 (15:10 -0800)]
qa: add upgrade test for volume upgrade from legacy

This tests that volumes created using the ceph_volume_client.py library
continue to be accessible/function via the Nautilus/Octopus ceph-mgr
volumes plugin.

Fixes: https://tracker.ceph.com/issues/42723
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agocmake: build used source 33680/head
Kefu Chai [Tue, 3 Mar 2020 03:46:03 +0000 (11:46 +0800)]
cmake: build used source

to address the link failures when compiling using clang

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson: do not capture unused variable
Kefu Chai [Tue, 3 Mar 2020 03:10:00 +0000 (11:10 +0800)]
crimson: do not capture unused variable

this silences the warning of:
```
../src/crimson/osd/osdmap_gate.cc:48:38: warning: lambda capture 'this' is not used [-Wunused-lambda-capture]
  std::for_each(first, last, [epoch, this](auto& blocked_requests) {
                                   ~~^~~~
```

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocephadm: fix failure when getting keyring for deploying daemons 33679/head
Kiefer Chang [Tue, 3 Mar 2020 03:28:53 +0000 (11:28 +0800)]
cephadm: fix failure when getting keyring for deploying daemons

Fixes: https://tracker.ceph.com/issues/44390
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
5 years agodoc: update Zabbix template reference 33661/head
bk203 [Mon, 2 Mar 2020 13:19:56 +0000 (14:19 +0100)]
doc: update Zabbix template reference

The old link references a 2017 version of the template, I experienced problems using this version of the template with the latest version of Ceph. Ceph would report "Failed to send data to Zabbix", by importing the newer 2019 version of the template within Zabbix Ceph could again send data (due to changed Zabbix Trapper item keys). Propose to replace the link for a link referencing the master branch of the template so the newest version is always referenced in the docs.

Signed-off-by: Mathijs Smit <m.smit@goldenvalue.nl>
5 years agoMerge pull request #33621 from aclamk/fix_mempool_btree
Kefu Chai [Tue, 3 Mar 2020 02:09:49 +0000 (10:09 +0800)]
Merge pull request #33621 from aclamk/fix_mempool_btree

test/test_mempool: test accounting for btree_map

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #33363 into master
Patrick Donnelly [Tue, 3 Mar 2020 01:01:48 +0000 (17:01 -0800)]
Merge PR #33363 into master

* refs/pull/33363/head:
mds: add perf counters for openfiletable

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #33491 into master
Patrick Donnelly [Tue, 3 Mar 2020 00:59:51 +0000 (16:59 -0800)]
Merge PR #33491 into master

* refs/pull/33491/head:
mount.ceph: add "fs=<fs_name>" mount options support

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #33506 into master
Patrick Donnelly [Tue, 3 Mar 2020 00:58:02 +0000 (16:58 -0800)]
Merge PR #33506 into master

* refs/pull/33506/head:
client: add client_fs mount option support

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #33538 into master
Patrick Donnelly [Tue, 3 Mar 2020 00:55:09 +0000 (16:55 -0800)]
Merge PR #33538 into master

* refs/pull/33538/head:
mds: just delete MDSIOContextBase during shutdown
mds: add comment explaining unusual locking for MDSIOContextBase

Reviewed-by: Zheng Yan <zyan@redhat.com>
5 years agomgr/orch: fix SPEC alignment in 'orch ls'
Sage Weil [Mon, 2 Mar 2020 14:03:00 +0000 (08:03 -0600)]
mgr/orch: fix SPEC alignment in 'orch ls'

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/orch: include spec ref in ServiceDescription
Sage Weil [Mon, 2 Mar 2020 15:00:11 +0000 (09:00 -0600)]
mgr/orch: include spec ref in ServiceDescription

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodenc: add denc_traits for enum class 33673/head
Casey Bodley [Mon, 2 Mar 2020 20:20:16 +0000 (15:20 -0500)]
denc: add denc_traits for enum class

enum traits cast to/from underlying type, and use the underlying type's
traits for encode/decode

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agodenc: remove conditional underlying_type_t from ceph_le* traits
Casey Bodley [Mon, 2 Mar 2020 20:23:48 +0000 (15:23 -0500)]
denc: remove conditional underlying_type_t from ceph_le* traits

an enum's underlying type must be integral, so it's not possible for
ceph_le<T> to match for enums. for example, this:

  enum class enum_class_16 : ceph_le16 {};

fails to compile with:
underlying type ‘ceph_le16’ {aka ‘ceph_le<short unsigned int>’} of
‘enum_class_16’ must be an integral type

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agoRefactor, prepare for other adoptions 33672/head
Eric Jackson [Mon, 2 Mar 2020 16:45:20 +0000 (11:45 -0500)]
Refactor, prepare for other adoptions

Move the prometheus adopt out of command_adopt. refactor skip pull,
legacy check and fsid lock.

Signed-off-by: Eric Jackson <swiftgist@gmail.com>
5 years agotest: add failing denc tests for enums
Casey Bodley [Mon, 2 Mar 2020 20:15:38 +0000 (15:15 -0500)]
test: add failing denc tests for enums

all but the 8-bit enums fail to compile because they don't match the
traits specialization for underlying_type

Signed-off-by: Casey Bodley <cbodley@redhat.com>
5 years agorbd-mirror: move resetting of snapshot replayer rescan variable 33588/head
Jason Dillaman [Mon, 2 Mar 2020 20:34:22 +0000 (15:34 -0500)]
rbd-mirror: move resetting of snapshot replayer rescan variable

The `m_image_updated` boolean should be reset at the start of the
state checking loop now that we scan the local image meta and check
for forced-promotion of the local image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge PR #33601 into master
Sage Weil [Mon, 2 Mar 2020 20:27:58 +0000 (14:27 -0600)]
Merge PR #33601 into master

* refs/pull/33601/head:
qa/tasks/thrashosds-health: disable osd_max_markdown behavior
osd: derr on do_shutdown cases

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agomgr/cephadm: reduce log level for NodeAssignment 33669/head
Sage Weil [Mon, 2 Mar 2020 20:23:39 +0000 (14:23 -0600)]
mgr/cephadm: reduce log level for NodeAssignment

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: make NodeAssignment return a simple host list
Sage Weil [Mon, 2 Mar 2020 16:43:42 +0000 (10:43 -0600)]
mgr/cephadm: make NodeAssignment return a simple host list

We shouldn't modify the PlacementSpec in place (or at all).  Instead,
simply return a list of the hosts where we want to locate daemons.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: track last config time and dependencies
Sage Weil [Mon, 2 Mar 2020 20:00:24 +0000 (14:00 -0600)]
mgr/cephadm: track last config time and dependencies

Every time we deploy or reconfig a service, record the dependencies
and service dependency list.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #33647 into master
Sage Weil [Mon, 2 Mar 2020 20:14:52 +0000 (14:14 -0600)]
Merge PR #33647 into master

* refs/pull/33647/head:
vstart.sh: fix install of cephadm ssh keys from ~/.ssh

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33648 into master
Sage Weil [Mon, 2 Mar 2020 20:14:40 +0000 (14:14 -0600)]
Merge PR #33648 into master

* refs/pull/33648/head:
qa/suites/cephadm: move orchestrator_cli test into rados/cephadm

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #33658 into master
Sage Weil [Mon, 2 Mar 2020 20:14:28 +0000 (14:14 -0600)]
Merge PR #33658 into master

* refs/pull/33658/head:
cephadm: remove remaining crash_keyring cruft
vstart.sh: deploy crash containers
cephadm: bootstrap: deploy crash on every host
mgr/cephadm: deploy crash daemons
mgr/orch: add crash hooks
cephadm: do not magically deploy 'crash' container

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agocephadm: remove remaining crash_keyring cruft 33658/head
Sage Weil [Mon, 2 Mar 2020 19:23:56 +0000 (13:23 -0600)]
cephadm: remove remaining crash_keyring cruft

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocompressor/lz4: rebuild if buffer is not contiguous 33584/head
Sage Weil [Thu, 27 Feb 2020 15:30:27 +0000 (09:30 -0600)]
compressor/lz4: rebuild if buffer is not contiguous

In older versions of lz4 (specifically < 1.8.2) bit errors
can be introduced when compressing from fragmented memory.  The lz4
bug was fixed by this lz4 commit:

commit af127334670a5e7b710bbd6adb71aa7c3ef0cd72
Author: Yann Collet <cyan@fb.com>
Date:   Sat May 5 18:24:11 2018 -0700

    fixed frametest error

    The error can be reproduced using following command :
    ./frametest -v -i100000000 -s1659 -t31096808

    It's actually a bug in the stream LZ4 API,
    when starting a new stream
    and providing a first chunk to complete with size < MINMATCH.
    In which case, the chunk becomes a dictionary.
    No hash was generated and stored,
    but the chunk is accessible as default position 0 points to dictStart,
    and position 0 is still within MAX_DISTANCE.
    Then, next attempt to read 32-bits from position 0 fails.

    The issue would have been mitigated by starting from index 64 KB,
    effectively eliminating position 0 as too far away.

    The proper fix is to eliminate such "dictionary" as too small.
    Which is what this patch does.

This is a workaround to rebuild our input buffer into a continguos buffer
if it is not already contiguous.

Fixes: https://tracker.ceph.com/issues/39525
Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/objectstore: test all bluestore compression algorithms
Sage Weil [Thu, 27 Feb 2020 15:55:22 +0000 (09:55 -0600)]
qa/objectstore: test all bluestore compression algorithms

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotest/compressor: test round trip of an osdmap
Dan van der Ster [Wed, 26 Feb 2020 20:50:07 +0000 (21:50 +0100)]
test/compressor: test round trip of an osdmap

Check if the compressors can compress/decompress a bufferlist which is not word
aligned, such as a freshly-encoded osdmap.

Related-to: https://tracker.ceph.com/issues/39525
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
5 years agoMerge PR #33633 into master
Sage Weil [Mon, 2 Mar 2020 18:04:29 +0000 (12:04 -0600)]
Merge PR #33633 into master

* refs/pull/33633/head:
msg: add get_{pid,random}_nonce() helpers
msg/Policy: make stateless_server default to anon (again)
osd: drop broken 'poison pill'

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #33642 from trociny/wip-run-rbd-tests-pool-init
Jason Dillaman [Mon, 2 Mar 2020 17:17:09 +0000 (12:17 -0500)]
Merge pull request #33642 from trociny/wip-run-rbd-tests-pool-init

test/run-rbd-tests: properly initialize newly created rbd pool

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoqa/suites/cephadm: move orchestrator_cli test into rados/cephadm 33648/head
Sage Weil [Sun, 1 Mar 2020 22:50:28 +0000 (16:50 -0600)]
qa/suites/cephadm: move orchestrator_cli test into rados/cephadm

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agovstart.sh: deploy crash containers
Sage Weil [Mon, 2 Mar 2020 16:30:48 +0000 (10:30 -0600)]
vstart.sh: deploy crash containers

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: bootstrap: deploy crash on every host
Sage Weil [Sun, 1 Mar 2020 18:11:41 +0000 (12:11 -0600)]
cephadm: bootstrap: deploy crash on every host

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: deploy crash daemons
Sage Weil [Sun, 1 Mar 2020 17:38:51 +0000 (11:38 -0600)]
mgr/cephadm: deploy crash daemons

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/orch: add crash hooks
Sage Weil [Sun, 1 Mar 2020 17:38:42 +0000 (11:38 -0600)]
mgr/orch: add crash hooks

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: do not magically deploy 'crash' container
Sage Weil [Sat, 29 Feb 2020 16:50:42 +0000 (10:50 -0600)]
cephadm: do not magically deploy 'crash' container

We'll soon do this explicitly with a persistent spec instead.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #33523 into master
Sage Weil [Mon, 2 Mar 2020 16:30:03 +0000 (10:30 -0600)]
Merge PR #33523 into master

* refs/pull/33523/head:
mgr/orch: ServiceSpec: drop 'count'
mgr/rook: use spec.placement.count (instead of spec.count)
mgr/cephadm: make HostAssignment make sense
mgr/orch: PlacementSpec: do not combine all_hosts with anything else
mgr/orch: use PlacementSpec.from_strings() for all CLI commands

Reviewed-by: Joshua Schmid <jschmid@suse.de>
5 years agolibrbd: clean-up special casing for enabling mirroring on creating image
Jason Dillaman [Mon, 2 Mar 2020 13:36:23 +0000 (08:36 -0500)]
librbd: clean-up special casing for enabling mirroring on creating image

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoqa: test cases for snapshot-based mirroring
Jason Dillaman [Thu, 27 Feb 2020 03:25:54 +0000 (22:25 -0500)]
qa: test cases for snapshot-based mirroring

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agorbd-mirror: simple snapshot split-brain detection
Jason Dillaman [Thu, 27 Feb 2020 20:58:59 +0000 (15:58 -0500)]
rbd-mirror: simple snapshot split-brain detection

If the local image has a primary demotion and the remote does not
have a matching non-primary demotion snapshot, we should throw a
split-brain error.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: refresh image after creating primary mirror snapshot
Jason Dillaman [Thu, 27 Feb 2020 19:52:06 +0000 (14:52 -0500)]
librbd: refresh image after creating primary mirror snapshot

If RPC was used to create the snapshot, the local image context will
not yet have the snapshot id and will therefore return CEPH_NOSNAP.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: acquire exclusive lock from peer when removing
Jason Dillaman [Thu, 27 Feb 2020 19:50:59 +0000 (14:50 -0500)]
librbd: acquire exclusive lock from peer when removing

This solves an issue with snapshot-based mirroring when the
rbd-mirror daemon is the exclusive lock owner. For other cases,
it still checks for watchers before proceeding.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: fixed issue with deep-copy incorrectly setting parent spec
Jason Dillaman [Thu, 27 Feb 2020 19:49:11 +0000 (14:49 -0500)]
librbd: fixed issue with deep-copy incorrectly setting parent spec

When not syncing the full image, the destination image would receive
the incorrect source parent spec instead of the expected destination
parent spec.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agorbd: do not show mirroring mode if not enabled
Jason Dillaman [Thu, 27 Feb 2020 17:44:48 +0000 (12:44 -0500)]
rbd: do not show mirroring mode if not enabled

The 'info' action was incorrectly showing the mirroring mode
when mirroring was not enabled.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: allow force promotions to create necessary orphan snapshot
Jason Dillaman [Thu, 27 Feb 2020 15:44:21 +0000 (10:44 -0500)]
librbd: allow force promotions to create necessary orphan snapshot

The rbd-mirror daemon needs to accept the RPC request to create an
orphan snapshot so that it knows to shut-down the replayer.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: forced promotion of snapshot mirrored image needs to create orphan
Jason Dillaman [Thu, 27 Feb 2020 13:53:37 +0000 (08:53 -0500)]
librbd: forced promotion of snapshot mirrored image needs to create orphan

Tweak the state machine to create an orphan record if the current
state is not demoted.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agorbd-mirror: properly handle promoted/demoted snapshot-based images
Jason Dillaman [Thu, 27 Feb 2020 13:50:18 +0000 (08:50 -0500)]
rbd-mirror: properly handle promoted/demoted snapshot-based images

We should return -EREMOTEIO if we don't have any primary images to sync to
since we want display a warning. Additionally, don't attempt to sync a
remote snapshot against a primary (demoted) local snapshot since it would
have an invalid primary snapshot id.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agolibrbd: improve debug logging on primary mirror snapshot creation
Jason Dillaman [Thu, 27 Feb 2020 04:30:08 +0000 (23:30 -0500)]
librbd: improve debug logging on primary mirror snapshot creation

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agocls/rbd: fixed typo in mirror image state ostream operator
Jason Dillaman [Thu, 27 Feb 2020 04:29:12 +0000 (23:29 -0500)]
cls/rbd: fixed typo in mirror image state ostream operator

The non-primary demoted state was incorrectly outputting demoted
twice.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agorbd-mirror: do not re-register the ASOK if the image replayer isn't running
Jason Dillaman [Thu, 27 Feb 2020 03:25:03 +0000 (22:25 -0500)]
rbd-mirror: do not re-register the ASOK if the image replayer isn't running

Avoid the possibility of a race when shutting down and post-unregister a status
update causes the ASOK to become re-registered.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #32660 from cbodley/wip-rgw-admin-zone-shards
Casey Bodley [Mon, 2 Mar 2020 14:38:04 +0000 (09:38 -0500)]
Merge pull request #32660 from cbodley/wip-rgw-admin-zone-shards

rgw: Increase the default number of RGW bucket shards

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
5 years agoMerge pull request #33628 from cbodley/wip-44353
Casey Bodley [Mon, 2 Mar 2020 14:12:34 +0000 (09:12 -0500)]
Merge pull request #33628 from cbodley/wip-44353

rgw: fix sharded bucket listing with prefix/delimiter

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
5 years agoMerge pull request #31922 from rhcs-dashboard/42094-bucket-mfa-delete
Lenz Grimmer [Mon, 2 Mar 2020 13:55:52 +0000 (13:55 +0000)]
Merge pull request #31922 from rhcs-dashboard/42094-bucket-mfa-delete

mgr/dashboard: enable/disable MFA Delete on RGW bucket

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #33178 from rhcs-dashboard/42475-rgw-api-keys-allowed
Lenz Grimmer [Mon, 2 Mar 2020 13:54:31 +0000 (13:54 +0000)]
Merge pull request #33178 from rhcs-dashboard/42475-rgw-api-keys-allowed

mgr/dashboard: do not show RGW API keys if only read-only privileges

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
5 years agoosd: drop unnecessary includes of messages/MOSDPGTrim.h. 33660/head
Radoslaw Zarzynski [Mon, 2 Mar 2020 12:05:43 +0000 (13:05 +0100)]
osd: drop unnecessary includes of messages/MOSDPGTrim.h.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoosd: peering updates peer_last_complete_ondisk via setter. 33659/head
Radoslaw Zarzynski [Mon, 2 Mar 2020 11:47:26 +0000 (12:47 +0100)]
osd: peering updates peer_last_complete_ondisk via setter.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agotest/test_socket: fix dispatch_sockets() unexpected exception 33482/head
luo rixin [Sat, 22 Feb 2020 09:57:46 +0000 (17:57 +0800)]
test/test_socket: fix dispatch_sockets() unexpected exception

In the test test_unexpected_down(), there is client running on CPU0
and server runing on CPU1, the server maybe finished before the client
(client and other workloads share CPU0), so client couldn't read data
and throws "dispatch_sockets(): cb_client() got unexpected exception
std::system_error (error crimson::net:4, read eof)"

Signed-off-by: luo rixin <luorixin@huawei.com>