From: Narinder Gupta Date: Thu, 18 Aug 2016 19:29:51 +0000 (-0500) Subject: modfiied to support att pod. Also change the IMAGE_UUID to capture X-Git-Tag: colorado.1.0~25 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F18987%2F1;p=joid.git modfiied to support att pod. Also change the IMAGE_UUID to capture correct image. Change-Id: I24db2273b9a2ff4ad5fd93c597372e62af3526b9 Signed-off-by: Narinder Gupta --- diff --git a/ci/config_tpl/maas_tpl/maas-nodes.yaml b/ci/config_tpl/maas_tpl/maas-nodes.yaml index dc341851..e32dd7ca 100644 --- a/ci/config_tpl/maas_tpl/maas-nodes.yaml +++ b/ci/config_tpl/maas_tpl/maas-nodes.yaml @@ -21,7 +21,7 @@ type: ipmi user: {{ node.power.user }} {% elif node.power.type=='wakeonlan' %} - type: etherwake + type: ether_wake mac_address: {{ node.power.mac_address }} {% endif %} tags: {{ ' '.join(node.roles) }} 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