From 4916fd2a31bd136f62c698c693995c7ea25352b5 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 1 Nov 2021 18:03:00 -0400 Subject: [PATCH] mgr/cephadm: add rotate support for rgw, crash, nfs, rbd-mirror, iscsi Signed-off-by: Sage Weil --- src/pybind/mgr/cephadm/module.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 2c0e7068bd53..e22ed6ede800 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1993,7 +1993,7 @@ Then run the following: self.log.info(f'Rotating authentication key for {daemon_spec.name()}') rc, out, err = self.mon_command({ 'prefix': 'auth get-or-create-pending', - 'entity': daemon_spec.name(), + 'entity': daemon_spec.entity_name(), 'format': 'json', }) j = json.loads(out) @@ -2107,7 +2107,8 @@ Then run the following: f'Unable to schedule redeploy for {daemon_name}: No standby MGRs') if action == 'rotate-key': - if d.daemon_type not in ['mgr', 'osd', 'mds']: + if d.daemon_type not in ['mgr', 'osd', 'mds', + 'rgw', 'crash', 'nfs', 'rbd-mirror', 'iscsi']: raise OrchestratorError( f'key rotation not supported for {d.daemon_type}' ) -- 2.47.3