Skip to content
Snippets Groups Projects
Commit ad2b9019 authored by Vladislav Belogrudov's avatar Vladislav Belogrudov
Browse files

Cinder ansible waits for bootstrap container on all hosts

Bootstrap task runs bootstrap container on one host but
waits for its exit on all machines in inventory. This
gives error about non-existing container id.

Change-Id: Ie06c4da470c2e109d13b029fa674373b255653f3
Closes-Bug: #1487387
parent 9ddd4154
No related branches found
No related tags found
No related merge requests found
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
- name: Waiting for bootstrap container to exit - name: Waiting for bootstrap container to exit
command: docker wait bootstrap_cinder command: docker wait bootstrap_cinder
when: database.stdout.find('localhost | SUCCESS => ') != -1 and (database.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed when: database.stdout.find('localhost | SUCCESS => ') != -1 and (database.stdout.split('localhost | SUCCESS => ')[1]|from_json).changed
run_once: True
- name: Cleaning up Cinder boostrap container - name: Cleaning up Cinder boostrap container
docker: docker:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment