Bug 1141799 - ipa-client-automount uninstall restores original nsswitch.conf
Summary: ipa-client-automount uninstall restores original nsswitch.conf
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: pre-dev-freeze
: ---
Assignee: IPA Maintainers
QA Contact: Namita Soman
URL:
Whiteboard:
: 1276153 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-15 13:28 UTC by Steeve Goveas
Modified: 2016-01-29 13:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-01-29 13:21:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.