ipmi_adapter: add delay to stabilize command action 57/15757/1
authorJosep Puigdemont <josep.puigdemont@enea.com>
Thu, 16 Jun 2016 14:30:31 +0000 (16:30 +0200)
committerJosep Puigdemont <josep.puigdemont@enea.com>
Thu, 16 Jun 2016 14:30:31 +0000 (16:30 +0200)
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>
deploy/dha_adapters/ipmi_adapter.py

index 6ce4012..a4ad1af 100644 (file)
@@ -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: