fix EBS image creation in Ocata

Ocata's devstack still uses ami/aki/ari cirros image.
But incorrect code with 'bare' type was merged some time ago.
Need to change back 'bare' to 'ami'.

Change-Id: Ie1729f67f12e68117df742650b66b7bddef3d868
This commit is contained in:
Andrey Pavlov 2017-10-13 10:13:38 +03:00
parent 240878f9e8
commit 2f87f8961c
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ auth="--os-project-name $project_name --os-username $user_name --os-password pas
volume_status() { cinder $auth show $1|awk '/ status / {print $4}'; }
instance_status() { nova $auth show $1|awk '/ status / {print $4}'; }
openstack_image_id=$(openstack $auth image list --long | grep "cirros" | grep " bare " | head -1 | awk '{print $2}')
openstack_image_id=$(openstack $auth image list --long | grep "cirros" | grep " ami " | head -1 | awk '{print $2}')
if [[ -n "$openstack_image_id" ]]; then
volume_id=$(cinder $auth create --image-id $openstack_image_id 1 | awk '/ id / {print $4}')
[[ -n "$volume_id" ]] || { echo "can't create volume for EBS image creation"; exit 1; }