From 04ba3ccb51dc70e75e5b80eea45bb79b0543e618 Mon Sep 17 00:00:00 2001 From: Vladislav Belogrudov Date: Mon, 24 Aug 2015 13:38:36 +0300 Subject: [PATCH] Wait for bootstrap containers on the same hosts they run Change-Id: Id6a82e6622f712c6fca8205357dec4e5161e46d2 Closes-Bug: #1487387 --- ansible/roles/neutron/tasks/bootstrap.yml | 1 + ansible/roles/nova/tasks/bootstrap.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/ansible/roles/neutron/tasks/bootstrap.yml b/ansible/roles/neutron/tasks/bootstrap.yml index ed53980fcb..f085675a10 100644 --- a/ansible/roles/neutron/tasks/bootstrap.yml +++ b/ansible/roles/neutron/tasks/bootstrap.yml @@ -52,6 +52,7 @@ - name: Waiting for bootstrap container to exit command: docker wait bootstrap_neutron + run_once: True when: database.stdout.find('localhost | SUCCESS => ') != -1 and (database.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed - name: Cleaning up Neutron boostrap container diff --git a/ansible/roles/nova/tasks/bootstrap.yml b/ansible/roles/nova/tasks/bootstrap.yml index 0a65336f1b..18930a0311 100644 --- a/ansible/roles/nova/tasks/bootstrap.yml +++ b/ansible/roles/nova/tasks/bootstrap.yml @@ -51,6 +51,7 @@ # https://github.com/ansible/ansible-modules-core/pull/1031 - name: Waiting for bootstrap container to exit command: docker wait bootstrap_nova + run_once: True when: database.stdout.find('localhost | SUCCESS => ') != -1 and (database.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed - name: Cleaning up Nova boostrap container