Skip to content

Commit

Permalink
fix: added reboot on badfish fail
Browse files Browse the repository at this point in the history
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
  • Loading branch information
grafuls committed Nov 18, 2019
1 parent 198b5ef commit fce21f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions quads/tools/move_and_rebuild_hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit fce21f2

Please sign in to comment.