8e40629161
VXLAN is necessary to run HA in CI (due to floating VIP address handled by keepalived). It also turned out to be required to have private IPv6 address assignments. This patch is based on linux bridge rather than OVS to avoid problems with OVS deployed in containers. This patch enables haproxy in multinode jobs. Includes saving of linux networking details. Makes DASHBOARD_URL agree with OS_AUTH_URL - properly uses the pre-upgrade value for testing. Co-authored-by: Radosław Piliszek <radoslaw.piliszek@gmail.com> Depends-on: https://review.opendev.org/683068 Depends-on: https://review.opendev.org/682957 Change-Id: I66888712da80c3d6f84ee4949762961664d3adea
63 lines
1.7 KiB
YAML
63 lines
1.7 KiB
YAML
---
|
|
- hosts: all
|
|
vars:
|
|
logs_dir: "/tmp/logs"
|
|
tasks:
|
|
- name: Print all facts
|
|
copy:
|
|
content: "{{ hostvars[inventory_hostname] | to_nice_json }}"
|
|
dest: "{{ logs_dir }}/facts.json"
|
|
|
|
- name: Run diagnostics script
|
|
environment:
|
|
KOLLA_INTERNAL_VIP_ADDRESS: "{{ kolla_internal_vip_address }}"
|
|
script: get_logs.sh
|
|
register: get_logs_result
|
|
become: true
|
|
failed_when: false
|
|
|
|
- name: Print get_logs output
|
|
debug:
|
|
msg: "{{ get_logs_result.stdout }}"
|
|
|
|
- name: Download /etc/hosts file to executor
|
|
synchronize:
|
|
src: "/etc/hosts"
|
|
dest: "{{ zuul.executor.log_root }}/{{inventory_hostname }}/"
|
|
mode: pull
|
|
ignore_errors: yes
|
|
|
|
- name: dump all iptables rules
|
|
shell: "iptables-save > /tmp/logs/iptables"
|
|
become: true
|
|
|
|
- name: Download /tmp/logs file to executor
|
|
synchronize:
|
|
src: "/tmp/logs"
|
|
dest: "{{ zuul.executor.log_root }}/{{inventory_hostname }}/"
|
|
mode: pull
|
|
rsync_opts:
|
|
- "--quiet"
|
|
|
|
- hosts: primary
|
|
tasks:
|
|
- name: check for existence of ara sqlite
|
|
stat:
|
|
path: "{{ ansible_env.HOME }}/.ara/ansible.sqlite"
|
|
register: ara_stat_result
|
|
|
|
- block:
|
|
- name: ensure ara-report folder existence
|
|
file:
|
|
path: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report"
|
|
state: directory
|
|
delegate_to: localhost
|
|
run_once: true
|
|
|
|
- name: download ara sqlite
|
|
synchronize:
|
|
src: "{{ ansible_env.HOME }}/.ara/ansible.sqlite"
|
|
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}/ara-report/"
|
|
mode: pull
|
|
when: ara_stat_result.stat.exists
|