1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-21 13:33:08 +00:00

freeipa replica: delete the replica before uninstalling master

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2024-08-26 13:04:58 -07:00
parent 9a95ece8d3
commit 3c3ed87966

View File

@ -26,6 +26,11 @@ sub run {
# there are often cases where we need to see the logs (e.g. client # there are often cases where we need to see the logs (e.g. client
# test failed due to server issue) # test failed due to server issue)
$self->post_fail_hook(); $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'; assert_script_run 'systemctl stop ipa.service';
# check server is stopped # check server is stopped
assert_script_run '! systemctl is-active ipa.service'; assert_script_run '! systemctl is-active ipa.service';