From 11f9ba6547b0e5cfac1f38a9e12ed5fd58f50777 Mon Sep 17 00:00:00 2001 From: "Dave Walker (Daviey)" Date: Mon, 13 Mar 2017 10:47:30 +0000 Subject: [PATCH] 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) --- tools/init-runonce | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/init-runonce b/tools/init-runonce index 8f134c091b..3756651a94 100755 --- a/tools/init-runonce +++ b/tools/init-runonce @@ -8,6 +8,7 @@ IMAGE_URL=http://download.cirros-cloud.net/0.3.4/ IMAGE=cirros-0.3.4-x86_64-disk.img IMAGE_NAME=cirros +IMAGE_TYPE=linux EXT_NET_CIDR='10.0.2.0/24' EXT_NET_RANGE='start=10.0.2.150,end=10.0.2.199' EXT_NET_GATEWAY='10.0.2.1' @@ -50,7 +51,7 @@ if ! [ -f "${IMAGE}" ]; then fi echo Creating glance image. 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. openstack network create --external --provider-physical-network physnet1 \