#6760 Improve console message for "ipa-server-install --uninstall" command
Closed: fixed Opened by sumenon.

Steps:
1. Uninstall IPA Server
2. Check the message displayed on the console.

Actual Result:
root@master ~]# ipa-server-install --uninstall

This is a NON REVERSIBLE operation and will delete all data and configuration!
It is highly recommended to take a backup of existing data and configuration using ipa-backup utility before proceeding.

Are you sure you want to continue with the uninstall procedure? [no]: yes

WARNING: Failed to connect to Directory Server to find information about
replication agreements. Uninstallation will continue despite the possible
existing replication agreements.

If this server is the last instance of CA,
KRA, or DNSSEC master, uninstallation may result in data loss.
Are you sure you want to continue with the uninstall procedure? [no]: yes
Shutting down all IPA services
Configuring certmonger to stop tracking system certificates for KRA
Configuring certmonger to stop tracking system certificates for CA
Unconfiguring CA
Unconfiguring directory server
Removing IPA client configuration
Removing Kerberos service principals from /etc/krb5.keytab
Failed to remove Kerberos service principals: Command '/usr/sbin/ipa-rmkeytab -k /etc/krb5.keytab -r TESTREAL.TEST' returned non-zero exit status 3
Disabling client Kerberos and LDAP configurations
Redundant SSSD configuration file /etc/sssd/sssd.conf was moved to /etc/sssd/sssd.conf.deleted
nscd daemon is not installed, skip configuration
nslcd daemon is not installed, skip configuration
Client uninstall complete.
The ipa-client-install command was successful <---

Expected Result:
Since we are uninstalling IPA server, the output 'ipa-client-install command was successful' is misleading, hence should be appended with


Client uninstall complete.
The ipa-client-install command was successful
The ipa-server-install --uninstall command was successful.


Metadata Update from @pvoborni:
- Issue set to the milestone: FreeIPA 4.7

This is an artifact of the installation refactoring. This is one of those "to fix this we need to fix that" sort of changes. I'll see what I can do without rewriting the whole thing.

Metadata Update from @rcritten:
- Issue assigned to rcritten
- Issue priority set to: normal

https://github.com/freeipa/freeipa/pull/1899

master:

  • b96906156be37a7b29ee74423b82f04070c84e22 Improve console logging for ipa-server-install
  • 8ea227451f4d85dbca6a331a607d25744e85121b Drop attr defaultServerList if removing the last server
  • 00ddb5dd53a2eb21cd7c97167b8a5f87ab728b07 server install: drop some print statements, change log level
  • 036d51d5143a142e6a3070e6328a7bcd9b2125f0 Handle subyptes in ACIs

Metadata Update from @tdudlak:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

Metadata