mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-12-22 10:23:09 +00:00
Log df -h
and free -h
output on anaconda failure
To see if we're stuck because we ran out of memory or disk space. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
b65f470eee
commit
440377b2a4
@ -49,6 +49,10 @@ sub post_fail_hook {
|
||||
script_run "ip route > /dev/${serialdev} 2>&1";
|
||||
script_run 'printf "\n** NETWORKMANAGER.SERVICE STATUS **\n" > /dev/' . $serialdev;
|
||||
script_run "systemctl --no-pager -l status NetworkManager.service > /dev/${serialdev} 2>&1";
|
||||
script_run 'printf "\n** FREE **\n" > /dev/' . $serialdev;
|
||||
script_run "free -h > /dev/${serialdev} 2>&1";
|
||||
script_run 'printf "\n** DF **\n" > /dev/' . $serialdev;
|
||||
script_run "df -h > /dev/${serialdev} 2>&1";
|
||||
script_run 'printf "\n** X.LOG **\n" > /dev/' . $serialdev;
|
||||
script_run "cat /tmp/X.log > /dev/${serialdev}";
|
||||
script_run 'printf "\n** ANACONDA.LOG **\n" > /dev/' . $serialdev;
|
||||
@ -78,6 +82,12 @@ sub post_fail_hook {
|
||||
return;
|
||||
}
|
||||
|
||||
unless (script_run "df -h > /tmp/df.log") {
|
||||
upload_logs "/tmp/df.log", failok=>1;
|
||||
}
|
||||
unless (script_run "free -h > /tmp/free.log") {
|
||||
upload_logs "/tmp/free.log", failok=>1;
|
||||
}
|
||||
upload_logs "/tmp/X.log", failok=>1;
|
||||
upload_logs "/tmp/anaconda.log", failok=>1;
|
||||
upload_logs "/tmp/packaging.log", failok=>1;
|
||||
|
Loading…
Reference in New Issue
Block a user