Bug 828687
Summary: | Unable to update dns when deleting host | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Steeve Goveas <sgoveas> |
Component: | ipa | Assignee: | Rob Crittenden <rcritten> |
Status: | CLOSED ERRATA | QA Contact: | Namita Soman <nsoman> |
Severity: | unspecified | Docs Contact: | |
Priority: | medium | ||
Version: | 6.3 | CC: | jgalipea, mkosek, tbabej |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | ipa-3.0.0-1.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-02-21 09:15:05 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Steeve Goveas
2012-06-05 08:05:54 UTC
Upstream ticket: https://fedorahosted.org/freeipa/ticket/2809 I could not reproduce the bug: # rpm -q ipa-server ipa-server-2.2.0-16.el6.x86_64 # ipa host-add foo.idm.lab.bos.redhat.com --ip-address 10.16.78.100 --------------------------------------- Added host "foo.idm.lab.bos.redhat.com" --------------------------------------- Host name: foo.idm.lab.bos.redhat.com Principal name: host/foo.idm.lab.bos.redhat.com.BOS.REDHAT.COM Password: False Keytab: False Managed by: foo.idm.lab.bos.redhat.com # ipa dnsrecord-find idm.lab.bos.redhat.com Record name: @ NS record: vm-060.idm.lab.bos.redhat.com. ... Record name: foo A record: 10.16.78.100 # ipa dnsrecord-find 78.16.10.in-addr.arpa. Record name: 100 PTR record: foo.idm.lab.bos.redhat.com. # ipa host-del foo.idm.lab.bos.redhat.com --updatedns ----------------------------------------- Deleted host "foo.idm.lab.bos.redhat.com" ----------------------------------------- Steeve, can you please revise provided reproduction steps? I managed to finally reproduce this issue. The key is in the name of the zone that the host belongs to. It needs to be in a FQDN form with a trailing dot: # ipa dnszone-add example.com. --name-server=`hostname` Administrator e-mail address [hostmaster.example.com.]: Zone name: example.com. Authoritative nameserver: vm-055.idm.lab.bos.redhat.com. Administrator e-mail address: hostmaster.example.com. SOA serial: 1346063470 SOA refresh: 3600 SOA retry: 900 SOA expire: 1209600 SOA minimum: 3600 BIND update policy: grant IDM.LAB.BOS.REDHAT.COM krb5-self * A; grant IDM.LAB.BOS.REDHAT.COM krb5-self * AAAA; grant IDM.LAB.BOS.REDHAT.COM krb5-self * SSHFP; Active zone: TRUE Dynamic update: FALSE Allow query: any; Allow transfer: none; # ipa host-add foo.example.com --ip-address=10.16.78.100 ---------------------------- Added host "foo.example.com" ---------------------------- Host name: foo.example.com Principal name: host/foo.example.com.BOS.REDHAT.COM Password: False Keytab: False Managed by: foo.example.com # ipa dnsrecord-find 78.16.10.in-addr.arpa. Record name: 100 PTR record: foo.example.com. ... # ipa host-del foo.example.com --updatedns ipa: ERROR: PTR record does not contain 'foo.example.com..' Fixed upstream: master: https://fedorahosted.org/freeipa/changeset/cb961066aa1244b38ce8c98c82287e41896b033a ipa-3-0: https://fedorahosted.org/freeipa/changeset/facb97c0b40a4a680a49cd2ecee4cf52fc554f0e regression test automated in DNS test suite Verified using:ipa-server-3.0.0-11.el6.x86_64 Test output: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [ LOG ] :: 828687 Unable to update dns when deleting host :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: [23:13:13] :: Ip address is 10.16.96.83 Zone name: llnewzone. Authoritative nameserver: nightcrawler.testrelm.com. Administrator e-mail address: ipaqar.redhat.com. SOA serial: 2010010701 SOA refresh: 303 SOA retry: 101 SOA expire: 1202 SOA minimum: 33 SOA time to live: 55 BIND update policy: grant TESTRELM.COM krb5-self * A; grant TESTRELM.COM krb5-self * AAAA; grant TESTRELM.COM krb5-self * SSHFP; Active zone: TRUE Dynamic update: FALSE Allow query: any; Allow transfer: none; :: [ PASS ] :: Adding a new zone to test with ------------------------- Added host "tt.llnewzone" ------------------------- Host name: tt.llnewzone Principal name: host/tt.llnewzone Password: False Keytab: False Managed by: tt.llnewzone :: [ PASS ] :: Add a new host to test with PTR record: tt.llnewzone. :: [ PASS ] :: Make sure PTR record was added for the new host. --------------------------- Deleted host "tt.llnewzone" --------------------------- :: [ PASS ] :: Try to delete the new host. This should pass ipa: ERROR: 252: DNS resource record not found ipa: ERROR: tt.llnewzone: host not found 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. http://rhn.redhat.com/errata/RHSA-2013-0528.html |