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 1141799

Summary: ipa-client-automount uninstall restores original nsswitch.conf
Product: Red Hat Enterprise Linux 7 Reporter: Steeve Goveas <sgoveas>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED WONTFIX QA Contact: Namita Soman <nsoman>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: mkosek, prasun.gera, rcritten, sbose
Target Milestone: pre-dev-freezeKeywords: Documentation
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-29 13:21:55 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:

Description Steeve Goveas 2014-09-15 13:28:36 UTC
Description of problem:
ipa-client-automount saves a second copy of /etc/nsswitch.conf and during uninstall the original version (before ipa-client-install) without the sss entries is restored. So, it should be documented that uninstalling automount on its own is not supported. If you want to remove it you have to unconfigure the whole client and then call ipa-client-install again.

Version-Release number of selected component (if applicable):
ipa-client-3.0.0-42.el6.x86_64

How reproducible:
Inconsistently

Steps to Reproduce:
1. Install ipa-client
2. Install ipa-client-automount
3. Uninstall ipa-client-automount


Additional info:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa_trust_func_automount_cleanup: cleanup for automount tests
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [  BEGIN   ] :: Running 'kdestroy -A'
:: [   PASS   ] :: Command 'kdestroy -A' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'echo Secret123|kinit admin'
Password for admin: 
:: [   PASS   ] :: Command 'echo Secret123|kinit admin' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'ipa automountlocation-del trust_location'
-------------------------------------------
Deleted automount location "trust_location"
-------------------------------------------
:: [   PASS   ] :: Command 'ipa automountlocation-del trust_location' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'rm -rf /export /export2'
:: [   PASS   ] :: Command 'rm -rf /export /export2' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'ssh ibm-p730-03-lp1.steeve09051337.test 'cp -r  /var/lib/ipa-client/sysrestore  /var/lib/ipa-client/sysrestore_before_automnt''
:: [   PASS   ] :: Command 'ssh ibm-p730-03-lp1.steeve09051337.test 'cp -r  /var/lib/ipa-client/sysrestore  /var/lib/ipa-client/sysrestore_before_automnt'' (Expected 0, got 0)
:: [  BEGIN   ] :: Running 'ssh ibm-p730-03-lp1.steeve09051337.test 'ipa-client-automount --uninstall -U' | tee ipa_trust_func_automount_cleanup.Rv96ou 2>&1'
Restoring configuration
Unable to find 'admin' user with 'getent passwd admin'!
This may mean that sssd didn't re-start properly after the configuration changes.

Comment 1 Sumit Bose 2014-09-15 13:35:09 UTC
IT has to be noted that this does not happen all the time. The copies are created by prefixing the filename with a hash. Depending of the order of the returned filenames in the sysrestore directory either the right or the wrong copy is restored.

Comment 5 Martin Kosek 2014-09-16 14:20:56 UTC
This is really rather a bug in our uninstallers - moving it back to ipa.

Comment 6 Martin Kosek 2014-09-16 14:22:32 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/4543

Comment 7 Martin Kosek 2014-09-16 14:26:46 UTC
Upstream ticket was scheduled to later FreeIPA version - 4.2. This means RHEL-6.x will not be the primary platform to deliver the fix. As such, moving to RHEL-7 product.

In case fixing the bug in RHEL-7.x is not acceptable for you and you would like to propose a backport for RHEL-6.x, please clone the bug with proper justification.

Comment 8 Petr Vobornik 2015-11-05 13:55:15 UTC
*** Bug 1276153 has been marked as a duplicate of this bug. ***

Comment 9 prasun.gera 2015-11-05 21:27:33 UTC
A backport to 6.x would be nice since our gluster servers (RHSS) are on 6, and there is no clear upgrade path from 6 to 7 for them yet.

Comment 10 Rob Crittenden 2015-11-05 21:45:31 UTC
What's the use case for configuring automount and then uninstalling only automount? I don't dispute the bug, just wonder how hot the issue really is.

Comment 11 prasun.gera 2015-11-05 21:48:57 UTC
I've found automount through sss to be somewhat unreliable. I have had cases where automount stops working. Restarting autofs wouldn't work, but uninstalling and reinstalling automount would make it work again. Ideally, the root cause should be fixed too, but this is useful nevertheless.

Comment 12 Martin Kosek 2016-01-29 13:21:55 UTC
Thank you taking your time and submitting this request for Red Hat Enterprise Linux. Unfortunately, this bug was not given a priority and was deferred both in the upstream project and in Red Hat Enterprise Linux.

Given that we are unable to fulfill this request in following Red Hat Enterprise Linux releases, I am closing the Bugzilla as WONTFIX. To request that Red Hat re-considers the decision, please re-open the Bugzilla via appropriate support channels and provide additional business and/or technical details about its importance to you.

Note that you can still track this request or even contribute patches in the referred upstream Trac ticket.