3fce10179e
We run the podman containers as root, so when we collect the logs, we must do that as root too, otherwise we won't see the containers. This is why we currently collect no container logs. Also, increase the boot timeout from 600 to 1200 seconds to deal with what appears to be much slower boot times of the test node. Change-Id: Ie146599f7598459c41c2d2d885b90a702bc900bb
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
- hosts: all
|
|
tasks:
|
|
- name: Collect container logs
|
|
include_role:
|
|
name: collect-container-logs
|
|
apply:
|
|
become: yes
|
|
vars:
|
|
container_command: podman
|
|
- name: Copy nodepool logs
|
|
ignore_errors: yes
|
|
block:
|
|
- name: Copy nodepool log files
|
|
synchronize:
|
|
src: /var/log/nodepool
|
|
dest: '{{ zuul.executor.log_root }}'
|
|
mode: pull
|
|
- name: Copy nodepool config files
|
|
synchronize:
|
|
src: /etc/nodepool
|
|
dest: '{{ zuul.executor.log_root }}'
|
|
mode: pull
|
|
- name: Copy instance console logs
|
|
become: true
|
|
synchronize:
|
|
src: /opt/stack/data/nova/instances
|
|
dest: '{{ zuul.executor.log_root }}'
|
|
mode: pull
|
|
rsync_opts:
|
|
- "--include=*/"
|
|
- "--include=console.log"
|
|
- "--exclude=*"
|
|
- name: Copy syslog
|
|
become: True
|
|
synchronize:
|
|
src: "/var/log/syslog"
|
|
dest: '{{ zuul.executor.log_root }}'
|
|
mode: pull
|
|
|
|
- name: Copy podman logs
|
|
become: True
|
|
synchronize:
|
|
src: '{{ ansible_user_dir }}/zuul-output/logs/podman'
|
|
dest: '{{ zuul.executor.log_root }}'
|
|
mode: pull
|