Make our import-workflow job also convert images to raw
This enables image conversion on the import-workflow job so that we at least run those code paths somewhere in CI. Change-Id: Ie4a9171f002b42a13c1786268057bdc0ab3804d0
This commit is contained in:
parent
1b006c4f44
commit
c023445d05
@ -229,11 +229,13 @@
|
|||||||
post-config:
|
post-config:
|
||||||
$GLANCE_IMAGE_IMPORT_CONF:
|
$GLANCE_IMAGE_IMPORT_CONF:
|
||||||
image_import_opts:
|
image_import_opts:
|
||||||
image_import_plugins: "['inject_image_metadata']"
|
image_import_plugins: "['inject_image_metadata', 'image_conversion']"
|
||||||
inject_metadata_properties:
|
inject_metadata_properties:
|
||||||
ignore_user_roles:
|
ignore_user_roles:
|
||||||
inject: |
|
inject: |
|
||||||
"glance_devstack_test":"doyouseeme?"
|
"glance_devstack_test":"doyouseeme?"
|
||||||
|
image_conversion:
|
||||||
|
output_format: raw
|
||||||
|
|
||||||
- job:
|
- job:
|
||||||
name: tempest-integrated-storage-wsgi-import
|
name: tempest-integrated-storage-wsgi-import
|
||||||
|
@ -4,9 +4,16 @@
|
|||||||
shell:
|
shell:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
cmd: |
|
cmd: |
|
||||||
set -xe
|
|
||||||
source /opt/stack/devstack/openrc
|
source /opt/stack/devstack/openrc
|
||||||
# NOTE(danms): just dump the image so we can see it in case the check fails
|
set -xe
|
||||||
openstack image show $(openstack image list -f csv -c ID -c Name --quote none | grep cirros | cut -d , -f 1)
|
cirrosimg=$(openstack image list -f csv -c ID -c Name --quote none | grep cirros | cut -d , -f 1)
|
||||||
|
|
||||||
|
echo "Dumping the cirros image for debugging..."
|
||||||
|
openstack image show $cirrosimg
|
||||||
|
|
||||||
|
echo "Checking that the cirros image was decorated with metdata on import..."
|
||||||
openstack image list -f value -c Name --property 'glance_devstack_test=doyouseeme?' | grep cirros
|
openstack image list -f value -c Name --property 'glance_devstack_test=doyouseeme?' | grep cirros
|
||||||
|
|
||||||
|
echo "Checking that the cirros image was converted to raw on import..."
|
||||||
|
openstack image show $cirrosimg -f value -c disk_format | grep '^raw$'
|
||||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||||
|
Loading…
Reference in New Issue
Block a user