[enhancement]: introduce a new config option to decide recoverable error status value
Enhancement
cloud-init version 23.4 changes the previous status value of 0 for recoverable errors (warnings) to a new value 2. This breaks backward compatibility and existing customer and end-users might see breakage in their software stack or test routines due to this. Cannonical has decided to revert this downstream for Ubuntu releases. See https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/2048522 . We at Red Hat have made a similar decision for centos 9 stream for the same reasons. We propose that a new config option be introduced that users can set in order to retain backward compatibility. We can turn this ON for current RHEL releases like RHEL 9 thus retaining backward compatible value of 0 but for new release trains like RHEL 10 this can be off - hence defaulting to the new value of 2. I looked into the config schema but I am not sure where we should put this. Most of the config options are tied to a cc_* module. If the proposal seems reasonable and the maintainers are able to give some guidance, I may try sending a patch to this end.