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 1301586 - ipa host-del --updatedns should remove related dns entries.
Summary: ipa host-del --updatedns should remove related dns entries.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-25 12:55 UTC by German Parente
Modified: 2020-02-14 17:39 UTC (History)
7 users (show)

Fixed In Version: ipa-4.4.0-0.el7.1.alpha1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-04 05:50:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1296898 0 unspecified CLOSED [RFE] it could be nice to have a way to clean dns zones and records of deleted records references. 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 1301582 0 unspecified CLOSED [RFE] ipa-client-install: need an option to completely remove client from idm server. 2022-08-08 16:22:58 UTC
Red Hat Product Errata RHBA-2016:2404 0 normal SHIPPED_LIVE ipa bug fix and enhancement update 2016-11-03 13:56:18 UTC

Internal Links: 1296898 1301582

Description German Parente 2016-01-25 12:55:09 UTC
Description of problem:

using the command 

"ipa host-del <client machine> --updatedns" is not deleting completely the dns entries.

For instance, this entry remains:

dn: idnsName=ipaclient,idnsname=example.com.,cn=dns,dc=example,dc=com

The entry is modified with "--updatedns":

======================================
time: 20160125074150
dn: idnsName=ipaclient,idnsname=example.com.,cn=dns,dc=example,dc=com
changetype: modify
delete: aAAARecord
-
replace: modifiersname
modifiersname: uid=admin,cn=users,cn=accounts,dc=example,dc=com
-
======================================

and

=======================================
time: 20160125074150
dn: idnsname=example.com.,cn=dns,dc=example,dc=com
changetype: modify
replace: idnsSOAserial
idnsSOAserial: 1453725712
-
replace: modifiersname
modifiersname: krbprincipalname=dns/ipaserver.example.com,cn=servi
 ces,cn=accounts,dc=example,dc=com
-
=======================================

but it's not clear to me yet why the entry is not completely deleted.

Feel free to close this bug if you think it's irrelevant.

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

ipa-server-4.2.0-15.el7_2.3.x86_64


How reproducible: always


Additional info:

workaround: 

ipa dnsrecord-del example.com. ipaclient

which will finish to do:

======================================
time: 20160125075333
dn: idnsname=ipaclient,idnsname=example.com.,cn=dns,dc=example,dc=com
changetype: delete
modifiersname: uid=admin,cn=users,cn=accounts,dc=example,dc=com
=======================================

Comment 2 Petr Vobornik 2016-01-25 16:40:13 UTC
German, could you paste here content of  idnsName=ipaclient,idnsname=example.com.,cn=dns,dc=example,dc=com after the mod operation which removed the AAAA record?

Comment 4 Petr Vobornik 2016-02-15 19:40:19 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/5675

Comment 6 Petr Vobornik 2016-03-30 13:53:15 UTC
Summary of internal discussion
"""
So can we summarize and agree that:
a) It is a good idea to have an option to clean DNS record on the host-del
b) Since there are already expectations about system behavior this
option would not be enabled by default.
"""

Comment 9 Scott Poore 2016-09-09 21:56:29 UTC
Verified.

Version ::

ipa-server-4.4.0-9.el7.x86_64

Results ::

[root@master ~]# ipa host-add myhost.ipa.test --ip-address=192.168.122.99 
----------------------------
Added host "myhost.ipa.test"
----------------------------
  Host name: myhost.ipa.test
  Principal name: host/myhost.ipa.test
  Principal alias: host/myhost.ipa.test
  Password: False
  Keytab: False
  Managed by: myhost.ipa.test

[root@master ~]# ldapsearch -xLLL -D "cn=Directory Manager" -w Secret123 -b idnsname=myhost,idnsname=ipa.test.,cn=dns,dc=ipa,dc=test
dn: idnsname=myhost,idnsname=ipa.test.,cn=dns,dc=ipa,dc=test
objectClass: top
objectClass: idnsrecord
aRecord: 192.168.122.99
idnsName: myhost

[root@master ~]# ipa host-del --updatedns myhost.ipa.test
------------------------------
Deleted host "myhost.ipa.test"
------------------------------

[root@master ~]# ldapsearch -xLLL -D "cn=Directory Manager" -w Secret123 -b idnsname=myhost,idnsname=ipa.test.,cn=dns,dc=ipa,dc=test
No such object (32)

Matched DN: idnsname=ipa.test.,cn=dns,dc=ipa,dc=test
[root@master ~]# echo $?
32

Comment 11 errata-xmlrpc 2016-11-04 05:50:17 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, 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-2016-2404.html


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