deploy: Attempt fixing random deploy timeouts 77/19877/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 30 Aug 2016 10:46:32 +0000 (12:46 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Tue, 30 Aug 2016 10:49:23 +0000 (12:49 +0200)
Most likely, when we configure an additional interface for Fuel
Master, and Network Manager is restarted, our old ssh connection
is timed out and needs to be re-established before checking
for fuel bootstrap process via ssh.exec_cmd.

Change-Id: I44589b2e8190008c8b1035d171cbb50270dfd98c
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
patches/opnfv-fuel/0039-deploy-Fix-add-bootstrap-DEA-override-delay.patch

index f001689..94b3071 100644 (file)
@@ -8,18 +8,19 @@ one minute sleep before checking for completition of fuel install.
 
 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
 ---
- deploy/install_fuel_master.py | +
- 1 file changed, 1 insertion(+)
+ deploy/install_fuel_master.py | 2 ++
+ 1 file changed, 2 insertions(+)
 
 diff --git a/deploy/install_fuel_master.py b/deploy/install_fuel_master.py
-index 808d0b1..609a335 100644
+index 808d0b1..404474c 100644
 --- a/deploy/install_fuel_master.py
 +++ b/deploy/install_fuel_master.py
-@@ -201,6 +201,7 @@ class InstallFuelMaster(object):
+@@ -201,6 +201,8 @@ class InstallFuelMaster(object):
          CMD = 'ps -ef | grep %s | grep -v grep' % BOOTSTRAP_ADMIN
  
          install_completed = False
 +        time.sleep(60)
++        self.wait_for_node_up()
          with self.ssh:
              for i in range(WAIT_LOOP):
                  ret = self.ssh.exec_cmd(CMD)