]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
2 years agoMerge pull request #47979 from adk3798/quincy-obf-fixes
Adam King [Fri, 16 Sep 2022 14:59:59 +0000 (10:59 -0400)]
Merge pull request #47979 from adk3798/quincy-obf-fixes

quincy: pybind/mgr: object_format.py decorator updates & docs

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
2 years agoMerge pull request #48075 from adk3798/wip-57526-quincy
Adam King [Fri, 16 Sep 2022 14:47:04 +0000 (10:47 -0400)]
Merge pull request #48075 from adk3798/wip-57526-quincy

quincy: mgr/cephadm: make setting --cgroups=split configurable

Reviewed-by: John Mulligan <jmulligan@redhat.com>
2 years agoMerge pull request #48076 from adk3798/wip-57527-quincy
Adam King [Fri, 16 Sep 2022 14:46:33 +0000 (10:46 -0400)]
Merge pull request #48076 from adk3798/wip-57527-quincy

quincy: mgr/cephadm: reconfig iscsi daemons if trusted_ip_list changes

Reviewed-by: John Mulligan <jmulligan@redhat.com>
2 years agoMerge pull request #48077 from adk3798/wip-57525-quincy
Adam King [Fri, 16 Sep 2022 14:45:17 +0000 (10:45 -0400)]
Merge pull request #48077 from adk3798/wip-57525-quincy

quincy: mgr/cephadm: fix tuned profiles getting removed if name has dashes

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #48078 from adk3798/wip-57524-quincy
Adam King [Fri, 16 Sep 2022 14:44:31 +0000 (10:44 -0400)]
Merge pull request #48078 from adk3798/wip-57524-quincy

quincy: mgr/cephadm: validating tuned profile specification

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #48079 from adk3798/wip-57521-quincy
Adam King [Fri, 16 Sep 2022 14:43:52 +0000 (10:43 -0400)]
Merge pull request #48079 from adk3798/wip-57521-quincy

quincy: mgr/cephadm: don't use "sudo" in commands if user is root

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
2 years agoMerge pull request #47989 from guits/wip-57380-quincy
Guillaume Abrioux [Fri, 16 Sep 2022 14:19:31 +0000 (16:19 +0200)]
Merge pull request #47989 from guits/wip-57380-quincy

quincy: ceph-volume: add a retry in util.disk.remove_partition

3 years agoMerge pull request #48034 from s0nea/wip-57488-quincy
Nizamudeen A [Fri, 16 Sep 2022 08:00:11 +0000 (13:30 +0530)]
Merge pull request #48034 from s0nea/wip-57488-quincy

quincy: monitoring/ceph-mixin: add RGW host to label info

Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #48104 from ljflores/wip-quincy-revert-pr-47901
Yuri Weinstein [Thu, 15 Sep 2022 14:19:27 +0000 (07:19 -0700)]
Merge pull request #48104 from ljflores/wip-quincy-revert-pr-47901

quincy: Revert PR 47901

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
3 years agoRevert "osd/PeeringState: fix missed `recheck_readable` from laggy" 48104/head
Laura Flores [Wed, 14 Sep 2022 20:41:39 +0000 (15:41 -0500)]
Revert "osd/PeeringState: fix missed `recheck_readable` from laggy"

This reverts commit c71ee14cdbcc499d0ccaa84f4714ad5f29821f40.

This commit caused a regression in the rados suite, as evidenced by:

- with the commit:
http://pulpito.front.sepia.ceph.com/lflores-2022-09-14_15:11:39-rados-quincy-release-distro-default-smithi/

- with the commit reverted:
http://pulpito.front.sepia.ceph.com/lflores-2022-09-14_17:02:02-rados-wip-lflores-testing-quincy-release-distro-default-smithi/

Fixes: https://tracker.ceph.com/issues/57546
Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agoRevert "osd/PeeringState: proc_lease_ack break once found from OSD"
Laura Flores [Wed, 14 Sep 2022 20:38:57 +0000 (15:38 -0500)]
Revert "osd/PeeringState: proc_lease_ack break once found from OSD"

This reverts commit 0d07b406dc2f854363f7ae9b970e980400f4f03e.

This commit caused a regression in the rados suite, as evidenced by:

- with the commit:
http://pulpito.front.sepia.ceph.com/lflores-2022-09-14_15:11:39-rados-quincy-release-distro-default-smithi/

- with the commit reverted:
http://pulpito.front.sepia.ceph.com/lflores-2022-09-14_17:02:02-rados-wip-lflores-testing-quincy-release-distro-default-smithi/

Fixes: https://tracker.ceph.com/issues/57546
Signed-off-by: Laura Flores <lflores@redhat.com>
3 years agoMerge pull request #48061 from zdover23/wip-doc-2022-09-13-backport-47575-to-quincy
zdover23 [Wed, 14 Sep 2022 07:47:22 +0000 (17:47 +1000)]
Merge pull request #48061 from zdover23/wip-doc-2022-09-13-backport-47575-to-quincy

quincy: doc/rados: add prompts to pools.rst

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agoMerge pull request #48063 from zdover23/wip-doc-2022-09-13-backport-47305-to-quincy
zdover23 [Wed, 14 Sep 2022 03:28:09 +0000 (13:28 +1000)]
Merge pull request #48063 from zdover23/wip-doc-2022-09-13-backport-47305-to-quincy

