Use new log collection process

While this isn't 100%, it is enough to actually get started using it.

Change-Id: I8e4bad97658f98ca5280eca694dc2d9cb4028ad1
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-07-21 20:04:50 -04:00
parent 7ef2873b48
commit 81b000901c
3 changed files with 25 additions and 5 deletions

View File

@ -5,6 +5,7 @@
post-run: tests/collect-logs.yaml
roles:
- zuul: openstack/ansible-role-nodepool
- zuul: openstack/zuul-jobs
# Testing for nodepool_install_method: pip
- job:

View File

@ -1,10 +1,24 @@
- hosts: all
tasks:
- name: Collect nodepool log files
- name: Prepare nodepool log files
become: yes
synchronize:
dest: "{{ zuul.executor.log_root }}/logs"
mode: pull
dest: "{{ zuul_output_dir }}/logs/logs"
rsync_opts:
- "--relative"
src: /var/log/nodepool
- "--chown={{ ansible_user_id }}:{{ ansible_user_id }}"
src: "{{ item }}"
verify_host: true
delegate_to: "{{ inventory_hostname }}"
with_items:
- /etc/nodepool
- /var/log/nodepool
# TODO: Migrate to fetch-zuul-logs when
# https://review.openstack.org/#/c/583346/ is merged.
- name: Collect log output
synchronize:
dest: "{{ zuul.executor.log_root }}/"
mode: pull
src: "{{ zuul_output_dir }}/logs/"
verify_host: true

View File

@ -1,9 +1,14 @@
- hosts: all
tasks:
# TODO(pabelanger): Remove once this lands in our base job in
# project-config.
- name: Execute ensure-output-dirs role
include_role:
name: ensure-output-dirs
- name: Disable extra wheels mirror
become: yes
lineinfile:
dest: /etc/pip.conf
regexp: ^extra-index-url
state: absent