Skip to content

Commit d7c033b

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Do not use OSC in infra playbook"
2 parents 922c2ed + df04956 commit d7c033b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# This playbook is for OpenDev infra consumption only.
12
- hosts: controller
23
tasks:
34
- name: Run glance validation script
@@ -6,14 +7,14 @@
67
cmd: |
78
source /opt/stack/devstack/openrc
89
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)
1011
1112
echo "Dumping the cirros image for debugging..."
12-
openstack image show $cirrosimg
13+
glance image-show $cirrosimg
1314
1415
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
1617
1718
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'
1920
environment: '{{ zuul | zuul_legacy_vars }}'

0 commit comments

Comments
 (0)