diff options
| author | Vladislav Belogrudov <vladislav.belogrudov@oracle.com> | 2015-08-24 13:38:36 +0300 |
|---|---|---|
| committer | Vladislav Belogrudov <vladislav.belogrudov@oracle.com> | 2015-08-24 13:38:36 +0300 |
| commit | 04ba3ccb51dc70e75e5b80eea45bb79b0543e618 (patch) | |
| tree | 71b9258398c3ea4a8483fa5054995b838dc299b2 | |
| parent | cc0343e305256b7fa0b96604920a1f24b7cd4dca (diff) | |
| download | kolla-04ba3ccb51dc70e75e5b80eea45bb79b0543e618.tar.gz kolla-04ba3ccb51dc70e75e5b80eea45bb79b0543e618.zip | |
Wait for bootstrap containers on the same hosts they run
Change-Id: Id6a82e6622f712c6fca8205357dec4e5161e46d2
Closes-Bug: #1487387
| -rw-r--r-- | ansible/roles/neutron/tasks/bootstrap.yml | 1 | ||||
| -rw-r--r-- | ansible/roles/nova/tasks/bootstrap.yml | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ansible/roles/neutron/tasks/bootstrap.yml b/ansible/roles/neutron/tasks/bootstrap.yml index ed53980fc..f085675a1 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 0a65336f1..18930a031 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 |
