]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agodoc: Use `ceph osd crush tree` command to display weight set weights 51349/head
James Lakin [Thu, 4 May 2023 17:02:36 +0000 (18:02 +0100)]
doc: Use `ceph osd crush tree` command to display weight set weights

The previous `ceph osd tree` doesn't show pool-defined weight-sets as the above documentation suggests.

Signed-off-by: James Lakin <james@jameslakin.co.uk>
(cherry picked from commit 15c3d72a43a37798de823b26f1429f7776f67aaa)

2 years agoMerge pull request #51165 from rhcs-dashboard/wip-59503-reef
Nizamudeen A [Thu, 4 May 2023 15:36:31 +0000 (21:06 +0530)]
Merge pull request #51165 from rhcs-dashboard/wip-59503-reef

reef: mgr/dashboard: hide notification on force promote

Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2 years agoMerge pull request #50881 from adk3798/reef-backport-49969-50100-50270-50101-50244...
Adam King [Thu, 4 May 2023 14:04:54 +0000 (10:04 -0400)]
Merge pull request #50881 from adk3798/reef-backport-49969-50100-50270-50101-50244-50133-50133-50413-50318-50082-

reef: mgr/cephadm: Reef Batch Backport

Reviewed-by: Teoman ONAY <tonay@ibm.com>
2 years agoMerge pull request #51337 from zdover23/wip-doc-2023-05-04-backport-51292-to-reef
Anthony D'Atri [Thu, 4 May 2023 02:18:43 +0000 (22:18 -0400)]
Merge pull request #51337 from zdover23/wip-doc-2023-05-04-backport-51292-to-reef

reef: doc/rados: edit stretch-mode.rst

2 years agodoc/rados: edit stretch-mode.rst 51337/head
Zac Dover [Sun, 30 Apr 2023 02:09:51 +0000 (12:09 +1000)]
doc/rados: edit stretch-mode.rst

Edit "Stretch Mode Limitations" (renamed "Limitations of Stretch Mode"
in this commit) in doc/rados/operations/stretch-mode.rst.

Co-authored-by: Greg Farnum <gfarnum@redhat.com>
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 410e2a181c3247d13a1b20d80c4bcbbc1a5f84da)

2 years agoMerge pull request #50978 from batrick/i59295
Yuri Weinstein [Wed, 3 May 2023 22:12:22 +0000 (15:12 -0700)]
Merge pull request #50978 from batrick/i59295

reef: MgrMonitor: batch commit OSDMap and MgrMap mutations

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
2 years agoMerge pull request #50963 from ajarr/wip-58999-reef
Yuri Weinstein [Wed, 3 May 2023 22:11:06 +0000 (15:11 -0700)]
Merge pull request #50963 from ajarr/wip-58999-reef

reef: mgr: store names of modules that register RADOS clients in the MgrMap

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
2 years agoMerge pull request #51061 from mkogan1/wip-50842-reef
Casey Bodley [Wed, 3 May 2023 21:36:23 +0000 (17:36 -0400)]
Merge pull request #51061 from mkogan1/wip-50842-reef

reef: rgw : fix python script using s3cmd with error code 403 ubuntu 20.04

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2 years agorgw : fix python script using s3cmd with error code 403 ubuntu 20.04 51061/head
Mark Kogan [Sun, 2 Apr 2023 13:23:25 +0000 (16:23 +0300)]
rgw : fix python script using s3cmd with error code 403 ubuntu 20.04

Fixes: https://tracker.ceph.com/issues/54104
Signed-off-by: Mark Kogan <mkogan@redhat.com>
(cherry picked from commit 5846a9c2677067516f98d502980dab1681cddb69)

2 years agoMerge pull request #51334 from ljflores/wip-59600-reef
Laura Flores [Wed, 3 May 2023 18:38:21 +0000 (13:38 -0500)]
Merge pull request #51334 from ljflores/wip-59600-reef

reef: mgr: add urllib3==1.26.15 to mgr/requirements.txt

2 years agomgr: add urllib3==1.26.15 to mgr/requirements.txt 51334/head
Laura Flores [Mon, 1 May 2023 16:28:54 +0000 (16:28 +0000)]
mgr: add urllib3==1.26.15 to mgr/requirements.txt

We do not depend on any particular version of
urllib3, but as a workaround to the incompatibility
of urllib3 constraints between kubernetes and
requests, we need to pin it temporarily to
the version both are happy with.

Fixes: https://tracker.ceph.com/issues/59591
Signed-off-by: Laura Flores <lflores@redhat.com>
(cherry picked from commit 80d460005e44649191aa862fa78bd278644b5237)

2 years agoMerge pull request #51309 from zdover23/wip-doc-2023-05-02-backport-51133-to-reef
zdover23 [Tue, 2 May 2023 22:25:04 +0000 (08:25 +1000)]
Merge pull request #51309 from zdover23/wip-doc-2023-05-02-backport-51133-to-reef

reef: doc/mgr: update prompts in prometheus.rst

Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
2 years agoMerge pull request #50631 from trociny/wip-59130-reef
Adam King [Tue, 2 May 2023 21:48:25 +0000 (17:48 -0400)]
Merge pull request #50631 from trociny/wip-59130-reef

reef: mgr/cephadm: don't add mgr into iscsi trusted_ip_list if it's already there

Reviewed-by: Adam King <adking@redhat.com>
2 years agodoc/mgr: update prompts in prometheus.rst 51309/head
Zac Dover [Tue, 18 Apr 2023 14:28:50 +0000 (16:28 +0200)]
doc/mgr: update prompts in prometheus.rst

