File tree Expand file tree Collapse file tree
roles/capture-system-logs/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change 253253 ' {{ stage_dir }}/core ' : logs
254254 ' {{ stage_dir }}/listen53.txt ' : logs
255255 ' {{ stage_dir }}/deprecations.log ' : logs
256+ ' {{ stage_dir }}/audit.log ' : logs
256257 /var/log/ceph : logs
257258 /var/log/openvswitch : logs
258259 /var/log/glusterfs : logs
Original file line number Diff line number Diff line change 1919 rpm -qa | sort > {{ stage_dir }}/rpm-qa.txt
2020 fi
2121
22+ # NOTE(kchamart) The 'audit.log' can be useful in cases when QEMU
23+ # failed to start due to denials from SELinux — useful for CentOS
24+ # and Fedora machines. For Ubuntu (which runs AppArmor), DevStack
25+ # already captures the contents of /var/log/kern.log (via
26+ # `journalctl -t kernel` redirected into syslog.txt.gz), which
27+ # contains AppArmor-related messages.
28+ if [ -f /var/log/audit/audit.log ] ; then
29+ sudo cp /var/log/audit/audit.log {{stage_dir }}/audit.log &&
30+ chmod +r {{ stage_dir }}/audit.log;
31+ fi
32+
2233 # gzip and save any coredumps in /var/core
2334 if [ -d /var/core ]; then
2435 sudo gzip -r /var/core
You can’t perform that action at this time.
0 commit comments