diff options
| author | Dave Walker (Daviey) <email@daviey.com> | 2017-03-13 10:47:30 +0000 |
|---|---|---|
| committer | Dave Walker <email@daviey.com> | 2017-03-14 01:20:49 +0000 |
| commit | 11f9ba6547b0e5cfac1f38a9e12ed5fd58f50777 (patch) | |
| tree | f5e6c6dc523b1670f7e5b830bfb29d758d8b4f0a /tools/init-runonce | |
| parent | c0df4ab8b601a0030783d8402ef8fe71b899c3b0 (diff) | |
| download | kolla-ansible-11f9ba6547b0e5cfac1f38a9e12ed5fd58f50777.tar.gz kolla-ansible-11f9ba6547b0e5cfac1f38a9e12ed5fd58f50777.zip | |
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>
Diffstat (limited to 'tools/init-runonce')
| -rwxr-xr-x | tools/init-runonce | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/init-runonce b/tools/init-runonce index 8f134c091..3756651a9 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 \ |
