From 0d38d3f292671476b17655c6a4ec12c5c1d1fdce Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Wed, 1 May 2019 18:59:52 -0700 Subject: [PATCH] FreeIPA: get verbose logs from BIND This was necessary for debugging the FreeIPA 4.8 pre-release update bug, so let's have it for all runs, just in case. Signed-off-by: Adam Williamson --- lib/installedtest.pm | 5 +++++ tests/role_deploy_domain_controller.pm | 3 +++ 2 files changed, 8 insertions(+) diff --git a/lib/installedtest.pm b/lib/installedtest.pm index 2527bbcb..956c37f9 100644 --- a/lib/installedtest.pm +++ b/lib/installedtest.pm @@ -97,6 +97,11 @@ sub post_fail_hook { upload_logs "/var/lib/systemd/coredump/coredump.tar.gz"; } + # upload bind log (for FreeIPA server test) + unless (script_run 'test -f /var/named/data/named.run') { + upload_logs "/var/named/data/named.run"; + } + # Upload /var/log # lastlog can mess up tar sometimes and it's not much use unless (script_run "tar czvf /tmp/var_log.tar.gz --exclude='lastlog' /var/log") { diff --git a/tests/role_deploy_domain_controller.pm b/tests/role_deploy_domain_controller.pm index 95072353..f7cde328 100644 --- a/tests/role_deploy_domain_controller.pm +++ b/tests/role_deploy_domain_controller.pm @@ -27,6 +27,9 @@ sub run { # in error_log assert_script_run 'mkdir -p /etc/ipa'; assert_script_run 'printf "[global]\ndebug = True\n" > /etc/ipa/server.conf'; + # per ab, this gets us more debugging for bind + assert_script_run 'mkdir -p /etc/systemd/system/named-pkcs11.service.d'; + assert_script_run 'printf "[Service]\nEnvironment=OPTIONS=-d5\n" > /etc/systemd/system/named-pkcs11.service.d/debug.conf'; # read DNS server IPs from host's /etc/resolv.conf for passing to # ipa-server-install / rolectl my @forwards = get_host_dns();