quincy: doc/monitoring: add min vers of apps in mon stack

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
3 years agomgr/cephadm: don't use "sudo" in commands if user is root 48079/head
Adam King [Thu, 1 Sep 2022 12:37:39 +0000 (08:37 -0400)]
mgr/cephadm: don't use "sudo" in commands if user is root

We had a patch earlier to make us not use sudo unless the
user is not root for our other commands, but this specific
one that just runs "true" with a timeout to check if the host
is online was missed.

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

3 years agomgr/cephadm: validating tuned profile specification 48078/head
Redouane Kachach [Wed, 24 Aug 2022 11:57:50 +0000 (13:57 +0200)]
mgr/cephadm: validating tuned profile specification
fixes: https://tracker.ceph.com/issues/57192
fixes: https://tracker.ceph.com/issues/57191

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

Conflicts:
src/cephadm/cephadm
src/pybind/mgr/cephadm/services/cephadmservice.py

3 years agomgr/cephadm: fix tuned profiles getting removed if name has dashes 48077/head
Adam King [Thu, 1 Sep 2022 17:08:13 +0000 (13:08 -0400)]
mgr/cephadm: fix tuned profiles getting removed if name has dashes

Previously, due to the way it was just splitting the file name on
dashes to try and get the profile name, any profile name with dashes
was not getting properly matched and would therefore get marked
stray and removed. This new strategy instead tries to match the actual
expected file name.

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

3 years agomgr/cephadm: reconfig iscsi daemons if trusted_ip_list changes 48076/head
Adam King [Tue, 9 Aug 2022 20:13:38 +0000 (16:13 -0400)]
mgr/cephadm: reconfig iscsi daemons if trusted_ip_list changes

This is necessary as iscsi daemons expect the iscsi-gateway.cfg
which includes this list to match across the iscsi daemons

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

Conflicts:
src/pybind/mgr/cephadm/module.py

3 years agomgr/cephadm: make setting --cgroups=split configurable 48075/head
Adam King [Tue, 16 Aug 2022 14:43:39 +0000 (10:43 -0400)]
mgr/cephadm: make setting --cgroups=split configurable

Previously, we were just always setting this as long
as users were using podman with a high enough version,
but it seems a user has run into an issue where their
daemons are failing to deploy with

Error: could not find cgroup mount in "/proc/self/cgroup"

despite having a podman with high enough version.

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

Conflicts:
src/pybind/mgr/cephadm/module.py

3 years agoMerge pull request #48047 from aaSharma14/wip-57499-quincy
Nizamudeen A [Tue, 13 Sep 2022 17:10:20 +0000 (22:40 +0530)]
Merge pull request #48047 from aaSharma14/wip-57499-quincy

quincy: mgr/dashboard: fix snapshot creation with duplicate name

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
3 years agoMerge pull request #47660 from adk3798/wip-57098-quincy
Adam King [Tue, 13 Sep 2022 13:38:31 +0000 (09:38 -0400)]
Merge pull request #47660 from adk3798/wip-57098-quincy

quincy: cephadm: support quotes around public/cluster network in config passed to bootstrap

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47949 from adk3798/wip-57397-quincy
Adam King [Tue, 13 Sep 2022 13:37:11 +0000 (09:37 -0400)]
Merge pull request #47949 from adk3798/wip-57397-quincy

quincy: qa/cephadm: remove fsid dir before bootstrap in test_cephadm.sh

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agodoc/monitoring: add min vers of apps in mon stack 48063/head
Zac Dover [Wed, 27 Jul 2022 14:27:42 +0000 (00:27 +1000)]
doc/monitoring: add min vers of apps in mon stack

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

This PR adds recommended versions of grafana and
prometheus and alert manager.

This PR is a second attempt at getting the information
in the following PR into the docs:
https://github.com/ceph/ceph/pull/46000/files

Himadri Maheshwari deserves the credit for the work
in this commit.

Signed-off-by: Zac Dover <zac.dover@gmail.com>
Signed-off-by: Himadri Maheshwari <himadri.maheshwari7915@gmail.com>
(cherry picked from commit 367695f5b09f75ee723d53116e2f4a6e45dd795d)

3 years agodoc/rados: add prompts to pools.rst 48061/head
Zac Dover [Fri, 12 Aug 2022 21:53:21 +0000 (07:53 +1000)]
doc/rados: add prompts to pools.rst

This commit adds ".. prompt:: bash $"-style prompts to pools.rst.
This brings this file up to the standard established in 2020 when
Kefu added support for the ".. prompt::" directive.

This commit is a part of an initiative to modernize the presentation
of all BASH commands in the RADOS documentation.

The progress of this project can be tracked here:
https://tracker.ceph.com/issues/57108

Signed-off-by: Zac Dover <zac.dover@gmail.com>
(cherry picked from commit 1bd64192568242b141d8e30fef6758bf162ec350)

3 years agoMerge pull request #47954 from adk3798/quincy-tp-no-overwrite-doc2
Adam King [Mon, 12 Sep 2022 19:40:29 +0000 (15:40 -0400)]
Merge pull request #47954 from adk3798/quincy-tp-no-overwrite-doc2

quincy: doc/cephadm: add info about --no-overwrite to note about tuned-profiles

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
3 years agoMerge pull request #47324 from zdover23/wip-doc-2022-07-28-backport-46024-to-quincy
zdover23 [Mon, 12 Sep 2022 16:29:40 +0000 (02:29 +1000)]
Merge pull request #47324 from zdover23/wip-doc-2022-07-28-backport-46024-to-quincy

