Clark Boylan 5702331087 Move nodepool functests to podman
Now that nodepool images are on quay.io we don't get speculative
container image testing with docker. The reason for this is docker only
knows how to lookup images hosted by docker.io in mirrors which
specualtive container image testing relies on. Since the images are
hosted on quay.io instead of docker.io we lose this functionality.

Address this by switching to podman and podman-compose which does
understand how to fetch images with mirrors from any location.

Depends-On: https://review.opendev.org/c/zuul/zuul/+/687135
Change-Id: I1a510a9b68a2f01098f3c099a129d6d268b422d9
2023-05-30 15:35:47 -07:00

44 lines
1.3 KiB
YAML

- hosts: all
tasks:
- name: Collect container logs
include_role:
name: collect-container-logs
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