Do not use OSC in infra playbook
Using the supported glanceclient instead. Change-Id: I373467d2cdefb2301a949c9236f445dbbc641a2a
This commit is contained in:
parent
5126ca0242
commit
df0495676e
@ -1,3 +1,4 @@
|
||||
# This playbook is for OpenDev infra consumption only.
|
||||
- hosts: controller
|
||||
tasks:
|
||||
- name: Run glance validation script
|
||||
@ -6,14 +7,14 @@
|
||||
cmd: |
|
||||
source /opt/stack/devstack/openrc
|
||||
set -xe
|
||||
cirrosimg=$(openstack image list -f csv -c ID -c Name --quote none | grep cirros | cut -d , -f 1)
|
||||
cirrosimg=$(glance image-list | grep cirros | cut -d" " -f 2)
|
||||
|
||||
echo "Dumping the cirros image for debugging..."
|
||||
openstack image show $cirrosimg
|
||||
glance image-show $cirrosimg
|
||||
|
||||
echo "Checking that the cirros image was decorated with metdata on import..."
|
||||
openstack image list -f value -c Name --property 'glance_devstack_test=doyouseeme?' | grep cirros
|
||||
glance image-list --property-filter 'glance_devstack_test=doyouseeme?' | grep cirros
|
||||
|
||||
echo "Checking that the cirros image was converted to raw on import..."
|
||||
openstack image show $cirrosimg -f value -c disk_format | grep '^raw$'
|
||||
glance image-show $cirrosimg | egrep -e 'disk_format.*raw'
|
||||
environment: '{{ zuul | zuul_legacy_vars }}'
|
||||
|
Loading…
Reference in New Issue
Block a user