quincy: doc/radosgw/STS: sts_key and user capabilities

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
3 years agomgr/dashboard: fix snapshot creation with duplicate name 48047/head
Aashish Sharma [Mon, 5 Sep 2022 11:59:11 +0000 (17:29 +0530)]
mgr/dashboard: fix snapshot creation with duplicate name

Snapshot creation with same name on UI throwing 500 Internal Error, This PR intends to fix this issue.

Fixes: https://tracker.ceph.com/issues/57456
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit 2ae1bca1d9c7a771be0fa9481bef2622ffd7cc45)

3 years agoMerge pull request #47945 from adk3798/wip-57425-quincy
Adam King [Sun, 11 Sep 2022 21:55:52 +0000 (17:55 -0400)]
Merge pull request #47945 from adk3798/wip-57425-quincy

quincy: cephadm: Fix disk size calculation

Reviewed-by: Guillaume Abrioux <gabrioux@redhat.com>
3 years agoMerge pull request #48019 from rzarzynski/wip-doc-dups-trimming-relnotes-quincy
Neha Ojha [Fri, 9 Sep 2022 22:43:38 +0000 (15:43 -0700)]
Merge pull request #48019 from rzarzynski/wip-doc-dups-trimming-relnotes-quincy

quincy: PendingReleaseNotes: document online and offline trimming of PG Log's…

Reviewed-By: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #47930 from rzarzynski/wip-56723-quincy
Laura Flores [Fri, 9 Sep 2022 21:26:50 +0000 (16:26 -0500)]
Merge pull request #47930 from rzarzynski/wip-56723-quincy

quincy: msg: fix deadlock when handling existing but closed v2 connection

3 years agoMerge pull request #47929 from rzarzynski/wip-56655-quincy
Laura Flores [Fri, 9 Sep 2022 21:18:11 +0000 (16:18 -0500)]
Merge pull request #47929 from rzarzynski/wip-56655-quincy

quincy: osd: return ENOENT if pool information is invalid during tier-flush

3 years agoMerge pull request #48013 from mchangir/wip-56541-quincy
Yuri Weinstein [Fri, 9 Sep 2022 20:46:25 +0000 (13:46 -0700)]
Merge pull request #48013 from mchangir/wip-56541-quincy

quincy: mgr/snap_schedule: Use rados.Ioctx.remove_object() instead of remove().

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #47971 from vshankar/tr-55930
Yuri Weinstein [Fri, 9 Sep 2022 20:45:38 +0000 (13:45 -0700)]
Merge pull request #47971 from vshankar/tr-55930

quincy: client: allow overwrites to file with size greater than the max_file_size

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #48016 from idryomov/wip-ntstatus-quincy
Yuri Weinstein [Fri, 9 Sep 2022 18:53:28 +0000 (11:53 -0700)]
Merge pull request #48016 from idryomov/wip-ntstatus-quincy

quincy: common/win32,dokan: include bcrypt.h for NTSTATUS

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
3 years agoMerge pull request #47931 from rzarzynski/wip-57257-quincy
Yuri Weinstein [Fri, 9 Sep 2022 18:50:40 +0000 (11:50 -0700)]
Merge pull request #47931 from rzarzynski/wip-57257-quincy

quincy:  msg: reset ProtocolV2's frame assembler in appropriate thread

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
3 years agoMerge pull request #47977 from neesingh-rh/wip-57440-quincy
Yuri Weinstein [Fri, 9 Sep 2022 13:33:45 +0000 (06:33 -0700)]
Merge pull request #47977 from neesingh-rh/wip-57440-quincy

quincy: cephfs-top: display average read/write/metadata latency

Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #47658 from adk3798/wip-57149-quincy
Adam King [Fri, 9 Sep 2022 13:28:26 +0000 (09:28 -0400)]
Merge pull request #47658 from adk3798/wip-57149-quincy

quincy: mgr/cephadm: set dashboard grafana-api-password when user provides one

Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agomonitoring/ceph-mixin: add RGW host to label info 48034/head
Tatjana Dehler [Fri, 19 Aug 2022 10:08:17 +0000 (12:08 +0200)]
monitoring/ceph-mixin: add RGW host to label info

Add the missing information about the RGW instance to the labels of the
"Average GET/PUT Latencies" panel on the "RGW Overview" dashboard.

Fixes: https://tracker.ceph.com/issues/57166
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
(cherry picked from commit 15fa97d49d28aebdd57a2eb9276865c4513e0cb2)

3 years agomonitoring/ceph-mixin: add entries to envlist
Tatjana Dehler [Thu, 18 Aug 2022 11:31:47 +0000 (13:31 +0200)]
monitoring/ceph-mixin: add entries to envlist

Add the missing entries `jsonnet-bundler-install` and
`jsonnet-bundler-update` to envlist.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
(cherry picked from commit 42ff9370a02b8685e737e958df39f8c3c26a519b)

3 years agoMerge pull request #48025 from rhcs-dashboard/wip-57484-quincy
Nizamudeen A [Fri, 9 Sep 2022 11:26:55 +0000 (16:56 +0530)]
Merge pull request #48025 from rhcs-dashboard/wip-57484-quincy

