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 1445432

Summary: uninstall ipa client automount failed with RuntimeWarning
Product: Red Hat Enterprise Linux 7 Reporter: Petr Vobornik <pvoborni>
Component: ipaAssignee: IPA Maintainers <ipa-maint>
Status: CLOSED ERRATA QA Contact: Ganna Kaihorodova <gkaihoro>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 7.4CC: ksiddiqu, mbasti, nsoman, pvoborni, rcritten, tscherf
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ipa-4.5.0-9.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 09:50:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Vobornik 2017-04-25 16:13:20 UTC
Cloned from upstream: https://pagure.io/freeipa/issue/6861

 When trying to uninstall automount client setting on the ipa-client its failing with RuntimeWarning.

:: [  BEGIN   ] :: uninstall ipa client automount :: actually running 'ipa-client-automount --uninstall -U'
/usr/lib/python2.7/site-packages/ipaplatform/base/services.py:195: RuntimeWarning: RedHatService('sssd', api=None) is deprecated.
  super(SystemdService, self).__init__(service_name, api=api)
Restoring configuration
Unable to restore SSSD configuration: 'Env' object has no attribute 'realm'
:: [   PASS   ] :: uninstall ipa client automount (Expected 0, got 0)
:: [  BEGIN   ] :: Restarting automount to fetch updated configuration :: actually running 'service autofs restart'
Redirecting to /bin/systemctl restart autofs.service
:: [   PASS   ] :: Restarting automount to fetch updated configuration (Expected 0, got 0)
:: [  BEGIN   ] :: Removed automount key :: actually running 'ipa automountkey-del direct_map_21468 auto.direct --key=/direct_map_21468/'
ipa: ERROR: Major (851968): Unspecified GSS failure.  Minor code may provide more information, Minor (39756044): Credential cache is empty
:: [   FAIL   ] :: Removed automount key (Expected 0, got 1)
:: [  BEGIN   ] :: Removed automount location :: actually running 'ipa automountlocation-del direct_map_21468'
ipa: ERROR: Major (851968): Unspecified GSS failure.  Minor code may provide more information, Minor (39756044): Credential cache is empty
:: [   FAIL   ] :: Removed automount location (Expected 0, got 1)
'c91287af-23c1-43d2-bcf3-efc151d69096'
autofs-functional-test-offline-direct-map result: FAIL

Comment 2 Petr Vobornik 2017-04-25 16:13:35 UTC
Upstream ticket:
https://pagure.io/freeipa/issue/6861

Comment 6 Ganna Kaihorodova 2017-05-26 08:31:56 UTC
:: [  BEGIN   ] :: uninstall ipa client automount :: actually running 'ipa-client-automount --uninstall -U'
Restoring configuration
:: [   PASS   ] :: uninstall ipa client automount (Expected 0, got 0)
:: [  BEGIN   ] :: Restarting automount to fetch updated configuration :: actually running 'service autofs restart'
Redirecting to /bin/systemctl restart autofs.service
:: [   PASS   ] :: Restarting automount to fetch updated configuration (Expected 0, got 0)
:: [  BEGIN   ] :: Removed automount key :: actually running 'ipa automountkey-del direct_map_30267 auto.direct --key=/direct_map_30267/'
------------------------------------------
Deleted automount key "/direct_map_30267/"
------------------------------------------
:: [   PASS   ] :: Removed automount key (Expected 0, got 0)
:: [  BEGIN   ] :: Removed automount location :: actually running 'ipa automountlocation-del direct_map_30267'
---------------------------------------------
Deleted automount location "direct_map_30267"
---------------------------------------------
:: [   PASS   ] :: Removed automount location (Expected 0, got 0)

Comment 7 errata-xmlrpc 2017-08-01 09:50:15 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-2017:2304