Problem: forman-installer fails for Foreman_proxy Starting to evaluate the resource
Expected outcome: No error
Foreman and Proxy versions: Version 1.16.1 © 2009-2018 Paul Kelly and Ohad Levy
Foreman and Proxy plugin versions:
Other relevant data:
Hi , As I see from the logs , complete installation “foreman-installer” goes fine , and in the end it gives me error like below
[ INFO 2018-04-17 16:25:26 main] /Stage[main]/Foreman_proxy::Register/Datacat_collector[foreman_proxy::enabled_features]: Evaluated in 0.01 seconds
[ INFO 2018-04-17 16:25:26 main] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[dev-pipe21.bbs.bunnings.com.au]: Starting to evaluate the resource
[DEBUG 2018-04-17 16:25:26 main] Foreman_smartproxy[dev-pipe21.bbs.bunnings.com.au](provider=rest_v3): Making get request to https://dev-pipe21.bbs.bunnings.com.au/api/v2/smart_proxies?search=name=%22dev-pipe21.bbs.bunnings.com.au%22
[ERROR 2018-04-17 16:25:26 main] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[dev-pipe21.bbs.bunnings.com.au]: Could not evaluate: Exception Failed to open TCP connection to : (getaddrinfo: Name or service not known) in get request to: https://dev-pipe21.bbs.bunnings.com.au/api/v2/smart_proxies?search=name=%22dev-pipe21.bbs.bunnings.com.au%22
[ERROR 2018-04-17 16:25:26 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_resource/rest_v3.rb:89:in `rescue in request'
[ERROR 2018-04-17 16:25:26 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_resource/rest_v3.rb:71:in `request'
[ERROR 2018-04-17 16:25:26 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:6:in `proxy'
[ERROR 2018-04-17 16:25:26 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:13:in `id'
[ERROR 2018-04-17 16:25:26 main] /usr/share/foreman-installer/modules/foreman/lib/puppet/provider/foreman_smartproxy/rest_v3.rb:17:in `exists?'
[ERROR 2018-04-17 16:25:26 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/property/ensure.rb:81:in `retrieve'
[ERROR 2018-04-17 16:25:26 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/type.rb:1070:in `retrieve'
And after this , I am able to login to the forman web page .
But on the server where I have installed foreman/puppetmaster , I ran below command and it errored out
[root@dev-pipe21 ~]# puppet agent -t
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 500 on SERVER: Server Error: Failed to find dev-pipe21.bbs.bunnings.com.au via exec: Execution of '/etc/puppetlabs/puppet/node.rb dev-pipe21.bbs.bunnings.com.au' returned 1:
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed when searching for node dev-pipe21.bbs.bunnings.com.au: Failed to find dev-pipe21.bbs.bunnings.com.au via exec: Execution of '/etc/puppetlabs/puppet/node.rb dev-pipe21.bbs.bunnings.com.au' returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
[root@dev-pipe21 ~]#
[root@dev-pipe21 ~]# /etc/puppetlabs/puppet/node.rb dev-pipe21.bbs.bunnings.com.au
During fact upload occured an exception: getaddrinfo: Name or service not known
Unable to read from Cache file: No such file or directory - /opt/puppetlabs/server/data/puppetserver/yaml/foreman/dev-pipe21.bbs.bunnings.com.au.yaml
[root@dev-pipe21 ~]#
Can anyone assist to identify what is the problem ? this may be 2 issues …