
Split the network testing component of the validate-host rule into a separate task, so it can be retried a couple of times in case something is a bit slow about bringing up external networking. Add failure collection of unbound logs if they appear to be in some common locations (such as will be there on infra nodes). Change-Id: Id12f1ba064fa2e5f75b9a5cfba76d238d23d3f57
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
- name: Define zuul_info_dir fact
|
|
set_fact:
|
|
zuul_info_dir: "{{ zuul.executor.log_root }}/zuul-info"
|
|
|
|
- name: Ensure Zuul Ansible directory exists
|
|
delegate_to: localhost
|
|
run_once: true
|
|
file:
|
|
path: "{{ zuul_info_dir }}"
|
|
state: directory
|
|
|
|
- name: Collect information about the host
|
|
setup:
|
|
register: setupinfo
|
|
|
|
- name: Write out all ansible variables/facts known for each host
|
|
delegate_to: localhost
|
|
template:
|
|
dest: "{{ zuul_info_dir }}/host-info.{{ inventory_hostname }}.yaml"
|
|
src: templates/host-info.j2
|
|
|
|
- name: Collect information about zuul worker
|
|
zuul_debug_info:
|
|
image_manifest: "{{ zuul_site_image_manifest|default(omit) }}"
|
|
image_manifest_files: "{{ zuul_site_image_manifest_files|default(omit) }}"
|
|
register: zdi
|
|
|
|
- name: Collect network information from zuul worker
|
|
zuul_network_validate:
|
|
traceroute_host: "{{ zuul_site_traceroute_host|default(omit) }}"
|
|
register: znetinfo
|
|
retries: 3
|
|
delay: 5
|
|
until: znetinfo.failed == False
|
|
|
|
- name: Write out all zuul information for each host
|
|
delegate_to: localhost
|
|
template:
|
|
dest: "{{ zuul_info_dir }}/zuul-info.{{ inventory_hostname }}.txt"
|
|
src: templates/zuul-info.j2
|