Improve FreeIPA debug logging a bit

Committing without review as this is pretty trivial and I've
had it on staging for the last few days without issue. Just gets
us somewhat better info for debugging FreeIPA issues.
This commit is contained in:
Adam Williamson 2017-03-16 12:36:33 -07:00
parent e4a8929465
commit ba3a5152c1
2 changed files with 7 additions and 0 deletions

View File

@ -54,6 +54,9 @@ sub post_fail_hook {
unless (script_run "tar czvf /tmp/var_log.tar.gz --exclude='lastlog' /var/log") {
upload_logs "/tmp/var_log.tar.gz";
}
# Sometimes useful for diagnosing FreeIPA issues
upload_logs "/etc/nsswitch.conf", failok=>1;
}
1;

View File

@ -17,6 +17,10 @@ sub run {
repo_setup();
# do the enrolment
assert_script_run "echo 'monkeys123' | realm join --user=admin ipa001.domain.local", 300;
# set sssd debugging level higher (useful for debugging failures)
# optional as it's not really part of the test
script_run "dnf -y install sssd-tools", 180;
script_run "sss_debuglevel 6";
}
sub test_flags {