Marek Hulán wrote:
it seems the DNS resolution didn't work. This could be caused by #18765 that was introduced in 1.19. But looking at the trace, it seems the error is raised sooner, during DNS orchestration. Foreman tries to check there's no existing DNS record before it creates new. It uses local DNS resolver for this. Can you check /etc/resolv.conf is configured correctly on your Foreman host? Also does host whatever.host.your.building
work fine on this machine? Perhaps if you ran foreman-installer on upgrade, it might have overridden something.
Thanks for the response. DNS was the first thing I checked, and it is working ok. I can't do a host newhost.fqdn
because Foreman's DNS smart proxy is configured to take care of that. However, DNS is working fine on the local system (Foreman and DNS are on the same system, as well as DHCP, and I am also using that Smart Proxy).
I double-checked the smart proxy documentation and it seems I have everything in order. I just am stumped because I can't trace the error message through Ruby's logic (not a Ruby dev by any means) and I didn't see any other warnings or errors in the logs.
Here is some output from the local system.
[root@foreman ~]# cat /etc/resolv.conf
# Generated by NetworkManager
search rivalab.geocomputing.net
nameserver 192.168.110.129
nameserver 192.168.100.104
[root@foreman ~]# nslookup 192.168.110.129
Server: 192.168.110.129
Address: 192.168.110.129#53
129.110.168.192.in-addr.arpa name = foreman.rivalab.geocomputing.net.
[root@foreman ~]# host foreman
foreman.rivalab.geocomputing.net has address 192.168.110.129
[root@foreman settings.d]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
[root@foreman settings.d]# cat dns.yml dns_nsupdate.yml
---
# DNS management
:enabled: yes
# valid providers:
# dns_dnscmd (Microsoft Windows native implementation)
# dns_nsupdate
# dns_nsupdate_gss (for GSS-TSIG support)
# dns_libvirt (dnsmasq via libvirt)
:use_provider: dns_nsupdate
# use this setting if you want to override default TTL setting (86400)
:dns_ttl: 86400
---
#
# Configuration file for 'nsupdate' dns provider
#
:dns_key: /etc/rndc.key
# use this setting if you are managing a dns server which is not localhost though this proxy
:dns_server: 127.0.0.1