Deprecation: Old Exit Codes (CHEF-2)

[edit on GitHub]

In older versions of Chef Client, it was not possible to discern why a chef run exited simply by examining the error code. This makes it very tricky for tools such as Test Kitchen to reason about the status of a Chef Client run. Starting in Chef Client 12.11, there are now well defined exit codes that the Chef Client can use to communicate the status of the run.

This deprecation was added in Chef Client 12.11. In Chef Client 13, only the extended set of exit codes will be supported. For further information on the list of defined error codes, please see RFC 62, which defines them.

Remediation

If you have built automation that is dependent on the old behavior of Chef Client, we strongly recommend updating it to support the extended set of exit codes. However, it’s still possible to enable the old behavior. Add the setting

exit_status :disabled

to the Chef config file.

© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/deprecations_exit_code/