summaryrefslogtreecommitdiffstats
path: root/juju
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2016-08-18 14:29:51 -0500
committerNarinder Gupta <narinder.gupta@canonical.com>2016-08-18 14:30:35 -0500
commit5a478309e4fd0ce1219f213b5691a1a6266c8eed (patch)
treeb99a3c429ca2664e9b2d2d5d599f1fa597e3bc68 /juju
parent1098848cea7ad32b94d517dbb449f01e65410f76 (diff)
modfiied to support att pod. Also change the IMAGE_UUID to capture
correct image. Change-Id: I24db2273b9a2ff4ad5fd93c597372e62af3526b9 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'juju')
-rwxr-xr-xjuju/configure-juju-on-openstack6
1 files changed, 4 insertions, 2 deletions
diff --git a/juju/configure-juju-on-openstack b/juju/configure-juju-on-openstack
index bd2efd61..3256439b 100755
--- a/juju/configure-juju-on-openstack
+++ b/juju/configure-juju-on-openstack
@@ -40,7 +40,8 @@ fi
#Launch an instance
NET_UUID="$(nova net-list | grep private | awk '{ print $2 }')"
-IMAGE_UUID="$(nova image-list | grep Xenial | awk '{ print $2 }')"
+IMAGE_UUID="$(nova image-list | grep "Xenial x86_64" | awk '{ print $2 }')"
+IMAGE_LXD_UUID="$(nova image-list | grep "Xenial LXC x86_64" | awk '{ print $2 }')"
nova list | grep jumpserver2 ||nova boot --flavor m1.small --key-name default --image $IMAGE_UUID --nic net-id=$NET_UUID --security-group default jumpserver2
# checking jumpserver2 state until active ..
INST_STATE=` nova show jumpserver2 | grep status | awk '{print $4}'`
@@ -107,7 +108,8 @@ $SSH mkdir -p juju-meta
for s in precise trusty xenial win2012r2
do
#Create juju metadata
- IMAGE_UUID="$(nova image-list | grep -i $s | awk '{ print $2 }')"
+ IMAGE_UUID="$(nova image-list | grep -i "$s x86_64" | awk '{ print $2 }')"
+ IMAGE_LXC_UUID="$(nova image-list | grep -i "$s LXC x86_64" | awk '{ print $2 }')"
[ -n "$IMAGE_UUID" ] && $SSH "juju metadata generate-image -a amd64 -u $OS_AUTH_URL -i $IMAGE_UUID -r $OS_REGION_NAME -d juju-meta/ -s $s"
done