Update prompts in prometheus.rst so that they're unselectable.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 5a90d64b343f158d43397c70c267deb4e7ef0e00)

2 years agoMerge pull request #51305 from zdover23/wip-doc-2023-05-02-backport-51299-to-reef
Anthony D'Atri [Mon, 1 May 2023 23:25:48 +0000 (19:25 -0400)]
Merge pull request #51305 from zdover23/wip-doc-2023-05-02-backport-51299-to-reef

reef: doc/radosgw: rabbitmq - push-endpoint edit

2 years agodoc/radosgw: rabbitmq - push-endpoint edit 51305/head
Zac Dover [Mon, 1 May 2023 17:14:01 +0000 (03:14 +1000)]
doc/radosgw: rabbitmq - push-endpoint edit

Remove a note that directed users to change "push-endpoint" (with a
hyphen) to "push_endpoint" (with an underscore) when using rabbitmq.

Re: https://github.com/ceph/ceph/pull/48486#issuecomment-1529925389

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit e4b35de2abf00d514c76f77645c587c562bab05d)

2 years agoMerge pull request #51302 from zdover23/wip-doc-2023-05-02-backport-51296-to-reef
Anthony D'Atri [Mon, 1 May 2023 20:35:51 +0000 (16:35 -0400)]
Merge pull request #51302 from zdover23/wip-doc-2023-05-02-backport-51296-to-reef

reef: doc/rados: edit stretch-mode.rst

2 years agodoc/rados: edit stretch-mode.rst 51302/head
Zac Dover [Mon, 1 May 2023 02:29:07 +0000 (12:29 +1000)]
doc/rados: edit stretch-mode.rst

Refine and supplement the introductory and explanatory text at the top
of the /doc/rados/operations/stretch-mode.rst file.

Co-authored-by: Josh Durgin <jdurgin@redhat.com>
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit b642900abc57302e62a5064dba510c3cc5743ac0)

2 years agoMerge pull request #51289 from zdover23/wip-doc-2023-04-30-backport-51285-to-reef
Anthony D'Atri [Sat, 29 Apr 2023 20:00:57 +0000 (16:00 -0400)]
Merge pull request #51289 from zdover23/wip-doc-2023-04-30-backport-51285-to-reef

reef: doc/rados: edit stretch-mode procedure

2 years agodoc/rados: edit stretch-mode procedure 51289/head
Zac Dover [Sat, 29 Apr 2023 00:14:02 +0000 (10:14 +1000)]
doc/rados: edit stretch-mode procedure

Edit the "stretch mode" section in doc/rados/operations/stretch-mode.rst
so that the procedure is formatted as a procedure and the sentences
correctly have heads.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit a19ff7a5ea9bbd24365648a90abfa1b720c5b231)

2 years agoMerge pull request #51286 from zdover23/wip-doc-2023-04-29-backport-51276-to-reef
zdover23 [Sat, 29 Apr 2023 17:32:04 +0000 (03:32 +1000)]
Merge pull request #51286 from zdover23/wip-doc-2023-04-29-backport-51276-to-reef

reef: docs: Update the Prometheus endpoint info

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
2 years agodocs: Update the Prometheus endpoint info 51286/head
Paul Cuzner [Fri, 28 Apr 2023 05:21:39 +0000 (17:21 +1200)]
docs: Update the Prometheus endpoint info

This patch just tidies up some of the links and adds
an example showing how the http_sd_configs option
may be used.

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
(cherry picked from commit 690d34ab08f22cd988828aa2097531627000907e)

2 years agoMerge pull request #51272 from zdover23/wip-doc-2023-04-28-backport-51271-to-reef
Anthony D'Atri [Fri, 28 Apr 2023 00:53:50 +0000 (20:53 -0400)]
Merge pull request #51272 from zdover23/wip-doc-2023-04-28-backport-51271-to-reef

reef: doc/rados: m-config-ref: edit "background"

2 years agodoc/rados: m-config-ref: edit "background" 51272/head
Zac Dover [Thu, 27 Apr 2023 22:35:17 +0000 (08:35 +1000)]
doc/rados: m-config-ref: edit "background"

Edit the "Background" section of doc/rados/monitor/config-ref.rst

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 9223863fc83095def59b416bf70f9a828a701ccc)

2 years agoMerge pull request #51148 from zdover23/wip-doc-2023-04-20-backport-51143-to-reef
zdover23 [Thu, 27 Apr 2023 20:41:03 +0000 (06:41 +1000)]
Merge pull request #51148 from zdover23/wip-doc-2023-04-20-backport-51143-to-reef

reef: docs: warning and remove few docs section for Filestore

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2 years agodoc/man/rbd: resurrect filestore alloc_size note 51148/head
Ilya Dryomov [Thu, 20 Apr 2023 10:05:14 +0000 (12:05 +0200)]
doc/man/rbd: resurrect filestore alloc_size note

Mistakenly removed in commit d79f2a81541c ("docs: warning and remove
few docs section for Filestore Update docs after filestore removal.").
The kernel client, however new, will continue to be able to talk to
FileStore OSDs for as long as they exist.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit d3558c49bf0456a199cf55f73c5832f408462ec5)

2 years agoMerge pull request #51239 from zdover23/wip-doc-2023-04-27-backport-51154-to-reef
zdover23 [Thu, 27 Apr 2023 00:44:25 +0000 (10:44 +1000)]
Merge pull request #51239 from zdover23/wip-doc-2023-04-27-backport-51154-to-reef

reef: doc/rados/ops: edit user-management.rst (3 of x)

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agodoc/rados/ops: edit user-management.rst (3 of x) 51239/head
Zac Dover [Thu, 20 Apr 2023 08:25:00 +0000 (10:25 +0200)]
doc/rados/ops: edit user-management.rst (3 of x)

Line-edit doc/rados/user-management.rst (3 of x).

https://tracker.ceph.com/issues/58485

Follows https://github.com/ceph/ceph/pull/51140.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 97b751ed8f8917f9d4d9cbca03f224e6518836ef)

2 years agoMerge pull request #51155 from zdover23/wip-doc-2023-04-20-backport-51140-to-reef
zdover23 [Thu, 27 Apr 2023 00:09:09 +0000 (10:09 +1000)]
Merge pull request #51155 from zdover23/wip-doc-2023-04-20-backport-51140-to-reef

reef: doc/rados: edit user-management (2 of x)

Reviewed-by: Cole Mitchell <cole.mitchell@gmail.com>
2 years agoMerge pull request #51235 from zdover23/wip-doc-2023-04-27-backport-51204-to-reef
Anthony D'Atri [Wed, 26 Apr 2023 22:25:55 +0000 (18:25 -0400)]
Merge pull request #51235 from zdover23/wip-doc-2023-04-27-backport-51204-to-reef

reef: doc/cephfs: explain cephfs data and metadata set

2 years agodoc/cephfs: explain cephfs data and metadata set 51235/head
Zac Dover [Tue, 25 Apr 2023 07:46:53 +0000 (17:46 +1000)]
doc/cephfs: explain cephfs data and metadata set

Explain how to set application metadata for the CephFS data pool and the
CephFS metadata pool.

Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 9152f9700420f9735533f276559af87dff97bd75)

2 years agoMerge pull request #51012 from cbodley/wip-59358
Casey Bodley [Wed, 26 Apr 2023 15:18:00 +0000 (11:18 -0400)]
Merge pull request #51012 from cbodley/wip-59358

reef: rgw/keystone: use secret key from EC2 for sigv4 streaming mode

Reviewed-by: Shilpa Jagannath <smanjara@redhat.com>
2 years agoMerge pull request #51220 from zdover23/wip-doc-2023-04-26-backport-51193-to-reef
Anthony D'Atri [Wed, 26 Apr 2023 00:21:53 +0000 (20:21 -0400)]
Merge pull request #51220 from zdover23/wip-doc-2023-04-26-backport-51193-to-reef

reef: doc/start: rewrite intro paragraph

2 years agodoc/start: rewrite intro paragraph 51220/head
Zac Dover [Mon, 24 Apr 2023 11:02:16 +0000 (13:02 +0200)]
doc/start: rewrite intro paragraph

Rewrite the first paragraph in doc/start/intro.rst.

Signed-off-by: Zac Dover <zac.dover@proton.me>
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit bea01d5f1469030253a3403dbb9e2c9fa97806ac)

2 years agoMerge pull request #51022 from cbodley/wip-59151
Casey Bodley [Tue, 25 Apr 2023 18:09:41 +0000 (14:09 -0400)]
Merge pull request #51022 from cbodley/wip-59151

reef: rgw: install rgw scripts with common files rather than radosgw files

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #51019 from cbodley/wip-59273
Casey Bodley [Tue, 25 Apr 2023 15:35:26 +0000 (11:35 -0400)]
Merge pull request #51019 from cbodley/wip-59273

reef: rgw/admin: 'data sync status' formats binary error repo entries

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #51024 from cbodley/wip-59133
Casey Bodley [Tue, 25 Apr 2023 15:35:01 +0000 (11:35 -0400)]
Merge pull request #51024 from cbodley/wip-59133

reef: rgw/s3: DeleteObjects response uses correct delete_marker flag

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #51015 from cbodley/wip-59292
Casey Bodley [Tue, 25 Apr 2023 15:11:45 +0000 (11:11 -0400)]
Merge pull request #51015 from cbodley/wip-59292

reef: qa/rgw: add rgw/upgrade suite

Reviewed-by: Ali Maredia <amaredia@redhat.com>
2 years agoMerge pull request #51014 from cbodley/wip-59280
Casey Bodley [Tue, 25 Apr 2023 15:02:48 +0000 (11:02 -0400)]
Merge pull request #51014 from cbodley/wip-59280

reef: rgw: set init_check_compat when bucket sync status doesn't exist

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #51020 from cbodley/wip-59275
Casey Bodley [Tue, 25 Apr 2023 15:01:40 +0000 (11:01 -0400)]
Merge pull request #51020 from cbodley/wip-59275

reef: rgw/sts: Fixes get_cert_url improper url path concatenation

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #51145 from cbodley/wip-59493
Casey Bodley [Tue, 25 Apr 2023 14:10:17 +0000 (10:10 -0400)]
Merge pull request #51145 from cbodley/wip-59493

reef: cmake/rgw: librgw tests depend on ALLOC_LIBS

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #51013 from cbodley/wip-59278
Casey Bodley [Tue, 25 Apr 2023 14:09:49 +0000 (10:09 -0400)]
Merge pull request #51013 from cbodley/wip-59278

reef: rgw: fix CopyObj crash after admin override

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #51017 from cbodley/wip-59360
Casey Bodley [Tue, 25 Apr 2023 14:09:17 +0000 (10:09 -0400)]
Merge pull request #51017 from cbodley/wip-59360

reef: rgw: fix rgw cache invalidation after unregister_watch() error

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #51018 from cbodley/wip-59377
Casey Bodley [Tue, 25 Apr 2023 14:09:08 +0000 (10:09 -0400)]
Merge pull request #51018 from cbodley/wip-59377

reef: rgw/civetweb: handle old clients with transfer-encoding: chunked.

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #51021 from cbodley/wip-59356
Casey Bodley [Tue, 25 Apr 2023 14:08:33 +0000 (10:08 -0400)]
Merge pull request #51021 from cbodley/wip-59356

reef: rgw/sse-s3: fix bucket encryption of multipart upload

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #51023 from cbodley/wip-59232
Casey Bodley [Tue, 25 Apr 2023 14:08:02 +0000 (10:08 -0400)]
Merge pull request #51023 from cbodley/wip-59232

reef: rgw/notifications: support bucket notification with bucket policy

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agoMerge pull request #51025 from cbodley/wip-59145
Casey Bodley [Tue, 25 Apr 2023 14:07:43 +0000 (10:07 -0400)]
Merge pull request #51025 from cbodley/wip-59145

reef: rgw: Do not duplicate query-string in ops-log

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoMerge pull request #51026 from cbodley/wip-59028
Casey Bodley [Tue, 25 Apr 2023 14:07:31 +0000 (10:07 -0400)]
Merge pull request #51026 from cbodley/wip-59028

reef: rgw: use unique_ptr for flat_map emplace in BucketTrimWatcher

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agoMerge pull request #51027 from cbodley/wip-59013
Casey Bodley [Tue, 25 Apr 2023 14:07:18 +0000 (10:07 -0400)]
Merge pull request #51027 from cbodley/wip-59013

reef: rgw/notifications: fetch object state to get size, in rgw_lc.cc

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2 years agoMerge pull request #51028 from cbodley/wip-59220
Casey Bodley [Tue, 25 Apr 2023 14:06:46 +0000 (10:06 -0400)]
Merge pull request #51028 from cbodley/wip-59220

reef: qa/rgw: unpin centos for verify suite

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2 years agoqa/distros: pass --allowerasing --nobest when installing container-tools 50881/head
Adam King [Thu, 16 Feb 2023 17:34:06 +0000 (12:34 -0500)]
qa/distros: pass --allowerasing --nobest when installing container-tools

One of the tests in the orch suite is running distro install
commands from multiple distros, causing it to first install
container-tools 3.0 and then later install container-tools,
which fails, causing the test to fail. This is sort of a bandaid
fix to getthe test to work. It will cause whatever the last
version of the package to be installed to end up being installed
(and will do so without error) which is what we want in the tests.

Fixes: https://tracker.ceph.com/issues/57771
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 3011d954986e38ae8f7c9cd027ef2a88dff9a3d8)

2 years agomgr/rgw: adding mgr rgw module to ceph image
Redouane Kachach [Mon, 27 Feb 2023 08:56:54 +0000 (09:56 +0100)]
mgr/rgw: adding mgr rgw module to ceph image
Fixes: https://tracker.ceph.com/issues/58856
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 110db72e24dab6667adc21259355cf17dc20ac86)

2 years agomgr/cephadm: use SFTP instead of SCP to copy cephadm remote files
Redouane Kachach [Mon, 3 Apr 2023 16:34:25 +0000 (18:34 +0200)]
mgr/cephadm: use SFTP instead of SCP to copy cephadm remote files
fixes: https://tracker.ceph.com/issues/59298

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 99148b4a183f54a8779edbf529dfb34bba67e2a9)

2 years agomgr/cephadm: Adding extra arguments support for RGW frontend
Redouane Kachach [Wed, 26 Oct 2022 09:33:38 +0000 (11:33 +0200)]
mgr/cephadm: Adding extra arguments support for RGW frontend
Fixes: https://tracker.ceph.com/issues/57931
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 2c46c0741962e0e6a5ddbc960dfd21948daf0947)

2 years agopython-common: add a dedicated tox env to run mypy
John Mulligan [Thu, 30 Mar 2023 20:49:27 +0000 (16:49 -0400)]
python-common: add a dedicated tox env to run mypy

IMO it's not a good practice to overload a tox rule with multiple
different test tools. It forces the tools to share the same virtualenvs
and makes it impossible to run the tools individually. A separate mypy
env also better matches the other tox.ini files in the ceph tree.
Since the new 'mypy' env is in the default env list it will continue
to get run automatically when no specific envs are selected.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit ff39f87701ba5935902f2a6c67d7ad178bddc5e0)

2 years agomypy: update pinned mypy version to 0.981
John Mulligan [Tue, 28 Mar 2023 20:42:41 +0000 (16:42 -0400)]
mypy: update pinned mypy version to 0.981

mypy version 0.981 fixes a bug where on newer python versions mypy
doesn't properly load pyi files with keyword only arguments.
As noted in the src/mypy-constrains.txt mypy version needs to be
manually bumped periodically, and ceph is overdue for an update too.
It's never been updated since the file was added in June 2021.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 866f14d40cd3ffd30d85f9d2c09cf4a25948cd5c)

2 years agopython-common: fix variable name reuse to make mypy happy
John Mulligan [Thu, 30 Mar 2023 20:48:02 +0000 (16:48 -0400)]
python-common: fix variable name reuse to make mypy happy

The variables high and low were being used as both `str`s and regex
match objects. Rename the vars in the if block to avoid this problem.
This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit f2646dbaba943baccd2fa7d7860c73fa05e7cd8d)

2 years agosrc/pybind: fix type annotations for signal handler function
John Mulligan [Wed, 29 Mar 2023 14:15:10 +0000 (10:15 -0400)]
src/pybind: fix type annotations for signal handler function

This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 3035ca6c52168245dcc2104ef58615948697e740)

2 years agocephadm: fix type annotation for list containing IP addresses
John Mulligan [Wed, 29 Mar 2023 14:14:33 +0000 (10:14 -0400)]
cephadm: fix type annotation for list containing IP addresses

This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 84a02d63ef1fc8bc4cc3d6c7fc4579c8448a9e4a)

2 years agomgr/dashboard: ignore type checking on mgr proxy object assignments
John Mulligan [Tue, 28 Mar 2023 21:09:30 +0000 (17:09 -0400)]
mgr/dashboard: ignore type checking on mgr proxy object assignments

Add `# type: ignore` comments to two dashboard functions that attempt
to set manager properties. There appear to be two approaches to fixing
the problem:

1. The _MgrProxy object that the dashboard uses has a __getattr__ method
for pulling value from the underlying mgr object. It does not have a
__setattr__ method. This means the setting values on _MgrProxy do not
propogate down to the original mgr.
mypy detects the fact that the object doesn't have __setattr__ and
complains. One could add a __setattr__ to the proxy type and mypy
is satisfied.

2. We can just suppress the type check with the comment.

Because I have no idea why the _MgrProxy exists or why it's implemented
the way it is, I feel that 2 is simpler. It is easy enough to go back
later and clean up the comments rather than me investing a lot of time
to understand the dashboard's approach just to bump up the version of
mypy.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 8042e3cefb864ffd272501c73b5909fc10c9400f)

2 years agomgr/dashboard: ignore type checking for exception handling module
John Mulligan [Tue, 28 Mar 2023 21:07:20 +0000 (17:07 -0400)]
mgr/dashboard: ignore type checking for exception handling module

Add a `# type: ignore` comment to the exception handling dashboard
module just like the instance to lines below. This module does not
already import typing, so I'm not going to add it.
This change is needed in order to run mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit e767b8643aa6565a6149a600df3d87a7b31f737a)

2 years agopybind/mgr: add a type annotation to the extra_args dict
John Mulligan [Tue, 28 Mar 2023 21:07:04 +0000 (17:07 -0400)]
pybind/mgr: add a type annotation to the extra_args dict

This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit bc65da0acdfbe99d847f8f304eb1e470b072561b)

2 years agomgr/dashboard: add an assertion for type narrowing
John Mulligan [Tue, 28 Mar 2023 21:06:51 +0000 (17:06 -0400)]
mgr/dashboard: add an assertion for type narrowing

This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit e1df7d939ff9f3445b129c9ace5387bd639c8e7a)

2 years agomgr/cephadm: add a type annotation to the ganesha conf template context
John Mulligan [Tue, 28 Mar 2023 17:49:21 +0000 (13:49 -0400)]
mgr/cephadm: add a type annotation to the ganesha conf template context

This change makes this file pass mypy checking on mypy 0.981.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit de9e8094aad0f387f46e7178fca791bc7766ed9a)

2 years agoqa/cephadm: add check that iscsi daemon /etc/hosts matches host /etc/hosts
Adam King [Mon, 30 Jan 2023 16:27:09 +0000 (11:27 -0500)]
qa/cephadm: add check that iscsi daemon /etc/hosts matches host /etc/hosts

To make sure we aren't being affected by any podman introduced
changes to the /etc/hosts file and test that we're properly
mounting /etc/hosts in our daemon containers

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 5493e2d3300c115795987d6f63134af2437e83fc)

2 years agocephadm: mount host /etc/hosts for containers in podman deployments
Adam King [Sat, 21 Jan 2023 23:44:22 +0000 (18:44 -0500)]
cephadm: mount host /etc/hosts for containers in podman deployments

Podman messes with the /etc/hosts file in certain version. There
was already a past issue with it placing the container name
there fixed by https://github.com/ceph/ceph/pull/42242. This time
it is adding an entry for "host.containers.internal" (seems to be
podman 4.1 onward currently). Iscsi figures out the FQDN for a
host by running

python3 -c 'import socket; print(socket.getfqdn())

which is resolving to "host.containers.internal" when run in
the container with the podman modified /etc/hosts.

There is also an issue with grafana dashboard with
this entry present

Passing --no-hosts resolves this, but I think in the past
we avoided that due to not wanting to break deployments
where host name resolution was handled using /etc/hosts.
That's why we had that workaround previously linked. This
time I'm not sure such a workaround exists. The try here
is to mount a copy of the host's version of /etc/hosts
into the iscsi container. That copy won't have the extra
entry podman adds in but will have any user created entries in
case they were actually using it for host name resolution.
If /etc/hosts file isn't present for whatever reason, we're
assuming that this user isn't using /etc/hosts for hostname
resolution, and just going back to passing --no-hosts.

Fixes: https://tracker.ceph.com/issues/58532
Fixes: https://tracker.ceph.com/issues/57018
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit dd8627bbe3ebc6d924912a37785859d8124f95e5)

2 years agomgr/cephadm: add more aggressive force flag for host maintenance enter
Adam King [Wed, 1 Mar 2023 15:58:43 +0000 (10:58 -0500)]
mgr/cephadm: add more aggressive force flag for host maintenance enter

Right now, we have safety checks that will either say things are okay to stop,
return warnings, or returns "alerts". Warnings can be bypassed already with
the --force flag that exists for the command. However, the alerts cannot be
bypassed and cephadm will refuse to attempt to put the host in maintenance mode.
The idea here is for an additional flag that also bypasses that alerts, in cases
where a user really needs to put the host into maintenance mode even if that
means causing issues within the cluster.

Fixes: https://tracker.ceph.com/issues/58892
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 0a980666f645387f1eaa5f2c995db304c42e85e6)

