Bug 1958777
| Summary: | ipa-client-install --uninstall fails post upgrade from rhel7.9 to rhel8.0 using leapp. | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Sudhir Menon <sumenon> |
| Component: | ipa | Assignee: | Florence Blanc-Renaud <frenaud> |
| Status: | CLOSED ERRATA | QA Contact: | anuja <amore> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.6 | CC: | amore, frenaud, gkaihoro, pstodulk, rcritten, rjeffman, ssidhaye, tscherf |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-4.9.10-1.module+el8.7.0+15691+2b2c1dd5 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-08 09:35:45 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
Sudhir Menon
2021-05-10 06:42:14 UTC
Hi Sudhir. Thank you for the report. Can you reproduce the issue with RHEL 8.2 or RHEL 8.4 Beta? Upgrades on RHEL 8.0 are not supported anymore (since 8.1 GA) and there are many other problems on that old version. Moving to ipa component The issue happens because the RHEL 7 client is configured with authconfig while the RHEL8 client uninstall expects to work with authselect. If we decide to fix, the patch will go in RHEL8, hence moving to RHEL8 product. Upstream ticket: https://pagure.io/freeipa/issue/9147 master: * ce0592bd478c184b1c0c2a75f675c5a361f4a9a4 client uninstall: handle uninstall with authconfig Fixed upstream ipa-4-9: https://pagure.io/freeipa/c/d39e232e9ee28da5d4488135d264d2d1b9e671ba Pre-Verified using test-compose : http://artifacts.osci.redhat.com/comp/rhel-8.7.0-mbs/15690-1076-idm/ Using version : RHEL7.9 ipa-client-4.6.8-5.el7_9.11.x86_64 RHEL8.7 ipa-client-4.9.10-1.module+el8.7.0+15690+c8d45780.x86_64 Steps performed : 1. Install IPA server and IPA client on RHEL7.9 2. Setup repos for leapp upgrade to RHEL8.7 3. leapp upgrade --enablerepo test-baseos --enablerepo test-appstream --no-rhsm 4. Ensure that upgrade is successful 5. Reboot 6. Uninstall ipa-client +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [root@client ~]# date ; ipa-client-install --uninstall -U Thu Jun 30 10:13:23 EDT 2022 Unenrolling client from IPA server Removing Kerberos service principals from /etc/krb5.keytab Disabling client Kerberos and LDAP configurations WARNING: Unable to revert to the pre-installation state ('authconfig' tool has been deprecated in favor of 'authselect'). The default sssd profile will be used instead. The authconfig arguments would have been: authconfig --disablesssdauth Redundant SSSD configuration file /etc/sssd/sssd.conf was moved to /etc/sssd/sssd.conf.deleted Restoring client configuration files Unconfiguring the NIS domain. nscd daemon is not installed, skip configuration nslcd daemon is not installed, skip configuration Systemwide CA database updated. Client uninstall complete. The ipa-client-install command was successful [root@client ~]# echo $? 0 [root@client ~]# tail /var/log/ipaclient-uninstall.log 2022-06-30T14:13:27Z DEBUG Restart of sshd.service complete 2022-06-30T14:13:27Z DEBUG Loading StateFile from '/var/lib/ipa-client/sysrestore/sysrestore.state' 2022-06-30T14:13:27Z DEBUG Starting external process 2022-06-30T14:13:27Z DEBUG args=['/usr/bin/update-ca-trust'] 2022-06-30T14:13:27Z DEBUG Process finished, return code=0 2022-06-30T14:13:27Z DEBUG stdout= 2022-06-30T14:13:27Z DEBUG stderr= 2022-06-30T14:13:27Z INFO Systemwide CA database updated. 2022-06-30T14:13:27Z INFO Client uninstall complete. 2022-06-30T14:13:27Z INFO The ipa-client-install command was successful [root@client ~]# Using version: RHEL7 : ipa-client-4.6.8-5.el7_9.11.x86_64 RHEL8 : ipa-client-4.9.10-3.module+el8.7.0+15888+685a878f.x86_64 Verified using nightly run : 2022-07-20T12:20:11+0000 =========================== short test summary info ============================ 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_server_inhibitor 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_version 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_kinit 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_provider 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_user_otp_login 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_server_onlypkg_install 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_aduser_id 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_aduser_ssh 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_sudouser 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_client_replica_promotion 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_client_replica_install 2022-07-20T12:20:11+0000 PASSED src/ipa-leapp-upgrade/test_leapp_upgrade.py::Testipaleappupgrade::test_client_uninstall 2022-07-20T12:20:11+0000 ================== 12 passed, 2 warnings in 914.92s (0:15:14) ================== 2022-07-20T12:20:12+0000 AVC not found 2022-07-20T12:20:12+0000 AVC not found 2022-07-20T12:20:12+0000 AVC not found 2022-07-20T12:20:12+0000 AVC not found 2022-07-20T12:20:12+0000 RETURN CODE: 0 2022-07-20T12:20:12+0000 UPSTREAM TESTS STEP END: src/ipa-leapp-upgrade/test_leapp_upgrade.py 2022-07-20T12:20:12+0000 PHASE END: test 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 (idm:client and idm:DL1 bug fix and enhancement update), 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-2022:7540 |