]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Adam Kupczyk [Mon, 2 Mar 2020 08:08:45 +0000 (09:08 +0100)]
common/mempool: Add test for mempool in btree_map
Signed-off-by: Adam Kupczyk <akupczyk@redhat.com>
Kefu Chai [Mon, 2 Mar 2020 11:16:09 +0000 (19:16 +0800)]
Merge pull request #33638 from tchaikov/wip-btree
include/cpp-btree: use the same type when allocate/deallocate
Reviewed-by: Adam Kupczyk <akupczyk@redhat.com>
Kefu Chai [Mon, 2 Mar 2020 11:11:42 +0000 (19:11 +0800)]
Merge pull request #33645 from liewegas/fix-mon-down-cephtool-test
qa/suites/rados/singleton-bluestore/cephtool: whitelist MON_DOWN
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 2 Mar 2020 11:10:29 +0000 (19:10 +0800)]
Merge pull request #33536 from yuvalif/sync_object_write_with_return_value_op
librados: allow passing flags to operate sync APIs
Reviewed-By: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Kefu Chai [Mon, 2 Mar 2020 11:01:29 +0000 (19:01 +0800)]
Merge pull request #33583 from rzarzynski/wip-recovery-cleanup1
osd: tiny clean-ups around the backfill
Reviewed-by: David Zafman <dzafman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 2 Mar 2020 10:58:19 +0000 (18:58 +0800)]
Merge pull request #33593 from dzafman/wip-cot-fix
test: Fix failing ceph_objectstore_tool.py test
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Patrick Seidensal [Mon, 2 Mar 2020 10:43:03 +0000 (11:43 +0100)]
monitoring: restore lost `pool full` alert
Fixes: https://tracker.ceph.com/issues/44366
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
Kefu Chai [Mon, 2 Mar 2020 10:25:21 +0000 (18:25 +0800)]
Merge pull request #33373 from rzarzynski/wip-bl-bumpup_api_verion
common, include: bump the version of ceph::buffer's C++ API.
Reviewed-by: Kefu Chai <kchai@redhat.com>
Lenz Grimmer [Mon, 2 Mar 2020 10:24:30 +0000 (10:24 +0000)]
Merge pull request #33572 from p-se/wip-pse-grafana-unit-issue
mgr/dashboard: fix stray requests/error in Grafana unit test
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Kefu Chai [Mon, 2 Mar 2020 10:15:24 +0000 (18:15 +0800)]
Merge pull request #31041 from liu-chunmei/ceph_seastar_alien_blue_store
crimson:: add alien blue store
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 2 Mar 2020 09:36:10 +0000 (17:36 +0800)]
Merge pull request #33595 from cyx1231st/wip-crimson-osd-fixes
crimson/osd: misc fixes for OSD reboot-ability
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 2 Mar 2020 09:30:34 +0000 (17:30 +0800)]
Merge pull request #33597 from optimistyzy/228_improve_sync_read
NVMEDevice: Remove the unnecessary aio_wait in sync read
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Sat, 29 Feb 2020 06:51:28 +0000 (14:51 +0800)]
include/cpp-btree: use the same type when allocate/deallocate
btree_set<> by default uses `std::allocator<Key>`, and btree_map by
default uses `std::allocator<std::pair<Key, Value>>`.
before this change, btree uses the allocator directly for allocating n
elements where element is `Key` or `std::pair<Key, Value>` respectively,
while "n" is actually supposed to be the number of bytes used by each
node which is being allocated.
but, what we need to allocate is actually a "node_type" for holding
multiple slots, and each slot holds an element. in addition to the
slots, a node also keeps track of metadata for btree itself. in short,
what we allocate now is (in bytes):
alignof(sizeof(node_type)) * sizeof(element)
but what we should allocate is (in bytes):
alignof(sizeof(node_type))
in this change:
* always rebind the allocator to the correct aligned type with given
alignment
* extract the allocator related helpers into a template class
Signed-off-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Mon, 2 Mar 2020 05:26:00 +0000 (13:26 +0800)]
Merge pull request #33650 from joscollin/wip-unused-nvme
test: silence warning unused variable nvme
Reviewed-by: Kefu Chai <kchai@redhat.com>
Jos Collin [Mon, 2 Mar 2020 03:34:39 +0000 (09:04 +0530)]
test: silence warning unused variable nvme
Signed-off-by: Jos Collin <jcollin@redhat.com>
Sage Weil [Mon, 2 Mar 2020 01:53:35 +0000 (19:53 -0600)]
Merge PR #33512 into master
* refs/pull/33512/head:
os/bluestore/BlueFS: less verbose about alloc adjustments
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Sage Weil [Mon, 2 Mar 2020 01:53:25 +0000 (19:53 -0600)]
Merge PR #33575 into master
* refs/pull/33575/head:
mgr/telemetry: fix and document proxy usage
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
Sage Weil [Sun, 1 Mar 2020 23:15:29 +0000 (17:15 -0600)]
Merge PR #33644 into master
* refs/pull/33644/head:
qa/suites/rados/verity/tasks/mon_recovery: whitelist SLOW_OPS
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Sun, 1 Mar 2020 22:55:06 +0000 (16:55 -0600)]
Merge PR #33541 into master
* refs/pull/33541/head:
mgr/test_orchestrator: add daemon_action
qa/tasksmgr/test_orchestrator_cli: fix test_service_action
qa/tasks/test_orchestrator_cli: disable test_osd_create exception check
mgr/test_orchestrator: update_foo -> apply_foo
mgr/test_orchestrator: add force flag to remove_daemons
qa/tasks/mgr/test_orchestrator_cli: update
qa/tasks/mgr/test_orchestrator_cli: fix test_load_data
mgr/test_orchestrator: fix list_daemons
Reviewed-by: Joshua Schmid <jschmid@suse.de>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Sage Weil [Sun, 1 Mar 2020 20:26:09 +0000 (14:26 -0600)]
Merge PR #33627 into master
* refs/pull/33627/head:
doc/cephadm/administration: clarify log gathering
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 17:30:46 +0000 (11:30 -0600)]
mgr/orch: ServiceSpec: drop 'count'
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 17:30:38 +0000 (11:30 -0600)]
mgr/rook: use spec.placement.count (instead of spec.count)
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Tue, 25 Feb 2020 00:29:12 +0000 (18:29 -0600)]
mgr/cephadm: make HostAssignment make sense
- if hosts are passed, use those.
- if all_hosts=true, use all hosts.
Otherwise, build a set of hosts based on the labels--either explicit or
implied. If there's no label, use all hosts.
If there is a count, use a subset of candidate hosts. If there was no
label and there is no count, fail.
If count and hosts are both provided, then we either (1) use the hosts
as the candidate list and place among them (if len(hosts) >= count), or
(2) ensure that any result includes *at least* the provided hosts.
Add tests that (I'm pretty sure) cover cases!
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 28 Feb 2020 16:17:50 +0000 (10:17 -0600)]
mgr/orch: PlacementSpec: do not combine all_hosts with anything else
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 27 Feb 2020 19:32:24 +0000 (13:32 -0600)]
mgr/orch: use PlacementSpec.from_strings() for all CLI commands
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 20:18:39 +0000 (14:18 -0600)]
Merge PR #33553 into master
* refs/pull/33553/head:
mgr/cephadm: orch ls: include specs with no daemons
mgr/cephadm: orch ls: show spec size
mgr/orch: remove unused fields in RGWSpec
mgr/orch: fix ServiceSpec fields
mgr/cephadm: simplify spec apply
pybind/mgr/mgr_module: revert PersistentStoreDict seperator
mgr/cephadm: apply services after refreshing inventory
mgr/cephadm: catch and log exceptions from apply
mgr/orch: no extra whitespace in stored json specs
mgr/cephadm: drop daemon_type arg to _apply_service
mgr/cephadm: use _apply() helper for all apply_ methods
mgr/cephadm: replace PersistentStoreDict with SpecStore
mgr/cephadm: do not remove service spec when removing a daemon
mgr/cephadm: rename completion variables&cleanup
mgr/cephadm: leverage service specs
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 20:18:16 +0000 (14:18 -0600)]
mgr/test_orchestrator: add daemon_action
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 17:52:36 +0000 (11:52 -0600)]
qa/tasksmgr/test_orchestrator_cli: fix test_service_action
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 18:06:19 +0000 (12:06 -0600)]
vstart.sh: fix install of cephadm ssh keys from ~/.ssh
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 16:48:42 +0000 (10:48 -0600)]
qa/tasks/test_orchestrator_cli: disable test_osd_create exception check
I'm not sure what behavior we want here...
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 14:27:11 +0000 (08:27 -0600)]
mgr/cephadm: orch ls: include specs with no daemons
This way you see entries like
NAME RUNNING REFRESHED IMAGE NAME IMAGE ID SPEC
mds.foo 0/1 - <unknown> <unknown> present
before any daemons have been created.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 14:23:40 +0000 (08:23 -0600)]
mgr/cephadm: orch ls: show spec size
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 15:05:50 +0000 (09:05 -0600)]
mgr/orch: remove unused fields in RGWSpec
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 13:48:17 +0000 (07:48 -0600)]
mgr/orch: fix ServiceSpec fields
- service_type is required. Make it the first position arg to the ctor.
- service_id is the id *only* and optional.
- service_name() is the full service name (no change)
The old 'name' was previously used as the id only, so it was poorly named,
and optional, but in this series was changed to include the type, breaking
naming for a bunch of things (e.g., daemons called mds.mds.fsname.xyz).
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 03:09:57 +0000 (21:09 -0600)]
mgr/cephadm: simplify spec apply
- Teach _apply_service how to pick the create (and config) functions, so
that we don't need any weird wrappers in the callers.
- Replace trigger_deploy() and _apply_services() with a simpler
_apply_all_services()
- Drop all of the per-type _apply_foo() methods.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sun, 1 Mar 2020 02:47:38 +0000 (20:47 -0600)]
pybind/mgr/mgr_module: revert PersistentStoreDict seperator
This fixes the self-test.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sat, 29 Feb 2020 21:59:25 +0000 (15:59 -0600)]
mgr/cephadm: apply services after refreshing inventory
Ensure we have an inventory to apply against.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Sat, 29 Feb 2020 21:55:40 +0000 (15:55 -0600)]
mgr/cephadm: catch and log exceptions from apply
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 28 Feb 2020 23:05:26 +0000 (17:05 -0600)]
mgr/orch: no extra whitespace in stored json specs
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 28 Feb 2020 23:05:05 +0000 (17:05 -0600)]
mgr/cephadm: drop daemon_type arg to _apply_service
This is part of ServiceSpec now.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 28 Feb 2020 22:55:31 +0000 (16:55 -0600)]
mgr/cephadm: use _apply() helper for all apply_ methods
Clean up a few that were missed (due to racing PRs, presumably).
'creation' -> 'update', since an apply doesn't necessarily create (it may
destroy!).
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 28 Feb 2020 22:38:26 +0000 (16:38 -0600)]
mgr/cephadm: replace PersistentStoreDict with SpecStore
Explicit implementation of the dict of specs.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 28 Feb 2020 21:32:04 +0000 (15:32 -0600)]
mgr/cephadm: do not remove service spec when removing a daemon
This makes our behavior similar to kube: if you kill a pod, the operator
or controller will come along and create a new one (probably somewhere
else).
Signed-off-by: Sage Weil <sage@redhat.com>