Move LXC logs to /openstack/log
In order to ensure that we collect LXC container actions for OpenStack-CI diagnostic purposes, and to collect the important logs in the right place, this patch moves the LXC log folder to /openstack/log which is where all other logs are gathered. Change-Id: I9455aa6cd17e12a5e90658e0cbdcdfc22552a5b0
This commit is contained in:
parent
60274f009c
commit
6bf159ff07
@ -18,6 +18,17 @@
|
||||
gather_facts: "{{ gather_facts | default(True) }}"
|
||||
max_fail_percentage: 20
|
||||
user: root
|
||||
pre_tasks:
|
||||
- name: Create log dir
|
||||
file:
|
||||
path: "/openstack/log/{{ inventory_hostname }}-lxc"
|
||||
state: directory
|
||||
- name: Create log aggregation links
|
||||
file:
|
||||
src: "/openstack/log/{{ inventory_hostname }}-lxc"
|
||||
dest: "/var/log/lxc"
|
||||
state: "link"
|
||||
force: "yes"
|
||||
roles:
|
||||
- { role: "lxc_hosts", tags: [ "lxc-host", "host-setup" ] }
|
||||
- role: "rsyslog_client"
|
||||
|
Loading…
Reference in New Issue
Block a user