[root@localhost freeipa]# ipa-server-install --uninstall -U ipa : ERROR Server removal aborted: Deleting this server is not allowed as it would leave your installation without a CA.. [root@localhost freeipa]# ipa-server-install --uninstall -U --ignore-last-of-role ipa : ERROR Server removal aborted: Deleting this server is not allowed as it would leave your installation without a CA..
ipa-server-4.4.0-14.el7.centos.4.x86_64
I think the problem is in the hostname check. My hostname was localhost.localdomain when I installed which of course failed in the CA. I wasn't able to back out of this easily and the error messages did not help.
This should be fixed upstream
https://fedorahosted.org/freeipa/ticket/6259
It just hasn't been backported to centos
My case is different, I think.
The test: if ca_servers == [hostname]
I think isn't matched because my hostname is localhost.localdomain because I forgot to chnage it and the IPA server hostname was set to ipa.example.com.
Works for me.
Hostname must be changed consistently. Workaround it to run ipactl stop and uninstall server.
Metadata Update from @rcritten: - Issue assigned to someone - Issue set to the milestone: 0.0 NEEDS_TRIAGE
Login to comment on this ticket.