Foreman 1.13 install - puppet errors

Anyone else having issues with the install of Foreman 1.13?

I have a Centos7 server that I have been trying to install Foreman 1.13,
but it errors out when it tries to do the initial Puppet Run.

Output from the foreman-installer:

Running "puppet agent -t"…
Warning: Unable to fetch my node definition, but the agent run will
continue:
Warning: Error 400 on SERVER: Failed to find <hostname> via exec: Execution
of '/etc/puppet/node.rb <hostname>' returned 1:
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed when searching for node <hostname>: Failed to find
foreman.quicksand.identix.com via exec: Execution of
'/etc/puppet/node.rb <hostname>' returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
ERR: The puppet agent command has failed has failed.

Output from /var/log/foreman/production.log:

Oct 13 16:22:39 foreman puppet-master[7211]: Starting Puppet master version
3.8.7
Oct 13 16:22:39 foreman puppet-master[7226]: The environment must be purely
alphanumeric, not ''
Oct 13 16:22:56 foreman puppet-master[7226]: Failed to find <hostname> via
exec: Execution of '/etc/puppet/node.rb <hostname>' returned 1:
Oct 13 16:22:56 foreman puppet-agent[7261]: Unable to fetch my node
definition, but the agent run will continue:
Oct 13 16:22:56 foreman puppet-agent[7261]: Error 400 on SERVER: Failed to
find <hostname> via exec: Execution of '/etc/puppet/node.rb <hostname>'
returned 1:
Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving pluginfacts
Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving plugin
Oct 13 16:22:57 foreman puppet-agent[7261]: Loading facts
Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for
node <hostname>: Failed to find <hostname> via exec: Execution of
'/etc/puppet/node.rb <hostname>' returned 1:
Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for
node <hostname>: Failed to find <hostname> via exec: Execution of
'/etc/puppet/node.rb <hostname>' returned 1:
Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog from
remote server: Error 400 on SERVER: Failed when searching for
node <hostname>: Failed to find <hostname> via exec: Execution of
'/etc/puppet/node.rb <hostname>' returned 1:
Oct 13 16:22:59 foreman puppet-agent[7261]: Not using cache on failed
catalog
Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog;
skipping run

Here is the output and log file:

