From df90b43521e00df71e549564532c094c69051d63 Mon Sep 17 00:00:00 2001 From: Josep Puigdemont Date: Thu, 16 Jun 2016 16:30:31 +0200 Subject: 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 --- deploy/dha_adapters/ipmi_adapter.py | 1 + 1 file changed, 1 insertion(+) (limited to 'deploy/dha_adapters') 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: -- cgit 1.2.3-korg