From 1a66fb4a0154b2f9b0e2fdff76d18bb7302194cc Mon Sep 17 00:00:00 2001 From: Luciano Lo Giudice Date: Fri, 13 Jun 2025 18:11:10 -0300 Subject: [PATCH] Add necessary caps for RBD mirror This PR adds missing caps needed for the RBD mirror charm. Change-Id: Ica8caa97db5d46279ee4f01e8d1a052b0a55a5df Signed-off-by: Luciano Lo Giudice --- charms_ceph/utils.py | 1 + unit_tests/test_utils.py | 1 + 2 files changed, 2 insertions(+) diff --git a/charms_ceph/utils.py b/charms_ceph/utils.py index 85e6249..94cc29d 100644 --- a/charms_ceph/utils.py +++ b/charms_ceph/utils.py @@ -1183,6 +1183,7 @@ osd_upgrade_caps = collections.OrderedDict([ rbd_mirror_caps = collections.OrderedDict([ ('mon', ['allow profile rbd-mirror-peer', + 'allow profile rbd-mirror', 'allow command "service dump"', 'allow command "service status"' ]), diff --git a/unit_tests/test_utils.py b/unit_tests/test_utils.py index 78dd7a1..74df244 100644 --- a/unit_tests/test_utils.py +++ b/unit_tests/test_utils.py @@ -1128,6 +1128,7 @@ class CephTestCase(unittest.TestCase): name='someid', caps=collections.OrderedDict([ ('mon', ['allow profile rbd-mirror-peer', + 'allow profile rbd-mirror', 'allow command "service dump"', 'allow command "service status"']), ('osd', ['profile rbd']),