summaryrefslogtreecommitdiffstats
path: root/deploy
diff options
context:
space:
mode:
authorJosep Puigdemont <josep.puigdemont@enea.com>2016-06-16 16:30:31 +0200
committerJosep Puigdemont <josep.puigdemont@enea.com>2016-06-16 16:30:31 +0200
commitdf90b43521e00df71e549564532c094c69051d63 (patch)
tree3dafd1c25e184687cd83d5f2f3c8958429d55562 /deploy
parent3cddf277c5966c5cc584a493d5923cc5dcdc7820 (diff)
ipmi_adapter: add delay to stabilize command action
We should allow the nodes some time to stabilize after sending a command to them. Currently we are checking the status too fast. Change-Id: I26a60d2bb6a43edbec842b727f825057e2778981 Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Diffstat (limited to 'deploy')
-rw-r--r--deploy/dha_adapters/ipmi_adapter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/deploy/dha_adapters/ipmi_adapter.py b/deploy/dha_adapters/ipmi_adapter.py
index 6ce4012f4..a4ad1af2c 100644
--- a/deploy/dha_adapters/ipmi_adapter.py
+++ b/deploy/dha_adapters/ipmi_adapter.py
@@ -63,6 +63,7 @@ class IpmiAdapter(HardwareAdapter):
attempts = self.attempts
while attempts:
+ time.sleep(self.delay)
state = self.node_get_state(node_id)
attempts -= 1
if state == expected: