#7836 print appropriate message when uninstalling non-existent IPA client
Closed: fixed by frenaud. Opened by frenaud.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 8): Bug 1665405

Description of problem:
When ran ipa-client-install --uninstall -U on non existing ipa-client setup,
misleading message is printed.
Version-Release number of selected component (if applicable):
ipa-client-4.7.1-7.module+el8+2555+b334d87b.x86_64
How reproducible:
always
Steps to Reproduce:
1. Install ipa-packages and try to uninstall ipa-client
ipa-client-install -U --uninstall
Actual results:
[root@client ~]# ipa-client-install -U --uninstall
The ipa-client-install command was successful
[root@vm-idm-040 ~]# echo $?
2
Expected results:
IPA client is not configured on this system.
Additional info:

Metadata Update from @frenaud:
- Custom field rhbz adjusted to https://bugzilla.redhat.com/show_bug.cgi?id=1665405

Metadata Update from @frenaud:
- Issue set to the milestone: FreeIPA 4.7.3

The issue was introduced in 4.7.0 with commit b96906156be37a7b29ee74423b82f04070c84e22 (Improve console logging for ipa-server-install). Hence setting milestone to 4.7.3

Metadata Update from @frenaud:
- Issue tagged with: bug

Metadata Update from @rcritten:
- Issue assigned to rcritten

master:

  • 1284bf1588877d3549ddc98e4762038b8740c72e Drop list of return values to be ignored in AdminTool
  • c1c50650a7f359aa9fd77d4348c31169ca878003 Return 0 on uninstall when on_master for case of not installed
  • cef4edd384baeda913e309ebcc9a9dd8753dc744 Fix expected return code in tests when server is uninstalled

ipa-4-7:

  • ecd953df326b37b89449a1906892cc1b293371ba Drop list of return values to be ignored in AdminTool
  • 22b01da0c361e9b5ffad94989349d2b65c833e5a Return 0 on uninstall when on_master for case of not installed
  • 90b4cef81a2cc9c1f6d5f022ce87d2d96ac85a8d Fix expected return code in tests when server is uninstalled

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

Metadata