Description of problem:
When I attempt to install a replica on a system where a replica is already installed, I get a warning that an IPA client is configured and that I have to uninstall it using "ipa-client-install --uninstall". However, what I really need to do is to run "ipa-server-install --uninstall":
[root@vm-077 ~]# ipa-replica-install /var/lib/ipa/replica-info-vm-077.abc.idm.lab.eng.brq.redhat.com.gpg --setup-dns --forwarder 10.38.5.26
IPA client is already configured on this system.
Please uninstall it first before configuring the replica, using 'ipa-client-install --uninstall'.
[root@vm-077 ~]# ipa-client-install --uninstall
IPA client is configured as a part of IPA server on this system.
Refer to ipa-server-install for uninstallation.
Steps to Reproduce:
1. Install a replica
2. Forget that you have already done it and run ipa-replica-install again
IPA advises to uninstall the client using "ipa-client-install --uninstall".
IPA should tell the user to uninstall the replica.
(Alternatively, it could advise to run "ipa-replica-manage del" first on the initial master and then uninstall the replica.)
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see email@example.com with any questions
Verified on RHEL73 using ipa-server-4.4.0-11.el7.x86_64
IPA doesnot advise to uninstall the client using "ipa-client-install --uninstall" instead it asks to uninstall ipa-server.
[root@ipareplica1 vagrant]# ipa-replica-install
ipa.ipapython.install.cli.install_tool(Replica): ERROR IPA server is already configured on this system.
If you want to reinstall the IPA server, please uninstall it first using 'ipa-server-install --uninstall'.
ipa.ipapython.install.cli.install_tool(Replica): ERROR The ipa-replica-install command failed. See /var/log/ipareplica-install.log for more information
[root@replica ~]# /usr/sbin/ipa-server-install --uninstall
This is a NON REVERSIBLE operation and will delete all data and configuration!
Are you sure you want to continue with the uninstall procedure? [no]: yes
Replication agreements with the following IPA masters found:
master.test-relm.test. Removing any replication agreements before uninstalling the server is strongly recommended. You can remove replication agreements by running the following command on any other IPA master:
$ ipa-replica-manage del replica.test-relm.test
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.