diff --git a/src/rookify/modules/migrate_rgws/main.py b/src/rookify/modules/migrate_rgws/main.py index 4ed9835..eb92cb3 100644 --- a/src/rookify/modules/migrate_rgws/main.py +++ b/src/rookify/modules/migrate_rgws/main.py @@ -139,7 +139,11 @@ def _migrate_rgw(self, rgw_host: str) -> None: ) while True: - rgw_daemon_hosts = self._get_rgw_daemon_hosts() + ceph_status = self.ceph.mon_command("status") + + rgw_daemon_hosts = self._get_rgw_daemon_hosts_of_map( + ceph_status["servicemap"]["services"]["rgw"]["daemons"] + ) if rgw_host in rgw_daemon_hosts: break