Merge "Capture the content of 'audit.log' file"
This commit is contained in:
commit
ca0f292016
@ -253,6 +253,7 @@
|
|||||||
'{{ stage_dir }}/core': logs
|
'{{ stage_dir }}/core': logs
|
||||||
'{{ stage_dir }}/listen53.txt': logs
|
'{{ stage_dir }}/listen53.txt': logs
|
||||||
'{{ stage_dir }}/deprecations.log': logs
|
'{{ stage_dir }}/deprecations.log': logs
|
||||||
|
'{{ stage_dir }}/audit.log': logs
|
||||||
/var/log/ceph: logs
|
/var/log/ceph: logs
|
||||||
/var/log/openvswitch: logs
|
/var/log/openvswitch: logs
|
||||||
/var/log/glusterfs: logs
|
/var/log/glusterfs: logs
|
||||||
|
@ -19,6 +19,17 @@
|
|||||||
rpm -qa | sort > {{ stage_dir }}/rpm-qa.txt
|
rpm -qa | sort > {{ stage_dir }}/rpm-qa.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# NOTE(kchamart) The 'audit.log' can be useful in cases when QEMU
|
||||||
|
# failed to start due to denials from SELinux — useful for CentOS
|
||||||
|
# and Fedora machines. For Ubuntu (which runs AppArmor), DevStack
|
||||||
|
# already captures the contents of /var/log/kern.log (via
|
||||||
|
# `journalctl -t kernel` redirected into syslog.txt.gz), which
|
||||||
|
# contains AppArmor-related messages.
|
||||||
|
if [ -f /var/log/audit/audit.log ] ; then
|
||||||
|
sudo cp /var/log/audit/audit.log {{stage_dir }}/audit.log &&
|
||||||
|
chmod +r {{ stage_dir }}/audit.log;
|
||||||
|
fi
|
||||||
|
|
||||||
# gzip and save any coredumps in /var/core
|
# gzip and save any coredumps in /var/core
|
||||||
if [ -d /var/core ]; then
|
if [ -d /var/core ]; then
|
||||||
sudo gzip -r /var/core
|
sudo gzip -r /var/core
|
||||||
|
Loading…
Reference in New Issue
Block a user