From: Adam King Date: Tue, 30 Apr 2024 17:49:16 +0000 (-0400) Subject: mgr/cephadm: clean up iscsi auth keyring when removing daemon X-Git-Tag: v17.2.8~230^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=3c2bb2673128c751f52c3eb481adcf753e34b83a;p=ceph.git mgr/cephadm: clean up iscsi auth keyring when removing daemon The parent class (CephService) handles the cleanup of the auth keyring Fixes: https://tracker.ceph.com/issues/65717 Signed-off-by: Adam King (cherry picked from commit f7e8ee74d5bfb941a5f67d0e03c3845f5cdb1525) --- diff --git a/src/pybind/mgr/cephadm/services/iscsi.py b/src/pybind/mgr/cephadm/services/iscsi.py index 61b157b444ca1..d2773c19d367e 100644 --- a/src/pybind/mgr/cephadm/services/iscsi.py +++ b/src/pybind/mgr/cephadm/services/iscsi.py @@ -160,7 +160,8 @@ class IscsiService(CephService): """ Called after the daemon is removed. """ - logger.debug(f'Post remove daemon {self.TYPE}.{daemon.daemon_id}') + # to clean the keyring up + super().post_remove(daemon, is_failed_deploy=is_failed_deploy) # remove config for dashboard iscsi gateways ret, out, err = self.mgr.mon_command({