quincy: mgr/dashboard: fix unmanaged service creation

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
3 years agoMerge pull request #48023 from idryomov/wip-57116-cont-quincy
Ilya Dryomov [Fri, 9 Sep 2022 06:37:55 +0000 (08:37 +0200)]
Merge pull request #48023 from idryomov/wip-57116-cont-quincy

quincy: test/{librbd, rgw}: increase delay between and number of bind attempts

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agomgr/dashboard: fix unmanaged snmp service creation 48025/head
Nizamudeen A [Wed, 24 Aug 2022 10:16:54 +0000 (15:46 +0530)]
mgr/dashboard: fix unmanaged snmp service creation

Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit a35651ee8586133fa666de189b9d324c0846c3ca)

3 years agomgr/dashboard: fix unmanged iscsi service creation
Nizamudeen A [Wed, 24 Aug 2022 10:16:10 +0000 (15:46 +0530)]
mgr/dashboard: fix unmanged iscsi service creation

Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 7d157fe48e21945ef51e21f206639f9abfa44fa5)

3 years agomgr/dashboard: fix unable to create ingress unmanaged
Nizamudeen A [Wed, 24 Aug 2022 07:47:50 +0000 (13:17 +0530)]
mgr/dashboard: fix unable to create ingress unmanaged

the following snipped is the error from backend

```
 File "/lib/python3.6/site-packages/ceph/deployment/service_spec.py", line 698, in _from_json_impl
                                                  _cls.validate()
                                                File "/lib/python3.6/site-packages/ceph/deployment/service_spec.py", line 1058, in validate
                                                  'Cannot add ingress: No frontend_port specified')
                                              ceph.deployment.hostspec.SpecValidationError: Cannot add ingress: No frontend_port specified
```

It looks like even if we set unmanaged flag, we need to input the
backend_service, frontend_port, monitor_port and virtual_ip, because there is a
validation going for that in the backend.

https://github.com/ceph/ceph/blob/main/src/python-common/ceph/deployment/service_spec.py#L1050

Fixes: https://tracker.ceph.com/issues/57284
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit ea68560e148cf46dd69982120605519aba3a8955)

3 years agoMerge pull request #47961 from rhcs-dashboard/wip-57436-quincy
Nizamudeen A [Fri, 9 Sep 2022 04:41:23 +0000 (10:11 +0530)]
Merge pull request #47961 from rhcs-dashboard/wip-57436-quincy

quincy: mgr/dashboard: fix nfs exports form issues with squash field

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
3 years agotest/{librbd, rgw}: increase delay between and number of bind attempts 48023/head
Ilya Dryomov [Thu, 8 Sep 2022 09:36:34 +0000 (11:36 +0200)]
test/{librbd, rgw}: increase delay between and number of bind attempts

Commit aa7885f7cc41 ("test/{librbd, rgw}: retry when bind fail with
port 0") reduced the frequency of sporadic unit test failures caused
by EADDRINUSE a lot, but not entirely.

Currently, it yields a cumulative sleep of ~9 seconds.  Let's increase
that to 1 minute.

Fixes: https://tracker.ceph.com/issues/57116
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 48016eaa1511ac8a39ed33084e0e230f3b1b5821)

3 years agoinclude: fix IS_ERR on Windows 48016/head
Lucian Petrut [Fri, 26 Aug 2022 12:54:10 +0000 (12:54 +0000)]
include: fix IS_ERR on Windows

The "long" type uses 32b on x64 Windows platforms, which means
it's not large enough to store a pointer. intptr_t or uintptr_t
should be used instead.

This change fixes include/err.h, using the right types. There was
a previous patch on this topic but unfortunately it didn't address
all the type casts.

This issue was brought up by the unittest_crush test, which recently
started to fail as the CrushWrapper methods use IS_ERR.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
(cherry picked from commit c95b6b6c774da05e989cd09e23eee1eeaa9e6ec2)

3 years agoMerge pull request #47942 from adk3798/wip-57375-quincy
Adam King [Thu, 8 Sep 2022 17:02:47 +0000 (13:02 -0400)]
Merge pull request #47942 from adk3798/wip-57375-quincy

quincy: mgr/dashboard: enable addition of custom Prometheus alerts

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
3 years agoMerge pull request #47932 from rzarzynski/wip-57209-quincy
Yuri Weinstein [Thu, 8 Sep 2022 16:38:00 +0000 (09:38 -0700)]
Merge pull request #47932 from rzarzynski/wip-57209-quincy

quincy: test/lazy-omap-stats: Various enhancements

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
3 years agoMerge pull request #47536 from guits/wip-57089-quincy
Adam King [Thu, 8 Sep 2022 16:24:43 +0000 (12:24 -0400)]
Merge pull request #47536 from guits/wip-57089-quincy

quincy: ceph-volume: system.get_mounts() refactor

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #47608 from adk3798/quincy-incorrect-warning
Adam King [Thu, 8 Sep 2022 16:24:03 +0000 (12:24 -0400)]
Merge pull request #47608 from adk3798/quincy-incorrect-warning

quincy: cephadm: fix incorrect warning

Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agoMerge pull request #47610 from adk3798/quincy-multiple-vips
Adam King [Thu, 8 Sep 2022 16:23:27 +0000 (12:23 -0400)]
Merge pull request #47610 from adk3798/quincy-multiple-vips

