File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 21
21
- openstacksdk
22
22
- python-openstackclient
23
23
state : latest
24
- extra_args : " {% if pip_upper_constraints_file %}-c {{ pip_upper_constraints_file }}{% endif %}"
24
+ extra_args : " {% if openstacksdk_upper_constraints_file %}-c {{ openstacksdk_upper_constraints_file }}{% endif %}"
25
25
26
26
- name : Query Octavia Amphora image
27
27
vars :
40
40
checksum_algorithm : md5
41
41
changed_when : false
42
42
register : image_checksum
43
- when : image_info.openstack_image
43
+ when : image_info.image
44
+
45
+ - name : Assert that Amphora image exists
46
+ assert :
47
+ that : image_checksum.stat.exists
48
+ fail_msg : |
49
+ The amphora image: {{ image_cache_path }}/amphora-x64-haproxy-{{ openstack_release }}.qcow2
50
+ does not exist. Did you build the image?
44
51
45
52
- name : Ensure Octavia Amphora image is renamed
46
53
vars :
49
56
cmd : >-
50
57
{{ venv }}/bin/openstack image set amphora-x64-haproxy --name amphora-x64-haproxy-{{ ansible_facts.date_time.iso8601_basic_short }}
51
58
when :
52
- - image_info.openstack_image
53
- - image_info.openstack_image .checksum != image_checksum.stat.checksum
59
+ - image_info.image
60
+ - image_info.image .checksum != image_checksum.stat.checksum
54
61
changed_when : true
55
62
environment : " {{ openstack_auth_env }}"
56
63
You can’t perform that action at this time.
0 commit comments