Issue #5490 has been updated by Nigel Kersten.

Status changed from Unreviewed to Investigating

This is to be expected.

<pre>

       detailed-exitcodes: Provide transaction information via exit codes. If

                           this is enabled, an exit code of '2' means there
                           were changes, and an exit code of '4' means that
                           there were failures during the transaction. This
                           option only makes sense in conjunction with
                           --onetime.
</pre>

There was a design decision made a while ago that "0" would mean nothing 
changed, but 2 meant there were successful changes.

Did we flip the default for exit-codes to be on rather than off Dom?
----------------------------------------
Bug #5490: puppet agent returns non-zero status upon success
https://projects.puppetlabs.com/issues/5490

Author: Dominic Maraglia
Status: Investigating
Priority: Normal
Assignee: 
Category: error reporting
Target version: 2.6.x
Affected Puppet version: 2.6.3
Keywords: exit code 
Branch: 


After running puppet agent and successfully running apply a file serving 
manifest, "puppet agent" still returns non-zero.
  

[r...@agent ~]# puppet agent --no-daemonize --verbose --onetime --test
info: Retrieving plugin
info: Caching catalog for agent
info: Applying configuration version '1291661303'
notice: /Stage[main]/Puppet_system_test::File/File[/root/file_1]/ensure: 
defined content as '{md5}c481617f24f561fd8cf102d667b77808'
notice: /Stage[main]/Puppet_system_test::File/File[/root/file_0]/ensure: 
defined content as '{md5}d41d8cd98f00b204e9800998ecf8427e'
notice: /Stage[main]/Puppet_system_test::File/File[/root/file_100]/ensure: 
defined content as '{md5}5fcc003a152ec929c1d4f441e502c227'
notice: Finished catalog run in 0.24 seconds
[r...@agent ~]# echo $?
2


Puppet Master and agent are running the same code base:

[r...@puppet ]# puppet --version
2.6.3

[r...@agent ]# puppet --version
2.6.3

Installed from:
puppet-enterprise-0.4-rhel-5-x86_64.tar



-- 
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.

Reply via email to