File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change
1
+ # This playbook is for OpenDev infra consumption only.
1
2
- hosts : controller
2
3
tasks :
3
4
- name : Run glance validation script
6
7
cmd : |
7
8
source /opt/stack/devstack/openrc
8
9
set -xe
9
- cirrosimg=$(openstack image list -f csv -c ID -c Name --quote none | grep cirros | cut -d , -f 1 )
10
+ cirrosimg=$(glance image- list | grep cirros | cut -d" " -f 2 )
10
11
11
12
echo "Dumping the cirros image for debugging..."
12
- openstack image show $cirrosimg
13
+ glance image- show $cirrosimg
13
14
14
15
echo "Checking that the cirros image was decorated with metdata on import..."
15
- openstack image list -f value -c Name -- property 'glance_devstack_test=doyouseeme?' | grep cirros
16
+ glance image- list -- property-filter 'glance_devstack_test=doyouseeme?' | grep cirros
16
17
17
18
echo "Checking that the cirros image was converted to raw on import..."
18
- openstack image show $cirrosimg -f value -c disk_format | grep '^ raw$ '
19
+ glance image- show $cirrosimg | egrep -e 'disk_format.* raw'
19
20
environment : ' {{ zuul | zuul_legacy_vars }}'
You can’t perform that action at this time.
0 commit comments