#6060 host-del updatedns options complains about missing ptr record for host
Closed: Fixed None Opened 7 years ago by pvoborni.

Ticket was cloned from Red Hat Bugzilla (product Red Hat Enterprise Linux 7): Bug 1354406

Description of problem:

When --updatedns used along with host-del, it complains about missing ptr
record for host which exists.


Version-Release number of selected component (if applicable):
[root@dhcp207-129 ~]# rpm -q ipa-server ipa-server-dns
ipa-server-4.4.0-1.el7.x86_64
ipa-server-dns-4.4.0-1.el7.noarch
[root@dhcp207-129 ~]#

How reproducible:
Always

Steps to Reproduce:
[root@dhcp207-129 ~]# ipa host-add --ip-address=10.65.207.99
myhost.testrelm.test
---------------------------------
Added host "myhost.testrelm.test"
---------------------------------
  Host name: myhost.testrelm.test
  Principal name: host/myhost.testrelm.test@TESTRELM.TEST
  Principal alias: host/myhost.testrelm.test@TESTRELM.TEST
  Password: False
  Keytab: False
  Managed by: myhost.testrelm.test
[root@dhcp207-129 ~]# ipa host-show myhost.testrelm.test
  Host name: myhost.testrelm.test
  Principal name: host/myhost.testrelm.test@TESTRELM.TEST
  Principal alias: host/myhost.testrelm.test@TESTRELM.TEST
  Password: False
  Keytab: False
  Managed by: myhost.testrelm.test
[root@dhcp207-129 ~]# ipa dnsrecord-find testrelm.test myhost
  Record name: myhost
  A record: 10.65.207.99
----------------------------
Number of entries returned 1
----------------------------
[root@dhcp207-129 ~]# ipa dnsrecord-find 207.65.10.in-addr.arpa. 99
  Record name: 99
  PTR record: myhost.testrelm.test.
----------------------------
Number of entries returned 1
----------------------------
[root@dhcp207-129 ~]# ipa host-del --updatedns myhost.testrelm.test
ipa: ERROR: PTR record does not contain 'myhost.testrelm.test'
[root@dhcp207-129 ~]#

Actual results:
host not deleted

Expected results:
host should have been deleted along with dns records in forward/reverse zones.

master:

  • 8aba4f6 Host-del: fix behavior of --updatedns and PTR records

Metadata Update from @pvoborni:
- Issue assigned to mbasti
- Issue set to the milestone: FreeIPA 4.4.1

7 years ago

Login to comment on this ticket.

Metadata