diff --git a/charms_ceph/utils.py b/charms_ceph/utils.py index 5e76e6b..e6adcb8 100644 --- a/charms_ceph/utils.py +++ b/charms_ceph/utils.py @@ -1167,7 +1167,10 @@ osd_upgrade_caps = collections.OrderedDict([ ]) rbd_mirror_caps = collections.OrderedDict([ - ('mon', ['profile rbd; allow r']), + ('mon', ['allow profile rbd-mirror-peer', + 'allow command "service dump"', + 'allow command "service status"' + ]), ('osd', ['profile rbd']), ('mgr', ['allow r']), ]) diff --git a/unit_tests/test_utils.py b/unit_tests/test_utils.py index 62df366..06d1ce1 100644 --- a/unit_tests/test_utils.py +++ b/unit_tests/test_utils.py @@ -1099,7 +1099,9 @@ class CephTestCase(unittest.TestCase): _get_named_key.assert_called_once_with( name='someid', caps=collections.OrderedDict([ - ('mon', ['profile rbd; allow r']), + ('mon', ['allow profile rbd-mirror-peer', + 'allow command "service dump"', + 'allow command "service status"']), ('osd', ['profile rbd']), ('mgr', ['allow r']), ])