]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agoqa/tasks/ceph_deploy: get rid of cStringIO for py3 33709/head
Kyr Shatskyy [Fri, 21 Feb 2020 18:18:43 +0000 (19:18 +0100)]
qa/tasks/ceph_deploy: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/manypools: get rid of itervalues for py3 compat
Kyr Shatskyy [Sat, 15 Feb 2020 10:07:22 +0000 (11:07 +0100)]
qa/tasks/manypools: get rid of itervalues for py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/vstart_runner: use io.BytesIO for py3 compat
Kyr Shatskyy [Mon, 2 Mar 2020 14:43:41 +0000 (15:43 +0100)]
qa/tasks/vstart_runner: use io.BytesIO for py3 compat

Use io.BytesIO instead of StringIO for py3 compatibility.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/ceph_manager: ensure str for py3 compat
Kyr Shatskyy [Tue, 25 Feb 2020 15:45:00 +0000 (16:45 +0100)]
qa/tasks/ceph_manager: ensure str for py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/ceph_objectstore_tool: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 21:46:31 +0000 (22:46 +0100)]
qa/tasks/ceph_objectstore_tool: get rid of cStringIO for py3

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/divergent_priors2: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 21:28:56 +0000 (22:28 +0100)]
qa/tasks/divergent_priors2: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/radosbenchsweep: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 21:23:11 +0000 (22:23 +0100)]
qa/tasks/radosbenchsweep: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/reg11184: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 21:17:09 +0000 (22:17 +0100)]
qa/tasks/reg11184: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 20:36:48 +0000 (21:36 +0100)]
qa/tasks: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 20:29:30 +0000 (21:29 +0100)]
qa/tasks: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/netem: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 20:19:08 +0000 (21:19 +0100)]
qa/tasks/netem: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/scrub_test: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 20:10:59 +0000 (21:10 +0100)]
qa/tasks/scrub_test: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/systemd: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 19:59:47 +0000 (20:59 +0100)]
qa/tasks/systemd: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/admin_socket: get rid of cStringIO for py3
Kyr Shatskyy [Fri, 21 Feb 2020 18:35:15 +0000 (19:35 +0100)]
qa/tasks/admin_socket: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/cephadm: get rid of cStringIO for py3
Kyr Shatskyy [Sat, 15 Feb 2020 11:12:27 +0000 (12:12 +0100)]
qa/tasks/cephadm: get rid of cStringIO for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/omapbench: get rid of itervalues for py3
Kyr Shatskyy [Sat, 15 Feb 2020 10:21:15 +0000 (11:21 +0100)]
qa/tasks/omapbench: get rid of itervalues for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/mgr: get rid of itervalues for py3
Kyr Shatskyy [Sat, 15 Feb 2020 10:16:26 +0000 (11:16 +0100)]
qa/tasks/mgr: get rid of itervalues for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/watch_notify_stress: get rid of itervalues for py3
Kyr Shatskyy [Sat, 15 Feb 2020 10:14:31 +0000 (11:14 +0100)]
qa/tasks/watch_notify_stress: get rid of itervalues for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/osd_max_pg_per_osd: get rid of itervalues for py3
Kyr Shatskyy [Sat, 15 Feb 2020 10:13:22 +0000 (11:13 +0100)]
qa/tasks/osd_max_pg_per_osd: get rid of itervalues for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/radosbench.py: get rid of itervalues for py3 compat
Kyr Shatskyy [Sat, 15 Feb 2020 10:07:50 +0000 (11:07 +0100)]
qa/tasks/radosbench.py: get rid of itervalues for py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/rados: get rid of itervalues for py3
Kyr Shatskyy [Sat, 15 Feb 2020 02:36:08 +0000 (03:36 +0100)]
qa/tasks/rados: get rid of itervalues for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/daemonwatchdog: py3 compat
Kyr Shatskyy [Tue, 17 Dec 2019 01:26:12 +0000 (02:26 +0100)]
qa/tasks/daemonwatchdog: py3 compat

Address error:
        RuntimeError: dictionary changed size during iteration

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/workunit: py3 compat
Kyr Shatskyy [Tue, 17 Dec 2019 00:46:26 +0000 (01:46 +0100)]
qa/tasks/workunit: py3 compat

Use six.ensure_str for `get_file()` output in order to
make code py3 compatible

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks: fix import module path for py3 compat
Kyr Shatskyy [Mon, 16 Dec 2019 10:35:08 +0000 (11:35 +0100)]
qa/tasks: fix import module path for py3 compat

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/thrashosds: fix imports for py3
Kyr Shatskyy [Mon, 16 Dec 2019 00:47:28 +0000 (01:47 +0100)]
qa/tasks/thrashosds: fix imports for py3

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/ceph: py3 compatibility
Kyr Shatskyy [Sat, 14 Dec 2019 00:54:14 +0000 (01:54 +0100)]
qa/tasks/ceph: py3 compatibility

Addresses:
  TypeError: 'dict_values' object is not subscriptable

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks: fix imports for py3 compatibility
Kyr Shatskyy [Sat, 14 Dec 2019 00:16:34 +0000 (01:16 +0100)]
qa/tasks: fix imports for py3 compatibility

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/ceph_manager: get rid of CStringIO for py3
Kyr Shatskyy [Fri, 13 Dec 2019 23:32:07 +0000 (00:32 +0100)]
qa/tasks/ceph_manager: get rid of CStringIO for py3

Use io.BytesIO instead cStringIO.StringIO for py3 compatibility

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
5 years agoqa/tasks/ceph: get rid of cStringIO for py3 compat
Kyr Shatskyy [Tue, 26 Nov 2019 12:21:15 +0000 (13:21 +0100)]
qa/tasks/ceph: get rid of cStringIO for py3 compat

Use io.BytesIO instead of cStringIO.StringIO
Use six.ensure_str whenever it needs to convert binary to str.

Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.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 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 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 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 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>