Actions
Bug #13696
openRebuild Config deletes PTR records but does not add them
Status:
New
Priority:
Normal
Assignee:
-
Category:
DNS
Target version:
-
Description
Select a host in the all hosts section and choosing "Rebuild Config" fails every time with DNS failure. Foreman and Proxy logs show the deletion of the PTR and A records but only shows the A record being added after. Unsure why Foreman reports an error because it doesn't log anything about an error.
Using dns_nsupdate_gss on the proxy. Both Foreman and Proxy are at version 1.10.1. DNS is AD hosted. Proxy running on CentOS 6 & 7 (tried both OSs).
Logs (identifying data masked/changed)
Proxy log
I, [2016-02-13T16:14:11.437756 #6156] INFO -- : Requesting credentials for Kerberos principal serviceaccount@DOMAIN.NET using keytab /etc/foreman-proxy/dns.keytab I, [2016-02-13T16:14:11.549343 #6156] INFO -- : 172.30.XX.XX - - [13/Feb/2016 16:14:11] "DELETE /som-deploy1.humedica.net HTTP/1.1" 200 - 0.1123 I, [2016-02-13T16:14:11.599534 #6156] INFO -- : Requesting credentials for Kerberos principal serviceaccount@DOMAIN.NET using keytab /etc/foreman-proxy/dns.keytab I, [2016-02-13T16:14:11.707506 #6156] INFO -- : 172.30.XX.XX - - [13/Feb/2016 16:14:11] "DELETE /101.68.30.172.in-addr.arpa HTTP/1.1" 200 - 0.1085 I, [2016-02-13T16:14:11.797363 #6156] INFO -- : Requesting credentials for Kerberos principal serviceaccount@DOMAIN.NET using keytab /etc/foreman-proxy/dns.keytab I, [2016-02-13T16:14:11.885362 #6156] INFO -- : 172.30.XX.XX - - [13/Feb/2016 16:14:11] "POST / HTTP/1.1" 200 - 0.0891
Foreman Log
| Started POST "/hosts/submit_rebuild_config?host_ids%5B%5D=618" for 172.XX.X.XX at 2016-02-13 16:14:09 -0500 2016-02-13 16:14:09 [app] [I] Processing by HostsController#submit_rebuild_config as HTML 2016-02-13 16:14:09 [app] [I] Parameters: {"utf8"=>"✓", "authenticity_token"=>"lrJWHLkduis0PMavAKLJDxU3Rohwu/XbAIdXXZ5N25s=", "host_ids"=>["618"]} 2016-02-13 16:14:09 [app] [I] Delete DHCP reservation for servername.humedica.net-99:60:56:b0:46:9d/172.XX.XX.XXX 2016-02-13 16:14:10 [app] [I] Create DHCP reservation for servername.humedica.net-99:60:56:b0:46:9d/172.XX.XX.XXX 2016-02-13 16:14:11 [app] [I] Delete the DNS A record for servername.humedica.net/172.XX.XX.XXX 2016-02-13 16:14:11 [app] [I] Delete the DNS PTR record for 172.XX.XX.XXX/servername.humedica.net 2016-02-13 16:14:11 [app] [I] Add DNS A record for servername.humedica.net/172.XX.XX.XXX 2016-02-13 16:14:11 [app] [I] Redirected to https://foreman.domain.net/hosts 2016-02-13 16:14:11 [app] [I] Completed 302 Found in 2858ms (ActiveRecord: 2.9ms) 2016-02-13 16:14:12 [app] [I]
Changing host information in the Edit Host section works as expected. Changing IP or host name (or both) and both A and PTR records are updated properly.
Actions