I am having some issues when provisioning a new server with foreman and it
appears that the problem is related to the DNS configuration.
My error message is similar to the one described here:
http://projects.theforeman.org/issues/3531
The recommendation from Dominic was: This suggests one of your
authoritative DNS servers is unavailable. Double check NS addresses in your
zones, as well as the server specified in the zone SOA and ensure they're
answering queries from Foreman.
Problem is that I don't know how to validate that my DNS is working
correctly.
I did install the DNS service via the katello-intall as follows:
katello-installer --foreman-authentication=true --capsule-tftp=true
–capsule-tftp-servername="192.168.2.150" --capsule-dhcp=true
–capsule-dhcp-gateway="10.10.10.10" --capsule-dhcp-interface="eth1"
–capsule-dhcp-range="10.10.10.20 10.10.10.200" *–capsule-dns=true
–capsule-dns-forwarders "10.10.10.10" --capsule-dns-interface="eth1"
–capsule-dns-reverse="10.10.10.in-addr.arpa" --capsule-dns-zone "hq.ltg" *
This machine has two interfaces: 192.168.2.150 eth0 and 10.10.10.10 eth1
And the foreman-proxy/proxy.log states:
When selecting the network, it looks for an available IP
D, [2014-06-12T00:56:11.229797 #10222] DEBUG – : Reading config file
/etc/dhcp/dhcpd.conf
D, [2014-06-12T00:56:11.230044 #10222] DEBUG – : Reading config file
/etc/dhcp/dhcpd.hosts
D, [2014-06-12T00:56:11.230207 #10222] DEBUG – : Loading subnets for
127.0.0.1
D, [2014-06-12T00:56:11.230356 #10222] DEBUG – : Added
10.10.10.0/255.255.255.0 to 127.0.0.1
D, [2014-06-12T00:56:11.230609 #10222] DEBUG – : Loading subnet data for
10.10.10.0/255.255.255.0
I, [2014-06-12T00:56:11.230924 #10222] INFO – : Enumerated hosts on
10.10.10.0
D, [2014-06-12T00:56:11.231003 #10222] DEBUG – : Lazy loaded
10.10.10.0/255.255.255.0 records
D, [2014-06-12T00:56:11.231101 #10222] DEBUG – : trying to find an ip
address, we got {:to=>"10.10.10.50", :from=>"10.10.10.20",
:mac=>"00:50:56:83:DA:EF"}
D, [2014-06-12T00:56:11.233591 #10222] DEBUG – : Searching for free IP -
pinging 10.10.10.23
D, [2014-06-12T00:56:13.258717 #10222] DEBUG – : Found free IP 10.10.10.23
out of a total of 31 free IPs
And when hitting submit to create the Host, it gives me the error:
D, [2014-06-12T00:57:31.295306 #10222] DEBUG – : Reading config file
/etc/dhcp/dhcpd.conf
D, [2014-06-12T00:57:31.295976 #10222] DEBUG – : Reading config file
/etc/dhcp/dhcpd.hosts
D, [2014-06-12T00:57:31.296242 #10222] DEBUG – : Loading subnets for
127.0.0.1
D, [2014-06-12T00:57:31.296428 #10222] DEBUG – : Added
10.10.10.0/255.255.255.0 to 127.0.0.1
D, [2014-06-12T00:57:31.296729 #10222] DEBUG – : Loading subnet data for
10.10.10.0/255.255.255.0
I, [2014-06-12T00:57:31.297127 #10222] INFO – : Enumerated hosts on
10.10.10.0
D, [2014-06-12T00:57:31.297228 #10222] DEBUG – : Lazy loaded
10.10.10.0/255.255.255.0 records
E, [2014-06-12T00:57:31.297416 #10222] ERROR – : Record
10.10.10.0/00:50:56:83:da:ef not foundD, [2014-06-12T00:57:31.361010
#10222] DEBUG – : Reading config file /etc/dhcp/dhcpd.conf
D, [2014-06-12T00:57:31.361270 #10222] DEBUG – : Reading config file
/etc/dhcp/dhcpd.hosts
D, [2014-06-12T00:57:31.361454 #10222] DEBUG – : Loading subnets for
127.0.0.1
D, [2014-06-12T00:57:31.361626 #10222] DEBUG – : Added
10.10.10.0/255.255.255.0 to 127.0.0.1
D, [2014-06-12T00:57:31.362011 #10222] DEBUG – : Loading subnet data for
10.10.10.0/255.255.255.0
I, [2014-06-12T00:57:31.362305 #10222] INFO – : Enumerated hosts on
10.10.10.0
D, [2014-06-12T00:57:31.362408 #10222] DEBUG – : Lazy loaded
10.10.10.0/255.255.255.0 records
E, [2014-06-12T00:57:31.362642 #10222] ERROR – : Record
10.10.10.0/10.10.10.23 not found
Hope you can guide me in the correct direction.
IB