Hi,
puppet kick is working fine from my puppet master.
Triggering <hostname>
> Getting status
> status is success
> <hostname> finished with exit code 0
> Finished
But getting following error in foreman UI.
Some or all hosts execution failed, Please check log files for more
> information
In /etc/foreman-proxy/settings.yml i have changed :log_level: DEBUG/INFO
but there is no log detected when i run "puppet kick" from
puppetmaster/foreman.
Please help me.
Regards,
Suresh
From foreman server also puppet kick working.
curl -d 'nodes=puppetagent' https://puppetmaster:8443/puppet/run --insecure
but in foreman UI only puppet kick not working.
Please advise me.
Regards,
Suresh
···
On Wednesday, 14 May 2014 14:38:50 UTC+5:30, Suresh P wrote:
>
> Hi,
>
> puppet kick is working fine from my puppet master.
>
> Triggering
>> Getting status
>> status is success
>> finished with exit code 0
>> Finished
>
>
> But getting following error in foreman UI.
>
> Some or all hosts execution failed, Please check log files for more
>> information
>
>
> In /etc/foreman-proxy/settings.yml i have changed :log_level: DEBUG/INFO
> but there is no log detected when i run "puppet kick" from
> puppetmaster/foreman.
>
> Please help me.
>
> Regards,
> Suresh
>
>
>
==> foreman/production.log <==
Started POST "/hosts/update_multiple_puppetrun?host_ids%5B%5D=6" for
172.18.96.197 at 2014-05-14 17:57:24 +0530
Processing by HostsController#update_multiple_puppetrun as HTML
Parameters: {"utf8"=>"✓",
"authenticity_token"=>"E/BkK0hjfRF+0ur5ITgvPyaZiMpEeBdW1RuK+XouLgU=",
"host_ids"=>["6"]}
unable to execute puppet run, no puppet proxies defined
Redirected to https://foreman2.zohonoc.com/hosts?utf8=✓&search=6.22
Completed 302 Found in 9ms (ActiveRecord: 0.5ms)
···
On Wednesday, 14 May 2014 14:38:50 UTC+5:30, Suresh P wrote:
>
> Hi,
>
> puppet kick is working fine from my puppet master.
>
> Triggering
>> Getting status
>> status is success
>> finished with exit code 0
>> Finished
>
>
> But getting following error in foreman UI.
>
> Some or all hosts execution failed, Please check log files for more
>> information
>
>
> In /etc/foreman-proxy/settings.yml i have changed :log_level: DEBUG/INFO
> but there is no log detected when i run "puppet kick" from
> puppetmaster/foreman.
>
> Please help me.
>
> Regards,
> Suresh
>
>
>
This suggests the host doesn't have a puppet master set. Try editing it
and select a master (a registered smart proxy with the Puppet feature)
on the first tab.
···
On 14/05/14 13:28, Suresh P wrote:
> ==> foreman/production.log <==
>
>
> Started POST "/hosts/update_multiple_puppetrun?host_ids%5B%5D=6" for
> 172.18.96.197 at 2014-05-14 17:57:24 +0530
> Processing by HostsController#update_multiple_puppetrun as HTML
> Parameters: {"utf8"=>"✓",
> "authenticity_token"=>"E/BkK0hjfRF+0ur5ITgvPyaZiMpEeBdW1RuK+XouLgU=",
> "host_ids"=>["6"]}
> unable to execute puppet run, no puppet proxies defined
–
Dominic Cleal
Red Hat Engineering
Hi Dominic,
Thanks for you support.
Few mins before i fixed by updating puppet_proxy_id in hosts table;
update hosts set puppet_proxy_id=1 where puppet_proxy_id is NULL;
Regards,
Suresh
···
On Wednesday, 14 May 2014 18:02:59 UTC+5:30, Dominic Cleal wrote:
>
> On 14/05/14 13:28, Suresh P wrote:
> > ==> foreman/production.log <==
> >
> >
> > Started POST "/hosts/update_multiple_puppetrun?host_ids%5B%5D=6" for
> > 172.18.96.197 at 2014-05-14 17:57:24 +0530
> > Processing by HostsController#update_multiple_puppetrun as HTML
> > Parameters: {"utf8"=>"✓",
> > "authenticity_token"=>"E/BkK0hjfRF+0ur5ITgvPyaZiMpEeBdW1RuK+XouLgU=",
> > "host_ids"=>["6"]}
> > unable to execute puppet run, no puppet proxies defined
>
> This suggests the host doesn't have a puppet master set. Try editing it
> and select a master (a registered smart proxy with the Puppet feature)
> on the first tab.
>
> --
> Dominic Cleal
> Red Hat Engineering
>