2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Break if stuck in loop for over a minute

This commit is contained in:
Jarrod Johnson 2022-05-26 15:01:47 -04:00
parent 3c3d6bb314
commit 9b6114f523

View File

@ -514,8 +514,11 @@ class IpmiHandler(object):
raise exc.TargetEndpointUnreachable(ge.strerror)
raise
self.ipmicmd = persistent_ipmicmds[(node, tenant)]
giveup = util._monotonic_time() + 60
while not self.ipmicmd.ipmi_session.broken and not self.ipmicmd.ipmi_session.logged:
self.ipmicmd.ipmi_session.wait_for_rsp(3)
if util._monotonic_time() > giveup:
self.ipmicmd.ipmi_session.broken = True
bootdevices = {
'optical': 'cd'