summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kraft <george.kraft@calxeda.com>2013-12-10 11:17:44 -0600
committerGeorge Kraft <george.kraft@calxeda.com>2013-12-10 11:17:44 -0600
commit7273e8cd03425cd53d5cbf7d71d1cc0f51fdfaf5 (patch)
tree8fb039b7579f9d758e92e948465fb81c658ad9c7
parent765e1ff993179b7727526713e1d6745635b0ad91 (diff)
downloadcxmanage-7273e8cd03425cd53d5cbf7d71d1cc0f51fdfaf5.tar.gz
CXMAN-268: Do a simple IPMI command in fabric.refresh(wait=True)
Make sure the nodes are responsive.
-rw-r--r--cxmanage_api/fabric.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cxmanage_api/fabric.py b/cxmanage_api/fabric.py
index e86170d..4efe93a 100644
--- a/cxmanage_api/fabric.py
+++ b/cxmanage_api/fabric.py
@@ -242,6 +242,8 @@ class Fabric(object):
try:
self._nodes = get_nodes()
if len(self._nodes) >= initial_node_count:
+ # make sure the nodes respond to an IPMI command
+ self._run_on_all_nodes(False, "get_power")
break
except (IpmiError, TftpException, ParseError):
pass