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:
parent
7ef2873b48
commit
81b000901c
|
@ -5,6 +5,7 @@
|
||||||
post-run: tests/collect-logs.yaml
|
post-run: tests/collect-logs.yaml
|
||||||
roles:
|
roles:
|
||||||
- zuul: openstack/ansible-role-nodepool
|
- zuul: openstack/ansible-role-nodepool
|
||||||
|
- zuul: openstack/zuul-jobs
|
||||||
|
|
||||||
# Testing for nodepool_install_method: pip
|
# Testing for nodepool_install_method: pip
|
||||||
- job:
|
- job:
|
||||||
|
|
|
@ -1,10 +1,24 @@
|
||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
tasks:
|
||||||
- name: Collect nodepool log files
|
- name: Prepare nodepool log files
|
||||||
|
become: yes
|
||||||
synchronize:
|
synchronize:
|
||||||
dest: "{{ zuul.executor.log_root }}/logs"
|
dest: "{{ zuul_output_dir }}/logs/logs"
|
||||||
mode: pull
|
|
||||||
rsync_opts:
|
rsync_opts:
|
||||||
- "--relative"
|
- "--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
|
verify_host: true
|
||||||
|
|
|
@ -1,9 +1,14 @@
|
||||||
- hosts: all
|
- hosts: all
|
||||||
tasks:
|
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
|
- name: Disable extra wheels mirror
|
||||||
become: yes
|
become: yes
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/pip.conf
|
dest: /etc/pip.conf
|
||||||
regexp: ^extra-index-url
|
regexp: ^extra-index-url
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue