#2809 Unable to update dns when deleting host
Closed: Fixed None Opened 11 years ago by mkosek.

https://bugzilla.redhat.com/show_bug.cgi?id=828687 (Red Hat Enterprise Linux 6)

Description of problem:
While deleting host with --updatedns, the deletion fails with error
"ipa: ERROR: PTR record does not contain
'hp-xw4200-01.rhts.eng.bos.redhat.com..'". Notice there are two trailing dots
in the error message.


Version-Release number of selected component (if applicable):
ipa-server-2.2.0-16.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Add client A and PTR records in IPA DNS server
2. Add client with "ipa host-add" from the ipa server or ipa-join from the
client machine.
3. Try deleting the client with ipa host-del updating dns
# ipa host-del <client host machine> --updatedns

Actual results:
Command exit with error message
ipa: ERROR: PTR record does not contain
'hp-xw4200-01.rhts.eng.bos.redhat.com..'

Expected results:
---------------------------------------------------
Deleted host "hp-xw4200-01.rhts.eng.bos.redhat.com" and updated DNS records
---------------------------------------------------

Additional info:

[root@ibm-hs22-05 ~]# ipa host-find
---------------
2 hosts matched
---------------
  Host name: hp-xw4200-01.rhts.eng.bos.redhat.com
  Principal name:
host/hp-xw4200-01.rhts.eng.bos.redhat.com@RHTS.ENG.BRQ.REDHAT.COM
  SSH public key fingerprint: A8:BA:43:C4:6D:D9:77:A0:60:18:C8:FF:FF:E3:F4:F2
(ssh-rsa), A4:4D:9C:F9:BA:B1:EA:47:20:A9:77:2A:80:10:49:89 (ssh-dss)
  Password: False
  Keytab: False
  Managed by: hp-xw4200-01.rhts.eng.bos.redhat.com

  Host name: ibm-hs22-05.rhts.eng.brq.redhat.com
  Principal name:
host/ibm-hs22-05.rhts.eng.brq.redhat.com@RHTS.ENG.BRQ.REDHAT.COM
  SSH public key fingerprint: 24:25:77:BB:CF:04:F6:CB:99:93:93:D9:88:81:B6:09
(ssh-dss), FA:B1:D8:F4:71:DC:11:3E:91:F9:D7:0B:10:C3:10:37 (ssh-rsa)
  Password: False
  Keytab: True
  Managed by: ibm-hs22-05.rhts.eng.brq.redhat.com
----------------------------
Number of entries returned 2
----------------------------

[root@ibm-hs22-05 ~]# ipa dnsrecord-find rhts.eng.bos.redhat.com. hp-xw4200-01
  Record name: hp-xw4200-01
  A record: 10.16.64.87
----------------------------
Number of entries returned 1
----------------------------

[root@ibm-hs22-05 ~]# ipa dnsrecord-find 64.16.10.in-addr.arpa. 87
  Record name: 87
  PTR record: hp-xw4200-01.rhts.eng.bos.redhat.com.
----------------------------
Number of entries returned 1
----------------------------

[root@ibm-hs22-05 ~]# ipa host-del hp-xw4200-01.rhts.eng.bos.redhat.com
--updatedns
ipa: ERROR: PTR record does not contain
'hp-xw4200-01.rhts.eng.bos.redhat.com..'
[root@ibm-hs22-05 ~]# ipa host-find
---------------
2 hosts matched
---------------
  Host name: hp-xw4200-01.rhts.eng.bos.redhat.com
  Principal name:
host/hp-xw4200-01.rhts.eng.bos.redhat.com@RHTS.ENG.BRQ.REDHAT.COM
  SSH public key fingerprint: A8:BA:43:C4:6D:D9:77:A0:60:18:C8:FF:FF:E3:F4:F2
(ssh-rsa), A4:4D:9C:F9:BA:B1:EA:47:20:A9:77:2A:80:10:49:89 (ssh-dss)
  Password: False
  Keytab: False
  Managed by: hp-xw4200-01.rhts.eng.bos.redhat.com

  Host name: ibm-hs22-05.rhts.eng.brq.redhat.com
  Principal name:
host/ibm-hs22-05.rhts.eng.brq.redhat.com@RHTS.ENG.BRQ.REDHAT.COM
  SSH public key fingerprint: 24:25:77:BB:CF:04:F6:CB:99:93:93:D9:88:81:B6:09
(ssh-dss), FA:B1:D8:F4:71:DC:11:3E:91:F9:D7:0B:10:C3:10:37 (ssh-rsa)
  Password: False
  Keytab: True
  Managed by: ibm-hs22-05.rhts.eng.brq.redhat.com
----------------------------
Number of entries returned 2
----------------------------

[root@ibm-hs22-05 ~]# ipa host-del hp-xw4200-01.rhts.eng.bos.redhat.com
---------------------------------------------------
Deleted host "hp-xw4200-01.rhts.eng.bos.redhat.com"
---------------------------------------------------

[root@ibm-hs22-05 ~]# ipa dnsrecord-find rhts.eng.bos.redhat.com. hp-xw4200-01
  Record name: hp-xw4200-01
  A record: 10.16.64.87
----------------------------
Number of entries returned 1
----------------------------

[root@ibm-hs22-05 ~]# ipa dnsrecord-find 64.16.10.in-addr.arpa. 87
  Record name: 87
  PTR record: hp-xw4200-01.rhts.eng.bos.redhat.com.
----------------------------
Number of entries returned 1
----------------------------

[root@ibm-hs22-05 ~]# ipa host-find
--------------
1 host matched
--------------
  Host name: ibm-hs22-05.rhts.eng.brq.redhat.com
  Principal name:
host/ibm-hs22-05.rhts.eng.brq.redhat.com@RHTS.ENG.BRQ.REDHAT.COM
  SSH public key fingerprint: 24:25:77:BB:CF:04:F6:CB:99:93:93:D9:88:81:B6:09
(ssh-dss), FA:B1:D8:F4:71:DC:11:3E:91:F9:D7:0B:10:C3:10:37 (ssh-rsa)
  Password: False
  Keytab: True
  Managed by: ibm-hs22-05.rhts.eng.brq.redhat.com
----------------------------
Number of entries returned 1
----------------------------

This is a good candidate to start learning FreeIPA.

Moving closed RC1 tickets to Beta 3.

Metadata Update from @mkosek:
- Issue assigned to tbabej
- Issue set to the milestone: FreeIPA 3.0 Beta 3

7 years ago

Login to comment on this ticket.

Metadata