build: Rework patch mechanism for Fuel submodules
[armband.git] / patches / opnfv-fuel / 0007-deploy-Fix-add-bootstrap-DEA-override-delay.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Wed, 17 Aug 2016 16:18:26 +0200
3 Subject: [PATCH] deploy: Fix/add bootstrap DEA override delay
4
5 Previous change adding support for DEA to override bootstrap config
6 did not account for slow execution on remote servers, so add a
7 one minute sleep before checking for completition of fuel install.
8
9 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
10 ---
11  deploy/install_fuel_master.py | 4 +++-
12  1 file changed, 3 insertions(+), 1 deletion(-)
13
14 diff --git a/deploy/install_fuel_master.py b/deploy/install_fuel_master.py
15 index 808d0b1..1a7685a 100644
16 --- a/deploy/install_fuel_master.py
17 +++ b/deploy/install_fuel_master.py
18 @@ -196,11 +196,13 @@ class InstallFuelMaster(object):
19                       self.work_dir, os.path.basename(self.dea_file)))
20
21      def wait_until_installation_completed(self):
22 -        WAIT_LOOP = 360
23 +        WAIT_LOOP = 720
24          SLEEP_TIME = 10
25          CMD = 'pgrep -f %s' % BOOTSTRAP_ADMIN
26
27          install_completed = False
28 +        time.sleep(60)
29 +        self.wait_for_node_up()
30          with self.ssh:
31              for i in range(WAIT_LOOP):
32                  ret = self.ssh.exec_cmd(CMD)