Issue #6255 has been updated by Jeffrey Lensen.
No, it's not a successful run.
puppet kick to remote server hostx:
~ $ puppet kick --foreground hostx
Triggering hostx
warning: peer certificate won't be verified in this SSL session
Getting status
status is success
hostx finished with exit code 0
Finished
~ $ echo $?
0
However, log output on remote server hostx says:
puppet-agent[17307]: triggered run
puppet-agent[17307]: Could not retrieve catalog from remote server: Error
400 on SERVER: Could not find template 'postfix/postfix.cf.erb' at
/etc/puppet/modules/postfix/manifests/init.pp:30 on node hostx
puppet-agent[17307]: Not using cache on failed catalog
puppet-agent[17307]: Could not retrieve catalog; skipping run
When I do a puppetrun on remote server hostx:
hostx ~ # puppetd -t
notice: Ignoring --listen on onetime run
info: Retrieving plugin
info: Loading facts in hyves
info: Loading facts in hyves
err: Could not retrieve catalog from remote server: Error 400 on SERVER:
Could not find template 'postfix/postfix.cf.erb' at
/etc/puppet/modules/postfix/manifests/init.pp:30 on node hostx
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
hostx ~ # echo $?
1
----------------------------------------
Bug #6255: Puppet kick exists with 0 even when puppet run has failures
https://projects.puppetlabs.com/issues/6255
Author: Jeffrey Lensen
Status: Investigating
Priority: Normal
Assignee: Ben Hughes
Category:
Target version:
Affected Puppet version: 2.6.1
Keywords:
Branch:
When I run a puppet kick from a remote server and the puppet run on the other
host encounters failures during a run, it still exits with 0 and says
everything was successful.
$ puppet kick --foreground host ; echo $?
Triggering host
Getting status
status is success
host finished with exit code 0
Finished
0
Wouldn't it make more sense to exit with something other than 0 so you can
easily determine if the puppet run was actually successful or not?
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.