diff options
author | George Kraft <george.kraft@calxeda.com> | 2013-04-29 16:33:31 -0500 |
---|---|---|
committer | George Kraft <george.kraft@calxeda.com> | 2013-04-29 16:33:31 -0500 |
commit | b7625d6647649bcef3f58c145d07fb4ffed6aca5 (patch) | |
tree | 84b2fd5905b74b216a45c5e6771c0bc17397a720 | |
parent | 21cafe0de4166a63f575f9d10255ce676cd12fdd (diff) | |
download | cxmanage-b7625d6647649bcef3f58c145d07fb4ffed6aca5.tar.gz |
Node/Fabric: mc_reset: Sleep 60 seconds before pinging a host
Looks like IPMI messages can stagger the reset timing and cause
some of the nodes to never come up. So just be patient instead.
-rw-r--r-- | cxmanage_api/node.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/cxmanage_api/node.py b/cxmanage_api/node.py index c31322d..3353178 100644 --- a/cxmanage_api/node.py +++ b/cxmanage_api/node.py @@ -306,14 +306,7 @@ class Node(object): deadline = time.time() + 300.0 # Wait for it to go down... - while time.time() < deadline: - time.sleep(1) - try: - self.bmc.get_info_basic() - except IpmiError: - break - else: - raise Exception("Reset timed out") + time.sleep(60) # Now wait to come back up! while time.time() < deadline: |