7d49b7ffc2
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
13 lines
554 B
YAML
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 }}'
|