quincy: Cephadm: Allow multiple virtual IP addresses for keepalived and haproxy

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
3 years agoMerge pull request #47626 from guits/wip-57132-quincy
Adam King [Thu, 8 Sep 2022 16:22:16 +0000 (12:22 -0400)]
Merge pull request #47626 from guits/wip-57132-quincy

quincy: cephadm/ceph-volume: fix rm-cluster --zap

Reviewed-by: Adam King <adking@redhat.com>
3 years agoMerge pull request #47654 from adk3798/quincy-dup-args-loki-promtail
Adam King [Thu, 8 Sep 2022 16:21:26 +0000 (12:21 -0400)]
Merge pull request #47654 from adk3798/quincy-dup-args-loki-promtail

quincy: cephadm: Remove duplicated process args in promtail and loki

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47656 from adk3798/wip-57168-quincy
Adam King [Thu, 8 Sep 2022 16:20:22 +0000 (12:20 -0400)]
Merge pull request #47656 from adk3798/wip-57168-quincy

quincy: cephadm: support for Oracle Linux 8

Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agoMerge pull request #47657 from adk3798/wip-57151-quincy
Adam King [Thu, 8 Sep 2022 16:19:43 +0000 (12:19 -0400)]
Merge pull request #47657 from adk3798/wip-57151-quincy

quincy: mgr/cephadm: fix handling of draining hosts with explicit placement specs

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47659 from adk3798/wip-57102-quincy
Adam King [Thu, 8 Sep 2022 16:18:14 +0000 (12:18 -0400)]
Merge pull request #47659 from adk3798/wip-57102-quincy

quincy: mgr/cephadm: recreate osd config when redeploy/reconfiguring

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47944 from adk3798/wip-57426-quincy
Adam King [Thu, 8 Sep 2022 16:16:21 +0000 (12:16 -0400)]
Merge pull request #47944 from adk3798/wip-57426-quincy

quincy: cephadm/mgr: adding logic to handle --no-overwrite for tuned profiles

Reviewed-by: Anthony D'Atri <anthonyeleven@users.noreply.github.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47946 from adk3798/wip-57423-quincy
Adam King [Thu, 8 Sep 2022 16:14:20 +0000 (12:14 -0400)]
Merge pull request #47946 from adk3798/wip-57423-quincy

quincy: mgr/cephadm: Fix how we check if a host belongs to public network

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47950 from adk3798/wip-57383-quincy
Adam King [Thu, 8 Sep 2022 16:13:04 +0000 (12:13 -0400)]
Merge pull request #47950 from adk3798/wip-57383-quincy

quincy: mgr/cephadm: Adding logic to store grafana cert/key per node

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47951 from adk3798/wip-57382-quincy
Adam King [Thu, 8 Sep 2022 16:12:21 +0000 (12:12 -0400)]
Merge pull request #47951 from adk3798/wip-57382-quincy

quincy: mgr/cephadm: allow binding to loopback for rgw daemons

Reviewed-by: Redouane Kachach <rkachach@redhat.com>
3 years agoMerge pull request #47952 from adk3798/wip-57378-quincy
Adam King [Thu, 8 Sep 2022 16:11:40 +0000 (12:11 -0400)]
Merge pull request #47952 from adk3798/wip-57378-quincy

quincy: cephadm: return nonzero exit code when applying spec fails in bootstrap

Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agoMerge pull request #47953 from adk3798/wip-57377-quincy
Adam King [Thu, 8 Sep 2022 16:11:02 +0000 (12:11 -0400)]
Merge pull request #47953 from adk3798/wip-57377-quincy

quincy: mgr/cephadm: don't try to write client/os tuning profiles to known offline hosts

Reviewed-by: John Mulligan <jmulligan@redhat.com>
3 years agodokan: cast variable to the expected type before comparison
Kefu Chai [Fri, 5 Aug 2022 00:17:45 +0000 (08:17 +0800)]
dokan: cast variable to the expected type before comparison

to fix the FTBFS due to following warning:

```
/home/jenkins-build/build/workspace/ceph-windows-pull-requests/ceph/build.deps/src/dokany/dokan/dokan.h:723:22: error: narrowing conversion of '-1' from 'int' to 'long unsigned int' [-Wnarrowing]
  723 | #define DOKAN_ERROR -1
      |                      ^
```

also, clean up the following warning:

```
/home/jenkins-build/build/workspace/ceph-windows-pull-requests/ceph/src/dokan/dbg.cc:142:62: warning: NULL used in arithmetic [-Wpointer-arith]
  142 |   o << "\n\tIsDirectory: " << (DokanFileInfo->IsDirectory != NULL);
      |
```

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit f27e16ff9494e1d1f36324b64fb24a16fcf929b3)

3 years agoPendingReleaseNotes: document online and offline trimming of PG Log's dups 48019/head
Radoslaw Zarzynski [Tue, 23 Aug 2022 19:50:48 +0000 (19:50 +0000)]
PendingReleaseNotes: document online and offline trimming of PG Log's dups

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
(cherry picked from commit dbfb50453c2f7fe5b0a06d846dd38693cceb63fe)

Conflicts:
    PendingReleaseNotes
- Moved the note under ">=17.2.4" section

3 years agoMerge pull request #48004 from sseshasa/wip-57461-quincy
Neha Ojha [Thu, 8 Sep 2022 15:26:21 +0000 (08:26 -0700)]
Merge pull request #48004 from sseshasa/wip-57461-quincy

