glance/playbooks/post-check-metadata-injection.yaml
Erno Kuvaja df0495676e Do not use OSC in infra playbook
Using the supported glanceclient instead.

Change-Id: I373467d2cdefb2301a949c9236f445dbbc641a2a
2020-09-22 18:07:39 +01:00

21 lines
803 B
YAML

# 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 }}'