Bug 1790886
Summary: | ipa-client-automount fails after repeated installation/uninstallation | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Sergey Orlov <sorlov> | |
Component: | ipa | Assignee: | Thomas Woerner <twoerner> | |
Status: | CLOSED ERRATA | QA Contact: | ipa-qe <ipa-qe> | |
Severity: | unspecified | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 8.2 | CC: | abokovoy, amore, fcami, ksiddiqu, pasik, pcech, rcritten, tscherf | |
Target Milestone: | rc | Keywords: | Regression, TestCaseProvided | |
Target Release: | 8.0 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | ipa-server-4.8.4-6.module+el8.2.0+5773+68ace8c5.x86_64 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1796989 (view as bug list) | Environment: | ||
Last Closed: | 2020-04-28 15:44:43 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: | 1796989 | |||
Bug Blocks: |
Description
Sergey Orlov
2020-01-14 13:27:14 UTC
Also downstream bash:ipa-clirent-automount is failing. Adding regression label. Taking for investigation. This is due to ipa-client-automount not removing the following line from sssd.conf: ipa_automount_location = default Removing this line and launching "ipa-client-automount --location default -U" works. The issue (ipa_automount_location configuration entry not removed from sssd.conf) is also present upstream. The following patch fixes it on my RHEL 8.2 Beta test system: diff --git a/ipaclient/install/ipa_client_automount.py b/ipaclient/install/ipa_client_automount.py index 3ef257a43..fdf974d0d 100644 --- a/ipaclient/install/ipa_client_automount.py +++ b/ipaclient/install/ipa_client_automount.py @@ -355,9 +355,10 @@ def uninstall(fstore, statestore): continue if provider == "ipa": domain.remove_option('ipa_automount_location') + sssdconfig.save_domain(domain) domain.remove_provider('autofs') + sssdconfig.save_domain(domain) break - sssdconfig.save_domain(domain) sssdconfig.write(paths.SSSD_CONF) sssd = services.service('sssd', api) sssd.restart() Switching to ASSIGNED. This requires adapting ipatests properly. Cloned to SSSD because a fix to https://bugzilla.redhat.com/show_bug.cgi?id=1796989 would fix the issue for IPA. Still: * applying the above diff makes sense for multiple domains * tests should be adapted to avoid future regressions hence keeping this bug open. Upstream ticket: https://pagure.io/freeipa/issue/8190 Fixed upstream master: https://pagure.io/freeipa/c/e1b6e3ba9b174fbe86dc2567fb8429d2e6473640 https://pagure.io/freeipa/c/5f9d5281848a4de3acd669caa277d1b830722b71 Fixed upstream ipa-4-8: https://pagure.io/freeipa/c/6332aed9ba67e2ee759a9d988ba92139486469d4 https://pagure.io/freeipa/c/7ae804c726970ae467a7f76efa21bae40405551d Verified using version: ipa-server-4.8.4-6.module+el8.2.0+5773+68ace8c5.x86_64 As this is regression logged using existing test-suites : upstream:test_nfs.py and downstream:bash:ipa-client-automount Adding test-report logs: ============================================================================== downstream:bash:ipa-client-automount ============================================================================== 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] ====================================== Final Report ======================================= 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] Test Date: Fri Feb 21 19:38:02 EST 2020 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] Total : [57] 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] Passed: [57] 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] Failed: [0] 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] Unfinished: [0] 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] Abort : [0] 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] Crash : [0] 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] +-----------------------------[RPMs & OS: [RedHat - x86_64]-----------------------------+ 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] | ipa-client-4.8.4-6.module+el8.2.0+5773+68ace8c5.x86_64 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] | ipa-client-common-4.8.4-6.module+el8.2.0+5773+68ace8c5.noarch 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] | sssd-ipa-2.2.3-16.el8.x86_64 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] ------------------------------------------------------------------------------------------ 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] +-----------------------------------------------------------------------------------------+ 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] Test:[/ipa-server/rhel80/ipa-client-automount/root]: [ Pass(57/57): 100% ] 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] +-----------------------------------------------------------------------------------------+ 2020-02-22T00:38:04 [ci-vm-10-0-155-140.h] +----------------------------------------------------------------------+ ============================================================================== upstream:test_nfs.py ============================================================================== ============================= test session starts ============================== platform linux -- Python 3.6.8, pytest-3.4.2, py-1.5.3, pluggy-0.6.0 -- /usr/libexec/platform-python cachedir: .pytest_cache metadata: {'Python': '3.6.8', 'Platform': 'Linux-4.18.0-180.el8.x86_64-x86_64-with-redhat-8.2-Ootpa', 'Packages': {'pytest': '3.4.2', 'py': '1.5.3', 'pluggy': '0.6.0'}, 'Plugins': {'metadata': '1.8.0', 'html': '1.22.1', 'sourceorder': '0.5', 'multihost': '3.0'}} rootdir: /home/cloud-user, inifile: plugins: metadata-1.8.0, html-1.22.1, sourceorder-0.5, multihost-3.0 collecting ... collected 6 items test_nfs.py::TestNFS::test_prepare_users <- ../../usr/lib/python3.6/site-packages/ipatests/test_integration/test_nfs.py PASSED [ 16%] test_nfs.py::TestNFS::test_krb5_nfsd <- ../../usr/lib/python3.6/site-packages/ipatests/test_integration/test_nfs.py PASSED [ 33%] test_nfs.py::TestNFS::test_krb5_nfs_manual_configuration <- ../../usr/lib/python3.6/site-packages/ipatests/test_integration/test_nfs.py PASSED [ 50%] test_nfs.py::TestNFS::test_automount <- ../../usr/lib/python3.6/site-packages/ipatests/test_integration/test_nfs.py PASSED [ 66%] test_nfs.py::TestIpaClientAutomountFileRestore::test_nsswitch_backup_restore_sssd <- ../../usr/lib/python3.6/site-packages/ipatests/test_integration/test_nfs.py PASSED [ 83%] test_nfs.py::TestIpaClientAutomountFileRestore::test_nsswitch_backup_restore_no_sssd <- ../../usr/lib/python3.6/site-packages/ipatests/test_integration/test_nfs.py PASSED [100%] ---------------- generated xml file: /home/cloud-user/junit.xml ---------------- ----------- generated html file: file:///home/cloud-user/report.html ----------- ========================= 6 passed in 1189.44 seconds ========================== Based on this marking bz as verified. 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/RHEA-2020:1640 |