Change libvirt log owner. Fix rsync permission err
Change-Id: I6c25e71c22268f1e3b58f1e06907f073a33f09f7
This commit is contained in:
parent
776b73b233
commit
3b7fdd8f6b
@ -7,14 +7,14 @@
|
|||||||
state: directory
|
state: directory
|
||||||
path: "{{ libvirt_log_dir }}"
|
path: "{{ libvirt_log_dir }}"
|
||||||
|
|
||||||
- name: copy hypervisor logs to tmp directory
|
|
||||||
command: "cp -r /var/log/libvirt {{ libvirt_log_dir }}/libvirt-hypervisor"
|
|
||||||
become: true
|
|
||||||
ignore_errors: True
|
|
||||||
|
|
||||||
- name: collect all libvirt logs and resources
|
- name: collect all libvirt logs and resources
|
||||||
|
ignore_errors: True
|
||||||
block:
|
block:
|
||||||
|
|
||||||
|
- name: copy hypervisor logs to tmp directory
|
||||||
|
command: "cp -r /var/log/libvirt {{ libvirt_log_dir }}/libvirt-hypervisor"
|
||||||
|
become: true
|
||||||
|
|
||||||
- name: copy console logs to tmp directory
|
- name: copy console logs to tmp directory
|
||||||
command: "cp -r /var/log/libvirt-consoles/ {{ libvirt_log_dir }}/libvirt-consoles"
|
command: "cp -r /var/log/libvirt-consoles/ {{ libvirt_log_dir }}/libvirt-consoles"
|
||||||
become: true
|
become: true
|
||||||
@ -84,9 +84,15 @@
|
|||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
|
|
||||||
- name: "Downloads logs to executor"
|
- name: Change ownership of the logs dir
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
recurse: true
|
||||||
|
owner: "{{ ansible_user }}"
|
||||||
|
become: true
|
||||||
|
|
||||||
|
- name: Downloads logs to executor
|
||||||
synchronize:
|
synchronize:
|
||||||
src: "{{ libvirt_log_dir }}"
|
src: "{{ libvirt_log_dir }}"
|
||||||
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
|
dest: "{{ zuul.executor.log_root }}/{{ inventory_hostname }}"
|
||||||
mode: pull
|
mode: pull
|
||||||
ignore_errors: True
|
|
Loading…
x
Reference in New Issue
Block a user