From ad2b9019aed1c72a503c6c9fe6d844d3136a2e20 Mon Sep 17 00:00:00 2001
From: Vladislav Belogrudov <vladislav.belogrudov@oracle.com>
Date: Fri, 21 Aug 2015 12:34:27 +0300
Subject: [PATCH] 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
---
 ansible/roles/cinder/tasks/bootstrap.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ansible/roles/cinder/tasks/bootstrap.yml b/ansible/roles/cinder/tasks/bootstrap.yml
index d0b5ae6fc0..a680423583 100644
--- a/ansible/roles/cinder/tasks/bootstrap.yml
+++ b/ansible/roles/cinder/tasks/bootstrap.yml
@@ -71,6 +71,7 @@
 - name: Waiting for bootstrap container to exit
   command: docker wait bootstrap_cinder
   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
   docker: