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] 9b2ffd10dc
Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I90171b424f0678001c2ca53a1fee819993fff6f5
This commit is contained in:
@@ -17,13 +17,13 @@
|
|||||||
- name: Ensure port is open
|
- name: Ensure port is open
|
||||||
wait_for:
|
wait_for:
|
||||||
port: "{{ container_registry_port }}"
|
port: "{{ container_registry_port }}"
|
||||||
host: "{{ virthost_name.stdout }}"
|
host: "{{ virthost_name.stdout | regex_replace('^\\*$', 'localhost')}}"
|
||||||
timeout: 10
|
timeout: 10
|
||||||
|
|
||||||
- name: Ensure registry does answer
|
- name: Ensure registry does answer
|
||||||
uri:
|
uri:
|
||||||
method: HEAD
|
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:
|
status_code:
|
||||||
- 200
|
- 200
|
||||||
- 204
|
- 204
|
||||||
|
|||||||
Reference in New Issue
Block a user