quincy: PendingReleaseNotes: Note the fix for high CPU utilization during recovery

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agowin32_deps_build.sh: bump curl to curl-7_84_0
Kefu Chai [Thu, 4 Aug 2022 15:06:04 +0000 (23:06 +0800)]
win32_deps_build.sh: bump curl to curl-7_84_0

to silence warnings like:

```
configure.ac:3671: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:3671: You should run autoupdate.
```

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 6b43df3c58fd15501988b7cfbe411fb42f223689)

3 years agoMerge pull request #47894 from kotreshhr/wip-57242-quincy
Yuri Weinstein [Thu, 8 Sep 2022 14:25:26 +0000 (07:25 -0700)]
Merge pull request #47894 from kotreshhr/wip-57242-quincy

quincy: mgr/volumes: Few mgr volumes backports

Reviewed-by: Venky Shankar <vshankar@redhat.com>
3 years agoMerge pull request #47996 from idryomov/wip-52810-quincy
Yuri Weinstein [Thu, 8 Sep 2022 13:53:08 +0000 (06:53 -0700)]
Merge pull request #47996 from idryomov/wip-52810-quincy

quincy: librbd: retry ENOENT in V2_REFRESH_PARENT as well

Reviewed-by: Christopher Hoffman <choffman@redhat.com>
3 years agotest/encoding: refactor EncodingException::Macros
Kefu Chai [Fri, 22 Jul 2022 13:08:41 +0000 (21:08 +0800)]
test/encoding: refactor EncodingException::Macros

so it is more compacted

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit b3151a9c373b472c7e88080205fc256a1304fe9d)

3 years agotest/encoding: verify that e.what() starts with expected str
Kefu Chai [Fri, 22 Jul 2022 12:54:43 +0000 (20:54 +0800)]
test/encoding: verify that e.what() starts with expected str

boost changes the way how it prints boost::system::system_error in
boost 1.79 -- it appends the stringified error_category at end of
exception::what(), and our buffer::malformed_input is a subclass
of boost::system::system_error.

so we cannot just compare the return value of what() with the
expected string, to be more future proof, let's check if i
starts with the expected string instead.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 0d9eec3c4feff30ab55601533bccf9ba6e568b9f)

3 years agocommon/win32,dokan: include bcrypt.h for NTSTATUS
Kefu Chai [Thu, 21 Jul 2022 23:28:37 +0000 (07:28 +0800)]
common/win32,dokan: include bcrypt.h for NTSTATUS

to avoid the conflicting declaration of NTSTATUS from bcrypt.h and our
own typedef. as after switching to boost 1.79, we would have following compiling
failure:

In file included from ../src/dokan/options.cc:14:
../src/dokan/ceph_dokan.h:16:15: error: conflicting declaration 'typedef DWORD NTSTATUS'
   16 | typedef DWORD NTSTATUS;
      |               ^~~~~~~~
In file included from ../build.deps/mingw/boost/include/boost/asio/impl/connect_pipe.ipp:29,
                 from ../build.deps/mingw/boost/include/boost/asio/connect_pipe.hpp:79,
                 from ../build.deps/mingw/boost/include/boost/asio.hpp:64,
                 from ../src/include/win32/winsock_wrapper.h:20,
                 from <command-line>:
/usr/share/mingw-w64/include/bcrypt.h:27:16: note: previous declaration as 'typedef LONG NTSTATUS'
   27 |   typedef LONG NTSTATUS,*PNTSTATUS;
      |                ^~~~~~~~

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 1a09e520bf26f61cb048d9d3d3876f284af64b04)

3 years agomgr/snap_schedule: Use rados.Ioctx.remove_object() instead of remove(). 48013/head
Andreas Teuchert [Thu, 7 Jul 2022 12:55:59 +0000 (12:55 +0000)]
mgr/snap_schedule: Use rados.Ioctx.remove_object() instead of remove().

This fixes the "AttributeError: 'rados.Ioctx' object has no attribute
'remove'" error.

Signed-off-by: Andreas Teuchert <a.teuchert@syseleven.de>
(cherry picked from commit bb958f18af615377852d1579da936ea6c62d6056)

3 years agoPendingReleaseNotes: Note the fix for high CPU utilization during recovery 48004/head
Sridhar Seshasayee [Tue, 16 Aug 2022 11:45:29 +0000 (17:15 +0530)]
PendingReleaseNotes: Note the fix for high CPU utilization during recovery

Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
(cherry picked from commit d6982022325a17dbe91e760530ab21832459a817)

Conflicts:
    PendingReleaseNotes
- Moved the note under ">=17.2.4" section

3 years agoMerge pull request #47993 from soumyakoduri/wip-skoduri-quincy
Yuri Weinstein [Wed, 7 Sep 2022 21:01:26 +0000 (14:01 -0700)]
Merge pull request #47993 from soumyakoduri/wip-skoduri-quincy

rgw/backport/quincy: Fix crashes with Sync policy APIs

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #46005 from rzarzynski/wip-common-no-cpp17-second_round-quincy
Yuri Weinstein [Wed, 7 Sep 2022 15:00:54 +0000 (08:00 -0700)]
Merge pull request #46005 from rzarzynski/wip-common-no-cpp17-second_round-quincy

quincy: common/bl: fix FTBFS on C++11 due to C++17's if-with-initializer