Output:
[root@foreman ~]# /etc/puppet/node.rb foreman.quicksand.identix.com
During the fact upload the server responded with: 403 Forbidden. Error is
ignored and the execution continues.
{
"error": {"message":"Access denied","details":"Missing one of the
required permissions: upload_facts"}
}
Error retrieving node foreman.quicksand.identix.com: Net::HTTPForbidden
Check Foreman's /var/log/foreman/production.log for more information.

/var/log/foreman/production.log file:
2016-10-14 09:09:14 2ac200ec [app] [I] Processing by
HostsController#externalNodes as YML
2016-10-14 09:09:14 2ac200ec [app] [I] Parameters:
{"name"=>"foreman.quicksand.identix.com"}
2016-10-14 09:09:14 2ac200ec [app] [W] No smart proxy server found on
["foreman.quicksand.identix.com", "puppet", "puppet.quicksand.identix.com"]
and is not in trusted_puppetmaster_hosts
2016-10-14 09:09:14 2ac200ec [app] [I] Redirected to
https://foreman.quicksand.identix.com/users/login
2016-10-14 09:09:14 2ac200ec [app] [I] Filter chain halted as
#<Proc:0x000000053e3230@/usr/share/foreman/app/controllers/concerns/foreman/controller/smart_proxy_auth.rb:14>
rendered or redirected
2016-10-14 09:09:14 2ac200ec [app] [I] Completed 403 Forbidden in 7ms
(ActiveRecord: 0.4ms)

··· On Thursday, October 13, 2016 at 4:35:10 PM UTC-5, Andrew Enstad wrote: > > Anyone else having issues with the install of Foreman 1.13? > > I have a Centos7 server that I have been trying to install Foreman 1.13, > but it errors out when it tries to do the initial Puppet Run. > > Output from the foreman-installer: > > Running "puppet agent -t"... > Warning: Unable to fetch my node definition, but the agent run will > continue: > Warning: Error 400 on SERVER: Failed to find via exec: > Execution of '/etc/puppet/node.rb ' returned 1: > Info: Retrieving pluginfacts > Info: Retrieving plugin > Info: Loading facts > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Failed when searching for node : Failed to find > foreman.quicksand.identix.com via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > ERR: The puppet agent command has failed has failed. > > Output from /var/log/foreman/production.log: > > Oct 13 16:22:39 foreman puppet-master[7211]: Starting Puppet master > version 3.8.7 > Oct 13 16:22:39 foreman puppet-master[7226]: The environment must be > purely alphanumeric, not '' > Oct 13 16:22:56 foreman puppet-master[7226]: Failed to find via > exec: Execution of '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:56 foreman puppet-agent[7261]: Unable to fetch my node > definition, but the agent run will continue: > Oct 13 16:22:56 foreman puppet-agent[7261]: Error 400 on SERVER: Failed to > find via exec: Execution of '/etc/puppet/node.rb ' > returned 1: > Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving pluginfacts > Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving plugin > Oct 13 16:22:57 foreman puppet-agent[7261]: Loading facts > Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for > node : Failed to find via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for > node : Failed to find via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog > from remote server: Error 400 on SERVER: Failed when searching for > node : Failed to find via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:59 foreman puppet-agent[7261]: Not using cache on failed > catalog > Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog; > skipping run > > >

There is a Smart Proxy listed and the URL: shows a page with a Sinatra
saying. I do see the following Errors/Warnings:

TCPServer Error: Address already in use - bind(2)

OpenSSL::SSL::SSLError: SSL_accept returned=1 errno=0 state=SSLv3 read
client certificate A: tlsv1 alert unknown ca
/usr/share/ruby/openssl/ssl.rb:226:in `accept'

This is a brand new Foreman environment with a new VLAN and there are no
other servers built. There is only 1 server in this foreman install.

I noticed that some of the "foreman-installer" options have changed, has
there been anything with the Smart Proxy Install that has changed?

··· On Thursday, October 13, 2016 at 4:35:10 PM UTC-5, Andrew Enstad wrote: > > Anyone else having issues with the install of Foreman 1.13? > > I have a Centos7 server that I have been trying to install Foreman 1.13, > but it errors out when it tries to do the initial Puppet Run. > > Output from the foreman-installer: > > Running "puppet agent -t"... > Warning: Unable to fetch my node definition, but the agent run will > continue: > Warning: Error 400 on SERVER: Failed to find via exec: > Execution of '/etc/puppet/node.rb ' returned 1: > Info: Retrieving pluginfacts > Info: Retrieving plugin > Info: Loading facts > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Failed when searching for node : Failed to find > foreman.quicksand.identix.com via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > ERR: The puppet agent command has failed has failed. > > Output from /var/log/foreman/production.log: > > Oct 13 16:22:39 foreman puppet-master[7211]: Starting Puppet master > version 3.8.7 > Oct 13 16:22:39 foreman puppet-master[7226]: The environment must be > purely alphanumeric, not '' > Oct 13 16:22:56 foreman puppet-master[7226]: Failed to find via > exec: Execution of '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:56 foreman puppet-agent[7261]: Unable to fetch my node > definition, but the agent run will continue: > Oct 13 16:22:56 foreman puppet-agent[7261]: Error 400 on SERVER: Failed to > find via exec: Execution of '/etc/puppet/node.rb ' > returned 1: > Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving pluginfacts > Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving plugin > Oct 13 16:22:57 foreman puppet-agent[7261]: Loading facts > Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for > node : Failed to find via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for > node : Failed to find via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog > from remote server: Error 400 on SERVER: Failed when searching for > node : Failed to find via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:59 foreman puppet-agent[7261]: Not using cache on failed > catalog > Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog; > skipping run > > >

Got it working. I Tried some different options with the foreman-installer
and now Puppet is happy.

··· On Thursday, October 13, 2016 at 4:35:10 PM UTC-5, Andrew Enstad wrote: > > Anyone else having issues with the install of Foreman 1.13? > > I have a Centos7 server that I have been trying to install Foreman 1.13, > but it errors out when it tries to do the initial Puppet Run. > > Output from the foreman-installer: > > Running "puppet agent -t"... > Warning: Unable to fetch my node definition, but the agent run will > continue: > Warning: Error 400 on SERVER: Failed to find via exec: > Execution of '/etc/puppet/node.rb ' returned 1: > Info: Retrieving pluginfacts > Info: Retrieving plugin > Info: Loading facts > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Failed when searching for node : Failed to find > foreman.quicksand.identix.com via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > ERR: The puppet agent command has failed has failed. > > Output from /var/log/foreman/production.log: > > Oct 13 16:22:39 foreman puppet-master[7211]: Starting Puppet master > version 3.8.7 > Oct 13 16:22:39 foreman puppet-master[7226]: The environment must be > purely alphanumeric, not '' > Oct 13 16:22:56 foreman puppet-master[7226]: Failed to find via > exec: Execution of '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:56 foreman puppet-agent[7261]: Unable to fetch my node > definition, but the agent run will continue: > Oct 13 16:22:56 foreman puppet-agent[7261]: Error 400 on SERVER: Failed to > find via exec: Execution of '/etc/puppet/node.rb ' > returned 1: > Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving pluginfacts > Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving plugin > Oct 13 16:22:57 foreman puppet-agent[7261]: Loading facts > Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for > node : Failed to find via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for > node : Failed to find via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog > from remote server: Error 400 on SERVER: Failed when searching for > node : Failed to find via exec: Execution of > '/etc/puppet/node.rb ' returned 1: > Oct 13 16:22:59 foreman puppet-agent[7261]: Not using cache on failed > catalog > Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog; > skipping run > > >

If you run this command (/etc/puppet/node.rb hostname) on the master,
what output does it produce?

··· On 13/10/16 22:35, Andrew Enstad wrote: > Anyone else having issues with the install of Foreman 1.13? > > I have a Centos7 server that I have been trying to install Foreman 1.13, > but it errors out when it tries to do the initial Puppet Run. > > Output from the foreman-installer: > > Running "puppet agent -t"... > Warning: Unable to fetch my node definition, but the agent run will > continue: > Warning: Error 400 on SERVER: Failed to find via exec: > Execution of '/etc/puppet/node.rb ' returned 1: > Info: Retrieving pluginfacts > Info: Retrieving plugin > Info: Loading facts > Error: Could not retrieve catalog from remote server: Error 400 on > SERVER: Failed when searching for node : Failed to find > foreman.quicksand.identix.com via exec: Execution of > '/etc/puppet/node.rb ' returned 1:


Dominic Cleal
dominic@cleal.org

It's good form and good karma to include specifics of what you did to get it working for the benefit of the herd…

··· From: "Andrew Enstad" To: "Foreman users" Sent: Friday, October 14, 2016 10:12:03 AM Subject: [foreman-users] Re: Foreman 1.13 install - puppet errors

Got it working. I Tried some different options with the foreman-installer and now Puppet is happy.

On Thursday, October 13, 2016 at 4:35:10 PM UTC-5, Andrew Enstad wrote:

Anyone else having issues with the install of Foreman 1.13?
I have a Centos7 server that I have been trying to install Foreman 1.13, but it errors out when it tries to do the initial Puppet Run.

Output from the foreman-installer:

Running “puppet agent -t”…
Warning: Unable to fetch my node definition, but the agent run will continue:
Warning: Error 400 on SERVER: Failed to find via exec: Execution of '/etc/puppet/node.rb ’ returned 1:
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node : Failed to find [ http://foreman.quicksand.identix.com/ | foreman.quicksand.identix.com ] via exec: Execution of '/etc/puppet/node.rb ’ returned 1:
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run
ERR: The puppet agent command has failed has failed.

Output from /var/log/foreman/production.log:

Oct 13 16:22:39 foreman puppet-master[7211]: Starting Puppet master version 3.8.7
Oct 13 16:22:39 foreman puppet-master[7226]: The environment must be purely alphanumeric, not ''
Oct 13 16:22:56 foreman puppet-master[7226]: Failed to find via exec: Execution of '/etc/puppet/node.rb ’ returned 1:
Oct 13 16:22:56 foreman puppet-agent[7261]: Unable to fetch my node definition, but the agent run will continue:
Oct 13 16:22:56 foreman puppet-agent[7261]: Error 400 on SERVER: Failed to find via exec: Execution of '/etc/puppet/node.rb ’ returned 1:
Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving pluginfacts
Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving plugin
Oct 13 16:22:57 foreman puppet-agent[7261]: Loading facts
Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for node : Failed to find via exec: Execution of '/etc/puppet/node.rb ’ returned 1:
Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for node : Failed to find via exec: Execution of '/etc/puppet/node.rb ’ returned 1:
Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog from remote server: Error 400 on SERVER: Failed when searching for node : Failed to find via exec: Execution of '/etc/puppet/node.rb ’ returned 1:
Oct 13 16:22:59 foreman puppet-agent[7261]: Not using cache on failed catalog
Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog; skipping run


You received this message because you are subscribed to the Google Groups “Foreman users” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [ mailto:foreman-users+unsubscribe@googlegroups.com | foreman-users+unsubscribe@googlegroups.com ] .
To post to this group, send email to [ mailto:foreman-users@googlegroups.com | foreman-users@googlegroups.com ] .
Visit this group at [ https://groups.google.com/group/foreman-users | https://groups.google.com/group/foreman-users ] .
For more options, visit [ https://groups.google.com/d/optout | https://groups.google.com/d/optout ] .

This says that no smart proxy is registered with the hostname
"foreman.quicksand.identix.com".

If you have just installed, either this registration part of the
installation failed (and there was an error message from the installer)
or the smart proxy is registered under another hostname. Please check
registered smart proxies under the Infrastructure menu, and either
re-run the installer or add https://foreman.quicksand.identix.com:8443.

··· On 14/10/16 15:12, Andrew Enstad wrote: > > /var/log/foreman/production.log file: > 2016-10-14 09:09:14 2ac200ec [app] [I] Processing by > HostsController#externalNodes as YML > 2016-10-14 09:09:14 2ac200ec [app] [I] Parameters: > {"name"=>"foreman.quicksand.identix.com"} > 2016-10-14 09:09:14 2ac200ec [app] [W] No smart proxy server found on > ["foreman.quicksand.identix.com", "puppet", > "puppet.quicksand.identix.com"] and is not in trusted_puppetmaster_hosts


Dominic Cleal
dominic@cleal.org

Please tell us what you did, maybe copy your
/etc/foreman-installer/scenarios.d/foreman-answers.yaml (minus host/domain
specifics). I'm having a similar problem and would love to know how you
resolved it.

··· On Friday, October 14, 2016 at 10:12:03 AM UTC-5, Andrew Enstad wrote: > > > Got it working. I Tried some different options with the foreman-installer > and now Puppet is happy. > > On Thursday, October 13, 2016 at 4:35:10 PM UTC-5, Andrew Enstad wrote: >> >> Anyone else having issues with the install of Foreman 1.13? >> >> I have a Centos7 server that I have been trying to install Foreman 1.13, >> but it errors out when it tries to do the initial Puppet Run. >> >> Output from the foreman-installer: >> >> Running "puppet agent -t"... >> Warning: Unable to fetch my node definition, but the agent run will >> continue: >> Warning: Error 400 on SERVER: Failed to find via exec: >> Execution of '/etc/puppet/node.rb ' returned 1: >> Info: Retrieving pluginfacts >> Info: Retrieving plugin >> Info: Loading facts >> Error: Could not retrieve catalog from remote server: Error 400 on >> SERVER: Failed when searching for node : Failed to find >> foreman.quicksand.identix.com via exec: Execution of >> '/etc/puppet/node.rb ' returned 1: >> Warning: Not using cache on failed catalog >> Error: Could not retrieve catalog; skipping run >> ERR: The puppet agent command has failed has failed. >> >> Output from /var/log/foreman/production.log: >> >> Oct 13 16:22:39 foreman puppet-master[7211]: Starting Puppet master >> version 3.8.7 >> Oct 13 16:22:39 foreman puppet-master[7226]: The environment must be >> purely alphanumeric, not '' >> Oct 13 16:22:56 foreman puppet-master[7226]: Failed to >> find via exec: Execution of '/etc/puppet/node.rb ' >> returned 1: >> Oct 13 16:22:56 foreman puppet-agent[7261]: Unable to fetch my node >> definition, but the agent run will continue: >> Oct 13 16:22:56 foreman puppet-agent[7261]: Error 400 on SERVER: Failed >> to find via exec: Execution of '/etc/puppet/node.rb ' >> returned 1: >> Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving pluginfacts >> Oct 13 16:22:56 foreman puppet-agent[7261]: Retrieving plugin >> Oct 13 16:22:57 foreman puppet-agent[7261]: Loading facts >> Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for >> node : Failed to find via exec: Execution of >> '/etc/puppet/node.rb ' returned 1: >> Oct 13 16:22:59 foreman puppet-master[7226]: Failed when searching for >> node : Failed to find via exec: Execution of >> '/etc/puppet/node.rb ' returned 1: >> Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog >> from remote server: Error 400 on SERVER: Failed when searching for >> node : Failed to find via exec: Execution of >> '/etc/puppet/node.rb ' returned 1: >> Oct 13 16:22:59 foreman puppet-agent[7261]: Not using cache on failed >> catalog >> Oct 13 16:22:59 foreman puppet-agent[7261]: Could not retrieve catalog; >> skipping run >> >> >>