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:
Dan Smith 2020-07-21 15:54:24 -07:00
parent 1b006c4f44
commit c023445d05
2 changed files with 13 additions and 4 deletions

View File

@ -229,11 +229,13 @@
post-config:
$GLANCE_IMAGE_IMPORT_CONF:
image_import_opts:
image_import_plugins: "['inject_image_metadata']"
image_import_plugins: "['inject_image_metadata', 'image_conversion']"
inject_metadata_properties:
ignore_user_roles:
inject: |
"glance_devstack_test":"doyouseeme?"
image_conversion:
output_format: raw
- job:
name: tempest-integrated-storage-wsgi-import

View File

@ -4,9 +4,16 @@
shell:
executable: /bin/bash
cmd: |
set -xe
source /opt/stack/devstack/openrc
# NOTE(danms): just dump the image so we can see it in case the check fails
openstack image show $(openstack image list -f csv -c ID -c Name --quote none | grep cirros | cut -d , -f 1)
set -xe
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
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 }}'