Skip to content

Commit

Permalink
fix: make M&R non blocking when moving back to default cloud
Browse files Browse the repository at this point in the history
Change-Id: I53b0e7daeb2bb77de92234e3ded0119c3e200bf1
  • Loading branch information
grafuls committed Apr 21, 2023
1 parent 0715946 commit 2c1ab22
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions quads/tools/move_and_rebuild_hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,13 +310,12 @@ async def move_and_rebuild(host, new_cloud, semaphore, rebuild=False, loop=None)
Config["ipmi_password"],
propagate=True,
)
await badfish.set_power_state("off")
except BadfishException:
logger.error(
logger.warning(
f"Could not initialize Badfish. Verify ipmi credentials for mgmt-{host}."
)
return False

await badfish.set_power_state("off")
source_cloud_schedule = Schedule.current_schedule(cloud=_host_obj.cloud)
if not source_cloud_schedule:
_old_cloud_obj = Cloud.objects(name=_host_obj.cloud.name).first()
Expand Down

0 comments on commit 2c1ab22

Please sign in to comment.