Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1665405

Summary: print appropriate message when uninstalling non-existent IPA client
Product: Red Hat Enterprise Linux 8 Reporter: Mohammad Rizwan <myusuf>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: ipa-qe <ipa-qe>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.0CC: abokovoy, dpal, frenaud, ksiddiqu, pvoborni, rcritten, sumenon, tscherf, twoerner
Target Milestone: rcKeywords: Regression
Target Release: 8.1Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.8.0-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-05 20:52:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1683261    
Bug Blocks:    

Description Mohammad Rizwan 2019-01-11 09:54:59 UTC
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:

Comment 1 Mohammad Rizwan 2019-01-11 10:08:38 UTC
same behaviour observed with force option:

[root@client ~]# ipa-client-install --uninstall -U --force
The ipa-client-install command was successful
[root@client ~]# 
[root@client ~]# 
[root@client ~]# echo $?
2

Comment 2 Florence Blanc-Renaud 2019-01-14 13:07:42 UTC
This is reproducible and a regression introduced in 4.7.0 by https://github.com/freeipa/freeipa/commit/b96906156be37a7b29ee74423b82f04070c84e22 (Improve console logging for ipa-server-install).

Comment 3 Florence Blanc-Renaud 2019-01-14 13:20:51 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/7836

Comment 6 Alexander Bokovoy 2019-07-18 10:22:49 UTC
Already in FreeIPA 4.8.0:
$ git tag --contains 1284bf1588877d3549ddc98e4762038b8740c72e
release-4-8-0

Comment 8 Sudhir Menon 2019-08-05 12:24:41 UTC
[root@client ~]# cat /etc/redhat-release 
Red Hat Enterprise Linux release 8.1 Beta (Ootpa)

ipa-client-4.8.0-6.module+el8.1.0+3869+84a20141.x86_64

[root@client ~]# ipa-client-install -U --uninstall
IPA client is not configured on this system.
The ipa-client-install command failed.

[root@client ~]# echo $?
2

Comment 10 errata-xmlrpc 2019-11-05 20:52:32 UTC
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.

https://access.redhat.com/errata/RHBA-2019:3348