glance/playbooks/post-check-metadata-injection.yaml
Dan Smith 7d49b7ffc2 Make our tempest job use import, standalone, and inject_metadata
This configures Glance to inject a random piece of metadata
into images that are created via import, cause devstack to use import,
and execute a post-run job to make sure the cirros image that was
uploaded via import got that metadata as expected.

Change-Id: I7851e2b5ed21534e739327ce9562d458064eab1c
2020-07-21 15:18:48 -07:00

13 lines
554 B
YAML

- hosts: controller
tasks:
- name: Run glance validation script
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)
openstack image list -f value -c Name --property 'glance_devstack_test=doyouseeme?' | grep cirros
environment: '{{ zuul | zuul_legacy_vars }}'