Replace cirros 0.4.0 by 0.5.2 in ovn migration create-resources.sh.j2
Some VMs are created before the ovn mgiration process starts in order to
verify they are healthy after the migration
Sometimes these VMs are not accessible via ssh due to an issue in cirros
0.4.0 that was fixed in a later release [1]
Closes-Bug: #1945299
[1] https://github.com/cirros-dev/cirros/pull/11
Change-Id: Ib133b5e1bed19aeac8514e3c6690ca768991bbd4
(cherry picked from commit 459f63439b
)
This commit is contained in:
parent
875da0df3c
commit
d2b28dee76
|
@ -8,12 +8,12 @@ image_name={{ image_name }}
|
|||
openstack image show $image_name
|
||||
if [ "$?" != "0" ]
|
||||
then
|
||||
if [ ! -f cirros-0.4.0-x86_64-disk.img ]
|
||||
if [ ! -f cirros-0.5.2-x86_64-disk.img ]
|
||||
then
|
||||
curl -Lo cirros-0.4.0-x86_64-disk.img https://github.com/cirros-dev/cirros/releases/download/0.4.0/cirros-0.4.0-x86_64-disk.img
|
||||
curl -Lo cirros-0.5.2-x86_64-disk.img https://github.com/cirros-dev/cirros/releases/download/0.5.2/cirros-0.5.2-x86_64-disk.img
|
||||
fi
|
||||
|
||||
openstack image create "cirros-ovn-migration-{{ resource_suffix }}" --file cirros-0.4.0-x86_64-disk.img \
|
||||
openstack image create "cirros-ovn-migration-{{ resource_suffix }}" --file cirros-0.5.2-x86_64-disk.img \
|
||||
--disk-format qcow2 --container-format bare --public
|
||||
image_name="cirros-ovn-migration-{{ resource_suffix }}"
|
||||
fi
|
||||
|
|
|
@ -8,12 +8,12 @@ image_name={{ image_name }}
|
|||
openstack image show $image_name
|
||||
if [ "$?" != "0" ]
|
||||
then
|
||||
if [ ! -f cirros-0.4.0-x86_64-disk.img ]
|
||||
if [ ! -f cirros-0.5.2-x86_64-disk.img ]
|
||||
then
|
||||
curl -Lo cirros-0.4.0-x86_64-disk.img https://github.com/cirros-dev/cirros/releases/download/0.4.0/cirros-0.4.0-x86_64-disk.img
|
||||
curl -Lo cirros-0.5.2-x86_64-disk.img https://github.com/cirros-dev/cirros/releases/download/0.5.2/cirros-0.5.2-x86_64-disk.img
|
||||
fi
|
||||
|
||||
openstack image create "cirros-ovn-migration-{{ resource_suffix }}" --file cirros-0.4.0-x86_64-disk.img \
|
||||
openstack image create "cirros-ovn-migration-{{ resource_suffix }}" --file cirros-0.5.2-x86_64-disk.img \
|
||||
--disk-format qcow2 --container-format bare --public
|
||||
image_name="cirros-ovn-migration-{{ resource_suffix }}"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue