Issue #16082 has been updated by Celia Cottle.

Keywords changed from errors to errors, customer

----------------------------------------
Bug #16082: Puppet agent with --detailed-exitcodes returns exit code 2 even if 
errors are encountered applying the catalog.
https://projects.puppetlabs.com/issues/16082#change-98542

* Author: Eric Pratt
* Status: Needs Decision
* Priority: Normal
* Assignee: eric sorenson
* Category: usability
* Target version: 
* Affected Puppet version: 2.6.4
* Keywords: errors, customer
* Branch: 
----------------------------------------
The command I run is:

`/usr/bin/puppet agent --onetime --verbose --ignorecache --no-daemonize 
--no-usecacheonfailure --color=false --detailed-exitcodes`

One of my execs executes a shell script which is returning a non-zero error 
code.  The verbose output shows this:

`err: 
/Stage[main]/Etp::Install/Etp::Deploy[discovery]/Exec[migrate-discovery-db]: 
Failed to call refresh: /usr/local/etp/bin/migrate_db.sh 
/home/etpdiscovery/conf /home/etpdiscovery/db /home/etpdiscovery/datagen 
disco.master.ben.xml returned 21 instead of one of [0] at 
/home/configmgr/puppet-trunk/etouchpoint-systems/src/main/puppet/modules/etp/manifests/deploy.pp:561`

Because a lot of changes are being made when this error happens, I expect to 
see an exit code of '6' but I get a '2' every time.  Even if no changes are 
made and this exec fails, I expect to see a '4'.


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to