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 1909876 - ipa uninstall fails when dns not installed
Summary: ipa uninstall fails when dns not installed
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: ipa
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Thomas Woerner
QA Contact: ipa-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-12-21 21:59 UTC by Scott Poore
Modified: 2021-05-18 15:48 UTC (History)
10 users (show)

Fixed In Version: ipa-4.9.1-1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:48:23 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
report.html (195.66 KB, text/html)
2021-02-02 14:48 UTC, Mohammad Rizwan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Fedora Pagure freeipa issue 8630 0 None None None 2020-12-22 07:40:20 UTC

Description Scott Poore 2020-12-21 21:59:02 UTC
Description of problem:

Uninstalling IPA after it was installed without DNS results in a failure because named group is missing:

# ipa-server-install --uninstall --unattended
Forcing removal of servername
Failed to cleanup servername DNS entries: no such entry
You may need to manually remove them from the tree
----------------------------------------------------------------------
Deleted IPA server "servername"
----------------------------------------------------------------------
Shutting down all IPA services
Unconfiguring CA
group 'named' not found
The ipa-server-install command failed. See /var/log/ipaserver-uninstall.log for more information


Version-Release number of selected component (if applicable):

# rpm -q ipa-server
ipa-server-4.9.0-0.5.rc3.module+el8.4.0+9124+ced20601.x86_64

# dnf module info idm
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.

Last metadata expiration check: 1:07:39 ago on Mon 21 Dec 2020 08:40:27 PM UTC.
Name             : idm
Stream           : DL1 [e] [a]
Version          : 8040020201211123410
Context          : 1f8cbe47
Architecture     : x86_64
Profiles         : adtrust, client, common [d], dns, server [i]
Default profiles : common
Repo             : rhel-8.4-appstream
Summary          : The Red Hat Enterprise Linux Identity Management system module


How reproducible:
seems consistent

Steps to Reproduce:
1. dnf -y module enable idm:DL1
2. dnf -y module install idm:DL1/server
3. ipa-server-install --realm=TESTRELM.TEST --ds-password=Secret123 --admin-password=Secret123 --unattended
4. ipa-server-install --uninstall --unattended

Actual results:
Fails with message:

group 'named' not found

Expected results:
ipa uninstalled cleanly with no failures.

Additional info:

simply adding the system user named before uninstall works around the issue.

Comment 3 Alexander Bokovoy 2020-12-22 08:02:18 UTC
Upstream PR: https://github.com/freeipa/freeipa/pull/5376

Comment 7 Florence Blanc-Renaud 2021-01-21 12:48:03 UTC
Test case added upstream in ipatests/test_integration/test_uninstall.py (new file)

Fixed upstream
master:
https://pagure.io/freeipa/c/69d480003bc6a7c75280c3c1a5e30cd252edcaec
https://pagure.io/freeipa/c/74b4d7e4df3b5406bc62ed1663318430e1739d1c

Comment 17 Mohammad Rizwan 2021-02-02 14:48:52 UTC
Created attachment 1754415 [details]
report.html

Final verification done using: ipa-server-4.9.1.1.module+el8.4.0+9665+c9815399

2021-02-02T13:51:51+0000 ------------- generated html file: file:///tmp/wp/twd/report.html --------------
2021-02-02T13:51:51+0000 =========================== short test summary info ============================
2021-02-02T13:51:51+0000 PASSED ipatests/test_integration/test_uninstallation.py::TestUninstallWithoutDNS::test_uninstall_server_without_dns
2021-02-02T13:51:51+0000 ==================== 1 passed, 1 warnings in 364.40 seconds ====================

Comment 18 Alexander Bokovoy 2021-02-03 07:03:49 UTC
Backport for ipa-4-9:
https://pagure.io/freeipa/c/85674f16a18a6d4917dcf56330dc122902b53475

Comment 20 errata-xmlrpc 2021-05-18 15:48:23 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 (Moderate: idm:DL1 and idm:client security, 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/RHSA-2021:1846


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