Substituting 'localhost' for wildcard '*' in image-serve validation
Recent changes to the httpd config template[0] have led to failure of the image-serve validation during the "Ensure registry does answer" task as the '*' host was not reachable. Substitution of the 'localhost' for '*' should resolve the issue. Same modification was applied to the "Ensure port is open" task for the sake of consistency. Closes-Bug: #1959864 [0]9b2ffd10dcSigned-off-by: Jiri Podivin <jpodivin@redhat.com> Change-Id: I90171b424f0678001c2ca53a1fee819993fff6f5 (cherry picked from commit16dfbae6a0)
This commit is contained in:
@@ -17,13 +17,13 @@
|
||||
- name: Ensure port is open
|
||||
wait_for:
|
||||
port: "{{ container_registry_port }}"
|
||||
host: "{{ virthost_name.stdout }}"
|
||||
host: "{{ virthost_name.stdout | regex_replace('^\\*$', 'localhost')}}"
|
||||
timeout: 10
|
||||
|
||||
- name: Ensure registry does answer
|
||||
uri:
|
||||
method: HEAD
|
||||
url: "http://{{ virthost_name.stdout }}:{{ container_registry_port }}/v2/index.json"
|
||||
url: "http://{{ virthost_name.stdout | regex_replace('^\\*$', 'localhost')}}:{{ container_registry_port }}/v2/index.json"
|
||||
status_code:
|
||||
- 200
|
||||
- 204
|
||||
|
||||
Reference in New Issue
Block a user