mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +00:00
Break if stuck in loop for over a minute
This commit is contained in:
parent
3c3d6bb314
commit
9b6114f523
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user