Skip to content

Commit

Permalink
Merge branch 'fix/false-positive-daemon-status-in-migrate-rgws-module…
Browse files Browse the repository at this point in the history
…' into fix/98-keyerror-in-migrate-rgws
  • Loading branch information
NotTheEvilOne committed Nov 10, 2024
2 parents 6f3644f + bcdf825 commit 681c729
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/rookify/modules/migrate_rgws/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 681c729

Please sign in to comment.