From 3c3ed87966ce4ea9541c6e09c4e10440df38b20d Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 26 Aug 2024 13:04:58 -0700 Subject: [PATCH] freeipa replica: delete the replica before uninstalling master Signed-off-by: Adam Williamson --- tests/role_deploy_domain_controller_check.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/role_deploy_domain_controller_check.pm b/tests/role_deploy_domain_controller_check.pm index c333efcc..d9656556 100644 --- a/tests/role_deploy_domain_controller_check.pm +++ b/tests/role_deploy_domain_controller_check.pm @@ -26,6 +26,11 @@ sub run { # there are often cases where we need to see the logs (e.g. client # test failed due to server issue) $self->post_fail_hook(); + if (get_var("FREEIPA_REPLICA_MASTER")) { + # delete the replica, otherwise we may get errors at uninstall + assert_script_run 'echo "monkeys123" | kinit admin'; + assert_script_run 'ipa server-del ipa003.test.openqa.fedoraproject.org'; + } assert_script_run 'systemctl stop ipa.service'; # check server is stopped assert_script_run '! systemctl is-active ipa.service';