Wait for bootstrap containers on the same hosts they run

Change-Id: Id6a82e6622f712c6fca8205357dec4e5161e46d2
Closes-Bug: #1487387
This commit is contained in:
Vladislav Belogrudov 2015-08-24 13:38:36 +03:00
parent cc0343e305
commit 04ba3ccb51
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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