# This playbook is for OpenDev infra consumption only. - hosts: controller tasks: - name: Run glance validation script shell: executable: /bin/bash cmd: | source /opt/stack/devstack/openrc set -xe cirrosimg=$(glance image-list | grep cirros | cut -d" " -f 2) echo "Dumping the cirros image for debugging..." glance image-show $cirrosimg echo "Checking that the cirros image was decorated with metdata on import..." glance image-list --property-filter 'glance_devstack_test=doyouseeme?' | grep cirros echo "Checking that the cirros image was converted to raw on import..." glance image-show $cirrosimg | egrep -e 'disk_format.*raw' environment: '{{ zuul | zuul_legacy_vars }}'