mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-10-28 14:05:59 +00:00
post_fail_hook: also upload AVCs and a text journal dump (#410)
@kparal pointed out that it's a bit inconvenient to quickly check the journal and any SELinux AVCs for a failed test. All the info is in the /var/log tarball, but you have to download it, extract it, and know how to run journalctl on it. For convenience, this adds a text dump of the journal and one of any AVCs found with ausearch. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
a396c2f41d
commit
5da5af3852
@ -126,6 +126,16 @@ sub post_fail_hook {
|
||||
upload_logs "/tmp/var_log.tar.gz";
|
||||
}
|
||||
|
||||
# Also upload a text dump of the journal, for convenience
|
||||
unless (script_run "journalctl > /var/tmp/journal.txt") {
|
||||
upload_logs "/var/tmp/journal.txt";
|
||||
}
|
||||
|
||||
# ...and AVCs
|
||||
unless (script_run 'ausearch -m avc -ts yesterday > /tmp/avcs.txt 2>&1') {
|
||||
upload_logs "/tmp/avcs.txt";
|
||||
}
|
||||
|
||||
# Sometimes useful for diagnosing FreeIPA issues
|
||||
upload_logs "/etc/nsswitch.conf", failok => 1;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user