Bug 1740167
| Summary: | ipa-client-automount --uninstall is not restoring nsswitch.conf | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | anuja <amore> |
| Component: | ipa | Assignee: | Thomas Woerner <twoerner> |
| Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.1 | CC: | fcami, rcritten, tscherf, twoerner, wchadwic |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | 8.1 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-11-05 20:53:27 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
anuja
2019-08-12 12:01:33 UTC
Upstream ticket: https://pagure.io/freeipa/issue/8038 Rob explained the behavior was changed in https://pagure.io/freeipa/c/a0e846f56c8de3b549d1d284087131da13135e34?branch=master to attend to the following scenario: set automount to files in /etc/nssswitch.conf ipa-client-install grep automount /etc/nsswitch.conf (should be sss files) ipa-client-automount --no-sssd grep automount /etc/nsswitch.conf (should be files ldap) ipa-client-automount --uninstall -U grep automount /etc/nsswitch.conf will be files, the original state because we cannot stack file backups in the filestore and ipa-client-install already backups nsswitch.conf. Fixed upstream master: https://pagure.io/freeipa/c/405dcc6becfca504dce7e06c6f0849a9c06df4c6 https://pagure.io/freeipa/c/b27ad6e9f956a2485eee09b647b45c4901a1f928 https://pagure.io/freeipa/c/e5af8c19a9e40fb3b96c56ace081f79980437fc2 https://pagure.io/freeipa/c/41ef8fba31ddbb32e2e5b7cccdc9b582a0809111 Fixed upstream ipa-4-8: https://pagure.io/freeipa/c/abea98a9b918c0771ad10b314238b32c570f0372 https://pagure.io/freeipa/c/2f0afeda6e66fcca5c184a4036112fcd315f2f6e https://pagure.io/freeipa/c/6e92776bfc199e9ca92e11ef3315dcecad3c9307 https://pagure.io/freeipa/c/2da90887632c764a73866c9ad3824ebb53c0aa73 Verified using version : ipa-server-4.8.0-10.module+el8.1.0+4098+f286395e.x86_64 Verified using existing downstream test-suite [ci-vm-10-0-153-60.ho] :: install then uninstall [ci-vm-10-0-153-60.ho] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [ci-vm-10-0-153-60.ho] :: [ 09:32:15 ] :: [ PASS ] :: clean up ipa-client-automount success [ci-vm-10-0-153-60.ho] :: [ 09:32:15 ] :: [ BEGIN ] :: Running 'ipa-client-automount --server=ci-vm-10-0-153-37.testrelm.test --location=Location__A -U' [ci-vm-10-0-153-60.ho] IPA server: ci-vm-10-0-153-37.testrelm.test [ci-vm-10-0-153-60.ho] Location: Location__A [ci-vm-10-0-153-60.ho] Configured /etc/idmapd.conf [ci-vm-10-0-153-60.ho] Restarting sssd, waiting for it to become available. [ci-vm-10-0-153-60.ho] Started autofs [ci-vm-10-0-153-60.ho] :: [ 09:32:19 ] :: [ PASS ] :: Command 'ipa-client-automount --server=ci-vm-10-0-153-37.testrelm.test --location=Location__A -U' (Expected 0, got 0) [ci-vm-10-0-153-60.ho] :: [ 09:32:19 ] :: [ PASS ] :: [/etc/nsswitch.conf] contains expected [^automount: sss files] [ci-vm-10-0-153-60.ho] :: [ 09:32:19 ] :: [ PASS ] :: [/etc/idmapd.conf] contains expected [^Domain = testrelm.test$] [ci-vm-10-0-153-60.ho] :: [ 09:32:19 ] :: [ BEGIN ] :: Running 'ipa-client-automount --uninstall -U' [ci-vm-10-0-153-60.ho] Restoring configuration [ci-vm-10-0-153-60.ho] :: [ 09:32:22 ] :: [ PASS ] :: Command 'ipa-client-automount --uninstall -U' (Expected 0, got 0) [ci-vm-10-0-153-60.ho] :: [ 09:32:22 ] :: [ PASS ] :: [/etc/nsswitch.conf] contains expected [^automount: sss files] [ci-vm-10-0-153-60.ho] :: [ 09:32:22 ] :: [ PASS ] :: [/etc/idmapd.conf] does NOT contain [^Domain = testrelm.test$], this is expected 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 |