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:
parent
e4a8929465
commit
ba3a5152c1
@ -54,6 +54,9 @@ sub post_fail_hook {
|
|||||||
unless (script_run "tar czvf /tmp/var_log.tar.gz --exclude='lastlog' /var/log") {
|
unless (script_run "tar czvf /tmp/var_log.tar.gz --exclude='lastlog' /var/log") {
|
||||||
upload_logs "/tmp/var_log.tar.gz";
|
upload_logs "/tmp/var_log.tar.gz";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Sometimes useful for diagnosing FreeIPA issues
|
||||||
|
upload_logs "/etc/nsswitch.conf", failok=>1;
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
@ -17,6 +17,10 @@ sub run {
|
|||||||
repo_setup();
|
repo_setup();
|
||||||
# do the enrolment
|
# do the enrolment
|
||||||
assert_script_run "echo 'monkeys123' | realm join --user=admin ipa001.domain.local", 300;
|
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 {
|
sub test_flags {
|
||||||
|
Loading…
Reference in New Issue
Block a user