puppet.run issues misleading error message #27506
Labels
Bug
broken, incorrect, or confusing behavior
P4
Priority 4
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
stale
State-Module
Milestone
We're having a problem where puppet.run works, but prints out this error on the master:
This happens when Puppet makes a change and returns a '2' instead of a 0.
In puppet.py, run() properly modifies retcode to '0' when it sees a '2', since that indicates a successful run.
However, in minion.py, _thread_return injects the original return code with this:
'ret' ends up being changed from:
to:
The salt master then uses the top level 'retcode' to print the misleading error above, causing operators and programs parsing the output to incorrectly conclude there was a failure.
If I comment out the functions.pack section, everything works as expected.
The text was updated successfully, but these errors were encountered: