df0495676e
Using the supported glanceclient instead. Change-Id: I373467d2cdefb2301a949c9236f445dbbc641a2a
21 lines
803 B
YAML
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 }}'
|