From 2c1ab22e59b0854b1b83da86d42ff96939ea6f26 Mon Sep 17 00:00:00 2001 From: Gonza Rafuls Date: Fri, 21 Apr 2023 15:50:37 +0200 Subject: [PATCH] fix: make M&R non blocking when moving back to default cloud Change-Id: I53b0e7daeb2bb77de92234e3ded0119c3e200bf1 --- quads/tools/move_and_rebuild_hosts.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/quads/tools/move_and_rebuild_hosts.py b/quads/tools/move_and_rebuild_hosts.py index 147087d59..4580e481d 100755 --- a/quads/tools/move_and_rebuild_hosts.py +++ b/quads/tools/move_and_rebuild_hosts.py @@ -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()