Reviewed-by: Kefu Chai <kchai@redhat.com>
3 years agoMerge pull request #47901 from amathuria/wip-56736-quincy
Yuri Weinstein [Wed, 7 Sep 2022 14:57:41 +0000 (07:57 -0700)]
Merge pull request #47901 from amathuria/wip-56736-quincy

quincy: osd/PeeringState: fix missed recheck_readable from laggy

Reviewed-by: Neha Ojha <nojha@redhat.com>
3 years agoMerge pull request #45892 from nkshirsagar/wip-55297-quincy
Yuri Weinstein [Wed, 7 Sep 2022 14:55:32 +0000 (07:55 -0700)]
Merge pull request #45892 from nkshirsagar/wip-55297-quincy

quincy: Catch exception if thrown by __generate_command_map()

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
3 years agoMerge pull request #46559 from pdvian/wip-55305-quincy
Yuri Weinstein [Tue, 6 Sep 2022 20:41:58 +0000 (13:41 -0700)]
Merge pull request #46559 from pdvian/wip-55305-quincy

quincy: mgr, mon: Keep upto date metadata with mgr for MONs

Reviewed-by: Laura Flores <lflores@redhat.com>
3 years agolibrbd: make RefreshRequest tests compatible with clone v1 47996/head
Ilya Dryomov [Sun, 4 Sep 2022 17:14:04 +0000 (19:14 +0200)]
librbd: make RefreshRequest tests compatible with clone v1

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

3 years agolibrbd: retry ENOENT in V2_REFRESH_PARENT as well
Ilya Dryomov [Sun, 4 Sep 2022 15:52:51 +0000 (17:52 +0200)]
librbd: retry ENOENT in V2_REFRESH_PARENT as well

With auto-deletion of trashed snapshots, it is relatively easy to lose
a race to "rbd flatten" as follows:

- when V2_GET_PARENT runs, the image is technically still a clone
- when V2_REFRESH_PARENT runs, the image is fully flattened and the
  snapshot in the parent image is deleted

This results in a spurious ENOENT error, mainly when trying to open the
image (e.g. for "rbd info").  This race condition has always been there
but auto-deletion of trashed snapshots makes it much worse.

Retry ENOENT in V2_REFRESH_PARENT the same way as in V2_GET_SNAPSHOTS.

Fixes: https://tracker.ceph.com/issues/52810
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit bd885d75b2e4d728086f744e0d10e7cd12d3f15b)

3 years agolibrbd: limit the number of ENOENT retries in RefreshRequest
Ilya Dryomov [Sun, 4 Sep 2022 10:40:36 +0000 (12:40 +0200)]
librbd: limit the number of ENOENT retries in RefreshRequest

If the image header is corrupt, ENOENT error may be persistent.  Avoid
an infinite loop in that case.

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

3 years agolibrbd: fix a bunch of issues with restarting RefreshRequest
Ilya Dryomov [Fri, 2 Sep 2022 14:58:36 +0000 (16:58 +0200)]
librbd: fix a bunch of issues with restarting RefreshRequest

Make RefreshRequest properly restartable, at least up until and including
V2_REFRESH_PARENT step:

- clear m_migration_spec when skipping GET_MIGRATION_HEADER
- don't rely on potentially stale m_incomplete_update on retry
- reset m_legacy_parent when retrying more than just V2_GET_PARENT
- don't rely on potentially stale m_parent_md.overlap and
  m_head_parent_overlap on retry
- clear m_metadata before fetching image metadata (but not before
  fetching pool metadata)
- clear m_op_features when skipping V2_GET_OP_FEATURES
- clear m_group_spec on EOPNOTSUPP error in V2_GET_GROUP
- reset m_legacy_snapshot when retrying more than just V2_GET_SNAPSHOTS
- don't rely on potentially stale m_snap_parents on retry

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

3 years agolibrbd: check *result consistently in RefreshRequest
Ilya Dryomov [Tue, 30 Aug 2022 19:33:04 +0000 (21:33 +0200)]
librbd: check *result consistently in RefreshRequest

Stick to *result >= 0 checks everywhere and add missing checks for
op_features_get_finish() and image_group_get_finish() errors.

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

3 years agolibrbd: reflect V2_GET_SNAPSHOTS ENOENT retry in state diagram
Ilya Dryomov [Tue, 30 Aug 2022 18:38:10 +0000 (20:38 +0200)]
librbd: reflect V2_GET_SNAPSHOTS ENOENT retry in state diagram

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

3 years agoradosgw-admin: fix crash with 'sync flow create/remove' cmd 47993/head
Soumya Koduri [Wed, 24 Aug 2022 05:38:38 +0000 (11:08 +0530)]
radosgw-admin: fix crash with 'sync flow create/remove' cmd

Avoid dereferencing an empty optional "flow-type" (if not specified).

Fixes: https://tracker.ceph.com/issues/57275
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit 539c5b87a2965ce43002430790abd586b98f620d)

3 years agorgw: Avoid dereferencing nullptr while configuring bucket sync policy
Soumya Koduri [Thu, 26 May 2022 16:55:06 +0000 (22:25 +0530)]
rgw: Avoid dereferencing nullptr while configuring bucket sync policy

While configuring bucket sync policy, in "rgw_sync_bucket_entities::set_bucket()",
there could be a case where in bucket doesnt contain any value but is still being
dereferenced. This commit fixes the same.

Signed-off-by: Soumya Koduri <skoduri@redhat.com>
(cherry picked from commit 86cf8275224536a7ca77eaf8a6e59951b3f25261)

