From 40a0cb9e0e1bea182a595bfabb094b7ce57d1209 Mon Sep 17 00:00:00 2001
From: "Swapnil Kulkarni (coolsvap)" <me@coolsvap.net>
Date: Thu, 11 Aug 2016 15:04:54 +0530
Subject: [PATCH] Update cirros image visibility in init-runonce

During osic scale testing it is found that the cirros
image added during kolla deployed infra init has private
visibility. This need to be public.

TrivialFix

Change-Id: I39712f0a054f393a8450356e23d41170bc22166e
---
 tools/init-runonce | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/init-runonce b/tools/init-runonce
index 303669f15e..ffd6dd87ec 100755
--- a/tools/init-runonce
+++ b/tools/init-runonce
@@ -42,7 +42,7 @@ if ! [ -f "$IMAGE" ]; then
     curl -L -o ./$IMAGE $IMAGE_URL/$IMAGE
 fi
 echo Creating glance image.
-glance image-create --name cirros --progress --disk-format qcow2 --container-format bare --progress --file ./$IMAGE
+glance image-create --name cirros --progress --disk-format qcow2 --container-format bare --visibility public --progress --file ./$IMAGE
 
 if [[ "${NETWORK_MANAGER}" == "nova" ]] ; then
     echo Configuring nova networking.