2 years agomgr/cephadm: handle HostConnectionError when checking for valid addr
Adam King [Wed, 15 Mar 2023 17:18:02 +0000 (13:18 -0400)]
mgr/cephadm: handle HostConnectionError when checking for valid addr

Otherwise, the error is not properly passed back up the chain
and the user can get an error message like

TypeError: __init__() missing 2 required positional arguments: 'hostname' and 'addr'

when trying to add a host, despite the actual problem being

cephadm.ssh.HostConnectionError: Failed to connect to vm-01 (192.168.122.248). Permission denied

The tracker shows a bit more, but generally trying to add a host
that doesn't have the proper pub-key set as an authorized key
will get a misleasing error message. With this patch, the error message looks like

[ceph: root@vm-00 /]# ceph orch host add vm-01 192.168.122.29
Error EINVAL: Failed to connect to vm-01 (192.168.122.29). Permission denied
Log: Opening SSH connection to 192.168.122.29, port 22
[conn=1] Connected to SSH server at 192.168.122.29, port 22
[conn=1]   Local address: 192.168.122.156, port 49552
[conn=1]   Peer address: 192.168.122.29, port 22
[conn=1] Beginning auth for user root
[conn=1] Auth failed for user root
[conn=1] Connection failure: Permission denied
[conn=1] Aborting connection

which is much more useful

Fixes: https://tracker.ceph.com/issues/59081
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit efc6c585562ceda55a37ae591bf3c15ab35cdda8)

2 years agocephadm: bump default keepalived image to 2.2.4
Adam King [Tue, 21 Mar 2023 13:25:41 +0000 (09:25 -0400)]
cephadm: bump default keepalived image to 2.2.4

Now that we have a keepalived 2.2.4 image pushed to
https://quay.io/repository/ceph/keepalived?tab=tags,
we should try to use it.

Fixes: https://tracker.ceph.com/issues/51971
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 9454709c438f32b073d5152301c06c2cfb7e7d07)

2 years agomgr/cephadm: increasing container stop timeout for OSDs
Redouane Kachach [Fri, 24 Mar 2023 12:04:43 +0000 (13:04 +0100)]
mgr/cephadm: increasing container stop timeout for OSDs
Fixes: https://tracker.ceph.com/issues/58158
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 17bcfa8b9908eaaab7fde53f1a23cb5aed465512)

2 years agomgr/cephadm: fixing ceph-exporter prometheus's job section
Redouane Kachach [Mon, 27 Mar 2023 10:56:58 +0000 (12:56 +0200)]
mgr/cephadm: fixing ceph-exporter prometheus's job section
Fixes: https://tracker.ceph.com/issues/59170
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit a2927e0cdd76f10f3b6e067b8de387f358016cc9)

2 years agomgr/orchestrator: fix device size in `orch device ls` output
Adam King [Thu, 17 Nov 2022 18:14:55 +0000 (13:14 -0500)]
mgr/orchestrator: fix device size in `orch device ls` output

Fixes: https://tracker.ceph.com/issues/58045
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 7e576185ac87877e4d626c09bdef34e194042778)

2 years agomgr/cephadm: use a dedicated cephadm tmp dir to copy remote files
Redouane Kachach [Wed, 29 Mar 2023 08:48:30 +0000 (10:48 +0200)]
mgr/cephadm: use a dedicated cephadm tmp dir to copy remote files
Fixes: https://tracker.ceph.com/issues/59189
Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit ef958d47b44f8e4579ae380bd9d6890c0c62e13a)

2 years agocephadm: handle exceptions applying secondary services during bootstrap
Adam King [Wed, 15 Mar 2023 17:55:26 +0000 (13:55 -0400)]
cephadm: handle exceptions applying secondary services during bootstrap

Otherwise we risk hitting a mismatch between the cephadm binary version
and the container image version we're bootstrapping on, resulting in
bootstrap failing. Example in the tracker.

Fixes: https://tracker.ceph.com/issues/59082
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit a57fc000cc40066dff8692f489e4942d5bda1f56)

2 years agoRemove the filestore section from ceph-volume
Francesco Pantano [Fri, 17 Feb 2023 14:02:12 +0000 (15:02 +0100)]
Remove the filestore section from ceph-volume

Filestore is no longer supported in cephadm and both the doc [1] and the
DriveGroupValidation [2] raise an exception if this method is used. This
patch removes the legacy code that is supposed to produce filestore
ceph-volume related commands.

[1] https://github.com/ceph/ceph/blob/main/doc/cephadm/adoption.rst#limitations
[2] https://github.com/ceph/ceph/blob/main/src/python-common/ceph/deployment/drive_group.py#L366-L369

Signed-off-by: Francesco Pantano <fpantano@redhat.com>
(cherry picked from commit 6e5bef1b1d69ec6e8be9b0fa2f4f47491df80687)

2 years agomgr/cephadm: make upgrade respect use_repo_digest
Adam King [Sun, 12 Feb 2023 18:53:14 +0000 (13:53 -0500)]
mgr/cephadm: make upgrade respect use_repo_digest

If the option is false, we should upgrade images based
on whether their container image name matches, not whether
the digest is the same or not.

Fixes: https://tracker.ceph.com/issues/58698
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 78a73d146586e2f1f15d44c3b499f24299bc6662)

2 years agotest_cephadm: fix conf format
Rongqi Sun [Wed, 8 Mar 2023 02:16:55 +0000 (10:16 +0800)]
test_cephadm: fix conf format

Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
(cherry picked from commit b3125f4449781828d310c5eaf43bc478b91cba4d)

2 years agocephadm: eliminate duplication of sections
Rongqi Sun [Tue, 7 Mar 2023 09:12:31 +0000 (17:12 +0800)]
cephadm: eliminate duplication of sections

Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
(cherry picked from commit 0d1596e9275e8ca1b8c09b1490b3e595130aa97b)

2 years agocephadm: eliminate duplication of [global] section when applying set-extra-ceph-conf
Rongqi Sun [Wed, 1 Mar 2023 08:15:26 +0000 (16:15 +0800)]
cephadm: eliminate duplication of [global] section when applying set-extra-ceph-conf

Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
(cherry picked from commit ece7ccccc915392bced60c07703eb82142874516)

2 years agomgr/prometheus: remove dependency on cephadm module
Adam King [Fri, 3 Mar 2023 20:31:03 +0000 (15:31 -0500)]
mgr/prometheus: remove dependency on cephadm module

https://github.com/ceph/ceph/commit/f967ac061ebee362cdc82c458e955da75a9045e9
introduced an import of something in the cephadm module
in the prometheus module. This seems to break the prometheus
module in some non-cephadm setups. For example, the ceph-ansible
ci hit

failed: [mgr0 -> mon0] (item=prometheus) => changed=true
  ansible_loop_var: item
  cmd:
  - ceph
  - -n
  - client.admin
  - -k
  - /etc/ceph/ceph.client.admin.keyring
  - --cluster
  - ceph
  - mgr
  - module
  - enable
  - prometheus
  delta: '0:00:00.389965'
  end: '2023-03-03 15:30:07.631308'
  item: prometheus
  rc: 2
  start: '2023-03-03 15:30:07.241343'
  stderr: 'Error ENOENT: module ''prometheus'' reports that it cannot run on the active manager daemon: No module named ''cephadm'' (pass --force to force enablement)'
  stderr_lines: <omitted>
  stdout: ''
  stdout_lines: <omitted>

so we need to be a bit more careful with this import and
make sure the prometheus module works fine without cephadm

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 8be588958bd2694b8a427bdfc10011ba62df8453)

2 years agomgr/cephadm: be aware of host's shortname and FQDN
Adam King [Wed, 15 Feb 2023 22:07:09 +0000 (17:07 -0500)]
mgr/cephadm: be aware of host's shortname and FQDN

The idea is to gether the shortname and FQDN as part
of gather-facts, and then if we ever try to check if a certain
host is in our internal inventory by hostname, we can check
these other known names. This should avoid issues where
we think a hostname specified by FQDN is not in our
inventory because we know the host by the shortname
or vice versa.

Fixes: https://tracker.ceph.com/issues/58738
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 6443cf15d54a5e50c245dd08c3db005bb8521b6a)

2 years agocephadm/tests: enable timeout test cases for call function
John Mulligan [Mon, 27 Feb 2023 19:39:18 +0000 (14:39 -0500)]
cephadm/tests: enable timeout test cases for call function

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 05304675f750bc54ba73a92a5c98624f5050cd18)

2 years agocephadm: fix timeout argument to call function
John Mulligan [Mon, 27 Feb 2023 19:38:50 +0000 (14:38 -0500)]
cephadm: fix timeout argument to call function

The timeout argument to call function, for executing sub-processes, did
not function - this patch makes timeout work as (probably) intended.
Use the `process.communicate()` method rather than `tee` functions to
handle IO collection. Since no logging is done until after the exit code
is known the tee calls are not necessary. Add calls to kill the child
process when the time out occurs. This helps prevent event loop "leaks"
that generate python warnings.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit cefe44cde8d53d7bfd935435f87205a01d677986)

2 years agocephadm/tests: add initial test coverage for call function
John Mulligan [Thu, 23 Feb 2023 19:51:13 +0000 (14:51 -0500)]
cephadm/tests: add initial test coverage for call function

The call function provides the ability to run subprocesses, log output,
and provides an optional timeout parameter. This timeout parameter does
not appear to function correctly today, so we make use of
pytest.param/pytest.mark.xfail to mark these cases as already known to
fail.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 471a017ad86f752f862d6211faa5231567ba78d8)

2 years agocephadm: disable coverage for some compatibility blocks
John Mulligan [Wed, 22 Feb 2023 18:57:21 +0000 (13:57 -0500)]
cephadm: disable coverage for some compatibility blocks

This change disables reporting missing coverage for blocks that
contain copy and pasted code from other python versions and exist
to make those functions available to older python versions.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 2a8316b1c7440f7239cd74470b26bad6a50f9a2c)

2 years agomgr/orchestrator: allow deploying raw mode OSDs with --all-available-devices
Adam King [Mon, 13 Feb 2023 21:25:38 +0000 (16:25 -0500)]
mgr/orchestrator: allow deploying raw mode OSDs with --all-available-devices

Fixes: https://tracker.ceph.com/issues/58714
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit c034b08d952467a99be35a8cf6fc02834eb9a933)

2 years agocephadm: set --ulimit nofiles with Docker
Michal Nasiadka [Mon, 27 Feb 2023 08:15:50 +0000 (09:15 +0100)]
cephadm: set --ulimit nofiles with Docker

cephadm is setting LimitNOFILE in systemd units, but it doesn't
get picked up by Docker.

Fixes: https://tracker.ceph.com/issues/58855
Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
(cherry picked from commit ce169004f749f088c4f05505b6457e7a190db680)

2 years agomgr/cephadm: add commands to set services to managed/unmanaged
Adam King [Mon, 13 Feb 2023 20:01:59 +0000 (15:01 -0500)]
mgr/cephadm: add commands to set services to managed/unmanaged

Fixes: https://tracker.ceph.com/issues/58713
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit b0d8c0846cbe0ebae69dbdeb3f2982213ab56a58)

2 years agodrive_group: fix limit filter in drive_selection.selector
Guillaume Abrioux [Wed, 1 Feb 2023 16:51:18 +0000 (17:51 +0100)]
drive_group: fix limit filter in drive_selection.selector

When multiple osd service specs with 'limit' filter are applied,
the current logic makes the second service speec
try to pick devices that are already used by the first service spec.

Fixes: https://tracker.ceph.com/issues/58626
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
(cherry picked from commit 8b7da77ae0bf3b7c2ab28cd54b166bc1ff43b437)

2 years agoqa: adding logic to wait for rgw realm tokens before testing
Redouane Kachach [Fri, 24 Mar 2023 14:59:10 +0000 (15:59 +0100)]
qa: adding logic to wait for rgw realm tokens before testing

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit b431e308a747afa7fa8c1852ba7a375c4e0f1867)

2 years agomgr/rgw: removing placement section
Redouane Kachach [Tue, 14 Mar 2023 16:49:21 +0000 (17:49 +0100)]
mgr/rgw: removing placement section

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 89b3bd7935f3f804ed00f2f3c03d0e31231b1ea8)

2 years agoqa: Adding rgw multisite support
Redouane Kachach [Thu, 23 Feb 2023 16:16:39 +0000 (17:16 +0100)]
qa: Adding rgw multisite support

Signed-off-by: Redouane Kachach <rkachach@redhat.com>
(cherry picked from commit 3e4ef2c967f24e5b993116a679225750faf528bc)

2 years agoMerge pull request #50880 from guits/wip-59310-reef
Guillaume Abrioux [Tue, 25 Apr 2023 08:05:09 +0000 (10:05 +0200)]
Merge pull request #50880 from guits/wip-59310-reef

reef: ceph-volume: fix issue with fast device allocs when there are multiple PVs per VG

2 years agoMerge pull request #51181 from zdover23/wip-doc-2023-04-23-backport-51177-to-reef
Anthony D'Atri [Sun, 23 Apr 2023 21:19:18 +0000 (23:19 +0200)]
Merge pull request #51181 from zdover23/wip-doc-2023-04-23-backport-51177-to-reef

reef: doc/start: edit first 150 lines of documenting-ceph

2 years agoMerge pull request #51184 from zdover23/wip-doc-2023-04-23-backport-51178-to-reef
Anthony D'Atri [Sun, 23 Apr 2023 21:15:41 +0000 (23:15 +0200)]
Merge pull request #51184 from zdover23/wip-doc-2023-04-23-backport-51178-to-reef

reef: doc/glossary: add "Placement Groups" definition

2 years agodoc/glossary: add "Placement Groups" definition 51184/head
Zac Dover [Sat, 22 Apr 2023 08:55:38 +0000 (10:55 +0200)]
doc/glossary: add "Placement Groups" definition

Add a definition of "Placement Groups" to the Glossary.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit 9f37ea651f9ee2c51e0705b9b58ed356f1bc56e6)

2 years agodoc/start: edit first 50 lines of documenting-ceph 51181/head
Zac Dover [Sat, 22 Apr 2023 07:03:12 +0000 (09:03 +0200)]
doc/start: edit first 50 lines of documenting-ceph

Edit the first 150 lines of doc/start/documenting-ceph.rst. This is part
of an initiative to harvest the fruits of Cephalocon 2023, at which
documentation proved to be in demand to a surprising degree.

Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
(cherry picked from commit dd37f94aa4f1de947b1eaf5d82cc529925f5823e)

2 years agomgr: take a lock within PyModuleRegistry's mutators and accessor 50963/head
Ramana Raja [Wed, 15 Feb 2023 18:41:00 +0000 (13:41 -0500)]
mgr: take a lock within PyModuleRegistry's mutators and accessor

... that modify and access the data member 'clients' respectively.

Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit a586dcc57ab35a269f0c271756951d49f422662d)

2 years agomgr: store names of modules that register RADOS clients in the MgrMap
Ramana Raja [Mon, 30 Jan 2023 07:21:54 +0000 (02:21 -0500)]
mgr: store names of modules that register RADOS clients in the MgrMap

The MgrMap stores a list of RADOS clients' addresses registered by the
mgr modules. During failover of ceph-mgr, the list is used to blocklist
clients belonging to the failed ceph-mgr.

Store the names of the mgr modules that registered the RADOS clients
along with the clients' addresses in the MgrMap. During debugging, this
allows easy identification of the mgr module that registered a
particular RADOS client by just dumping the MgrMap (`ceph mgr dump`).

Following is the MgrMap output with a module's client name displayed
along with its client addrvec,
$ ceph mgr dump | jq '.active_clients[0]'
{
  "name": "devicehealth",
  "addrvec": [
    {
      "type": "v2",
      "addr": "10.0.0.148:0",
      "nonce": 612376578
    }
  ]
}

Fixes: https://tracker.ceph.com/issues/58691
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit b545fb9f5660dca3af4dea195ea4555f09b3a6e8)

2 years agomgr/dashboard: hide notification on force promote 51165/head
Pedro Gonzalez Gomez [Thu, 20 Apr 2023 15:29:57 +0000 (17:29 +0200)]
mgr/dashboard: hide notification on force promote

Fixes: https://tracker.ceph.com/issues/59500
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit abe1e5101cae0fc98ad9c6c404c6f7ce97a42137)