init-runonce - set image distro to "linux"

Currently we omit the os_distro property when uploading the
cirros image to glance.  Nova assumes it to need vfat disk
incase the image is Windows.

This change sets the property to "linux" causing ext4 to be
used instead.

TrivialFix

Change-Id: I3fdb71f5be7702a2dc223946fae82131c6c46154
Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
This commit is contained in:
Dave Walker (Daviey) 2017-03-13 10:47:30 +00:00 committed by Dave Walker
parent c0df4ab8b6
commit 11f9ba6547

View File

@ -8,6 +8,7 @@
IMAGE_URL=http://download.cirros-cloud.net/0.3.4/ IMAGE_URL=http://download.cirros-cloud.net/0.3.4/
IMAGE=cirros-0.3.4-x86_64-disk.img IMAGE=cirros-0.3.4-x86_64-disk.img
IMAGE_NAME=cirros IMAGE_NAME=cirros
IMAGE_TYPE=linux
EXT_NET_CIDR='10.0.2.0/24' EXT_NET_CIDR='10.0.2.0/24'
EXT_NET_RANGE='start=10.0.2.150,end=10.0.2.199' EXT_NET_RANGE='start=10.0.2.150,end=10.0.2.199'
EXT_NET_GATEWAY='10.0.2.1' EXT_NET_GATEWAY='10.0.2.1'
@ -50,7 +51,7 @@ if ! [ -f "${IMAGE}" ]; then
fi fi
echo Creating glance image. echo Creating glance image.
openstack image create --disk-format qcow2 --container-format bare --public \ openstack image create --disk-format qcow2 --container-format bare --public \
--file ./${IMAGE} ${IMAGE_NAME} --property os_type=${IMAGE_TYPE} --file ./${IMAGE} ${IMAGE_NAME}
echo Configuring neutron. echo Configuring neutron.
openstack network create --external --provider-physical-network physnet1 \ openstack network create --external --provider-physical-network physnet1 \