From fce21f2aff9968198649da6cf7bb60777ec5e509 Mon Sep 17 00:00:00 2001 From: Gonzalo Rafuls Date: Mon, 18 Nov 2019 03:19:34 -0500 Subject: [PATCH] fix: added reboot on badfish fail a host was getting stuck for not being able to clear the job queue via badfish. added reboot on exception for job queue clear up. Change-Id: I44543c55846e62d1c492361162d84646435d35ec --- quads/tools/move_and_rebuild_hosts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/quads/tools/move_and_rebuild_hosts.py b/quads/tools/move_and_rebuild_hosts.py index b98169803..8a6846883 100755 --- a/quads/tools/move_and_rebuild_hosts.py +++ b/quads/tools/move_and_rebuild_hosts.py @@ -230,6 +230,7 @@ async def move_and_rebuild(host, old_cloud, new_cloud, semaphore, rebuild=False, await badfish.reboot_server(graceful=False) except BadfishException: logger.error(f"Error setting PXE boot via Badfish on {host}.") + await badfish.reboot_server(graceful=False) return False else: if is_supermicro(host):