Store journal log in functional tests results
It may helpdebug some issues related to keepalived and/or dnsmasq which are logging to journal only. Change-Id: I42c311f9111e0a0d1a6ea3a7aeab0fef8d77c549
This commit is contained in:
parent
8b7370a934
commit
45a7a45961
@ -66,6 +66,22 @@
|
|||||||
- --exclude=*
|
- --exclude=*
|
||||||
- --prune-empty-dirs
|
- --prune-empty-dirs
|
||||||
|
|
||||||
|
# TODO(slaweq): this should be moved to separate role and used in zuulv3
|
||||||
|
# jobs definitions also
|
||||||
|
- name: Store journal logs in {{ ansible_user_dir }}/workspace/logs/journal.log
|
||||||
|
become: yes
|
||||||
|
shell:
|
||||||
|
cmd: |
|
||||||
|
/bin/journalctl -a > {{ ansible_user_dir }}/workspace/logs/journal.log
|
||||||
|
|
||||||
|
- name: Set journal.log file permissions
|
||||||
|
become: yes
|
||||||
|
file:
|
||||||
|
path: '{{ ansible_user_dir }}/workspace/logs/journal.log'
|
||||||
|
owner: '{{ ansible_user }}'
|
||||||
|
group: '{{ ansible_user }}'
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
- name: Copy files from {{ ansible_user_dir }}/workspace/ on node
|
||||||
synchronize:
|
synchronize:
|
||||||
src: '{{ ansible_user_dir }}/workspace/'
|
src: '{{ ansible_user_dir }}/workspace/'
|
||||||
|
Loading…
Reference in New Issue
Block a user