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.
The "ipa host-del --updatedns" command does not update the host DNS records if the DNS zone of the host is not fully qualified. Creating unqualified zones was possible in Red Hat Enterprise Linux 7.0 and 6. If you execute "ipa host-del --updatedns" on an unqualified DNS zone, for example, "example.test" instead of the fully qualified "example.test.", the command fails with an internal error and deletes the host but not its DNS records. To work around this problem, execute the "ipa host-del --updatedns" command on an IdM server running Red Hat Enterprise Linux 7.0 or 6, where updating the host DNS records works as expected, or update the host DNS records manually after running the command on Red Hat Enterprise Linux 7.1.
Created attachment 987994[details]
console output and httpd error log
Description of problem:
Saw following error on console while doing "ipa host-del" using "--updatedns" on RHEL-7.1 based machine which was enrolled as replica to RHEL-6.6 based master.
[root@vm-idm-004 ~]# ipa host-del --updatedns testhostBZ910468.testrelm.test
ipa: ERROR: an internal error has occurred
[root@vm-idm-004 ~]#
Same command works fine on RHEL-7.1 based IPA Master
[root@master ~]# ipa host-del --updatedns testhostBZ910468.testrelm.test
---------------------------------------------
Deleted host "testhostbz910468.testrelm.test"
---------------------------------------------
[root@master ~]#
Version-Release number of selected component (if applicable):
[root@vm-idm-004 ~]# rpm -q ipa-server
ipa-server-4.1.0-18.el7.x86_64
[root@vm-idm-004 ~]#
How reproducible:
Always
Steps to Reproduce:
1. Install a RHEL-6.6 based IPA master
2. Enroll a RHEL-7.1 based replica from step(1) Master
3. Promote replica of step(2) as Master
4. Add a host using ipa host-add
ipa host-add testhostBZ910468.testrelm.test --ip-address='10.65.206.140'
5. Delete host added in step(5)
ipa host-del --updatedns testhostBZ910468.testrelm.test
Actual results:
"ipa: ERROR: an internal error has occurred" shown on console
Expected results:
host should have been deleted successfully.
Additional info:
(1)Please find the attached snippet from /var/log/httpd/error_log for assertion error seen.
Martin, Kaleem did not create a zone. His steps indicate he installed 6.6 server, 7.1 replica, and added a host, then deleted this host. So any zones created - are from what ipa-server install added. Why should a host-del error out in this case?
Kaleem, what bind-dyndb-version on 6.6 did you use? Were you using the build from 6.6.z - bind-dyndb-ldap-2.3-6.el6_6 ?
Adding a zone by dnszone-add on RHEL-6.x or using the default zone installed together with IPA server does not matter - both are dotless and both will cause this issue on RHEL-7.1 replicas.
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://rhn.redhat.com/errata/RHBA-2015-2362.html
Created attachment 987994 [details] console output and httpd error log Description of problem: Saw following error on console while doing "ipa host-del" using "--updatedns" on RHEL-7.1 based machine which was enrolled as replica to RHEL-6.6 based master. [root@vm-idm-004 ~]# ipa host-del --updatedns testhostBZ910468.testrelm.test ipa: ERROR: an internal error has occurred [root@vm-idm-004 ~]# Same command works fine on RHEL-7.1 based IPA Master [root@master ~]# ipa host-del --updatedns testhostBZ910468.testrelm.test --------------------------------------------- Deleted host "testhostbz910468.testrelm.test" --------------------------------------------- [root@master ~]# Version-Release number of selected component (if applicable): [root@vm-idm-004 ~]# rpm -q ipa-server ipa-server-4.1.0-18.el7.x86_64 [root@vm-idm-004 ~]# How reproducible: Always Steps to Reproduce: 1. Install a RHEL-6.6 based IPA master 2. Enroll a RHEL-7.1 based replica from step(1) Master 3. Promote replica of step(2) as Master 4. Add a host using ipa host-add ipa host-add testhostBZ910468.testrelm.test --ip-address='10.65.206.140' 5. Delete host added in step(5) ipa host-del --updatedns testhostBZ910468.testrelm.test Actual results: "ipa: ERROR: an internal error has occurred" shown on console Expected results: host should have been deleted successfully. Additional info: (1)Please find the attached snippet from /var/log/httpd/error_log for assertion error seen.