3 years agoMerge pull request #47940 from idryomov/wip-56703-quincy
Yuri Weinstein [Tue, 6 Sep 2022 16:07:09 +0000 (09:07 -0700)]
Merge pull request #47940 from idryomov/wip-56703-quincy

quincy: librbd/cache/pwl: narrow the scope of m_lock in write_image_cache_state()

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
3 years agoMerge pull request #47235 from cfsnyder/wip-55714-quincy
Yuri Weinstein [Tue, 6 Sep 2022 15:09:10 +0000 (08:09 -0700)]
Merge pull request #47235 from cfsnyder/wip-55714-quincy

quincy: rgw_rest_user_policy: Fix GetUserPolicy & ListUserPolicies responses

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #46107 from BenoitKnecht/wip-55499-quincy
Yuri Weinstein [Tue, 6 Sep 2022 15:08:36 +0000 (08:08 -0700)]
Merge pull request #46107 from BenoitKnecht/wip-55499-quincy

quincy: rgw: Avoid segfault when OPA authz is enabled

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #45714 from cbodley/wip-55136
Yuri Weinstein [Tue, 6 Sep 2022 15:07:45 +0000 (08:07 -0700)]
Merge pull request #45714 from cbodley/wip-55136

quincy: rgw: data sync uses yield_spawn_window()

Reviewed-by: Casey Bodley <cbodley@redhat.com>
3 years agoMerge pull request #47980 from tchaikov/quincy-pr-47962
Ilya Dryomov [Tue, 6 Sep 2022 09:21:54 +0000 (11:21 +0200)]
Merge pull request #47980 from tchaikov/quincy-pr-47962

quincy: test/{librbd, rgw}: retry when bind fail with port 0

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
3 years agoceph-volume: add a retry in util.disk.remove_partition 47989/head
Guillaume Abrioux [Tue, 16 Aug 2022 12:13:41 +0000 (14:13 +0200)]
ceph-volume: add a retry in util.disk.remove_partition

This fixes a possible race condition when zapping a device.
Due to some udev events, that race condition makes the key
`ID_PART_ENTRY_NUMBER` show up too late.

The idea here is to retry multiple times before actually failing.

Fixes: https://tracker.ceph.com/issues/57144
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 3fedce6c34fb3acfa57b5a028cb750041ee8fbd6)

3 years agotest/{librbd, rgw}: retry when bind fail with port 0 47980/head
Kefu Chai [Sun, 4 Sep 2022 12:37:32 +0000 (20:37 +0800)]
test/{librbd, rgw}: retry when bind fail with port 0

there is chance that the bind() call may fail if we have another test
happen to pick the free port picked by operating system. in this case,
we just retry up to 42 times.

in theory, this change does not fully address the racing, but it should
help to alleviate this issue.

See-also: https://tracker.ceph.com/issues/57116
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit aa7885f7cc41390fcc8eeb82bc7142c3ff6a53f9)

3 years agodoc/mgr: add a tutorial-esque section on object_format python module 47979/head
John Mulligan [Wed, 20 Jul 2022 20:33:20 +0000 (16:33 -0400)]
doc/mgr: add a tutorial-esque section on object_format python module

It doesn't cover everything but should get most use cases started.

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

3 years agodoc/mgr: fix quoting error in python example
John Mulligan [Wed, 20 Jul 2022 17:14:29 +0000 (13:14 -0400)]
doc/mgr: fix quoting error in python example

Found by vim syntax highlighting. Thanks vim!

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

3 years agodoc/mgr: use subsections for two approaches to exposing commands
John Mulligan [Wed, 20 Jul 2022 15:52:17 +0000 (11:52 -0400)]
doc/mgr: use subsections for two approaches to exposing commands

This makes the content for each approach clearer and prepares
for a future sub-section.

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

3 years agopybind/mgr: improve behavior of ErrorResponse.wrap method
John Mulligan [Fri, 19 Aug 2022 15:39:44 +0000 (11:39 -0400)]
pybind/mgr: improve behavior of ErrorResponse.wrap method

The wrap classmethod is intended to turn any exception into something
that can produce a manager response. All exceptions inheriting from
ErrorResponseBase can do that, so instead of losing all that state,
have wrap return those exceptions inheriting from ErrorResponseBase
as-is.

Additionally, only change the sign of errno values that aren't already
negative.

Adds tests for these cases.

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

3 years agopybind/mgr: extend return types valid for Responder wrapped functions
John Mulligan [Fri, 6 May 2022 17:48:47 +0000 (13:48 -0400)]
pybind/mgr: extend return types valid for Responder wrapped functions

One wonders why this wasn't found by the test code, but oh well.

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

3 years agopybind/mgr: fix incorrect construction of mgr CLI arguments
John Mulligan [Mon, 15 Aug 2022 18:47:47 +0000 (14:47 -0400)]
pybind/mgr: fix incorrect construction of mgr CLI arguments

Instead of adding the extra_args correctly the code was "adding" the
"--format" option with the wrong name - using whatever the last argument
name in the actual arguments of the decorated function.

Updated tests to verify that the format option is added to the "ceph
args" string properly.

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

3 years agopybind/mgr: add test cases for EmptyResponder decorator
John Mulligan [Mon, 23 May 2022 19:47:49 +0000 (15:47 -0400)]
pybind/mgr: add test cases for EmptyResponder decorator

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