Description of problem: Red Hat Satellite 6 upgrade fails with Error : Error while evaluating a Function Call, Class[Apache]: parameter 'trace_enable' expects a match for Enum['Off', 'On', 'extended'] Version-Release number of selected component (if applicable):6.12 How reproducible: always Steps to Reproduce: 1. Uncomment parameter "apache::trace_enable: Off" from file /etc/foreman-installer/custom-hiera.yaml 2. Now try to upgrade satellite from 6.12 to 6.13. 3. Upgrade will fail with below error. ~~~~~~~~ [ERROR ] [configure] Evaluation Error: Error while evaluating a Function Call, Class[Apache]: parameter 'trace_enable' expects a match for Enum['Off', 'On', 'extended'], got Boolean (file: /usr/share/foreman- installer/modules/foreman/manifests/config/apache.pp, line: 161, column: 5) on node satellite.example.com ~~~~~~~~ Actual results: Upgrade fails. Expected results: upgrade should be a success Additional info: 1- By-default parameter "apache::trace_enable: Off" is commented on satellite inside file - /etc/foreman-installer/custom-hiera.yaml 2- Upgrade check does not give or hint about any such error. this error comes only running actual upgrade .
Do you know why customers are setting this value through custom hiera?
Any value set in custom hiera is subject to breakage as the use of custom_hiera is not a supported API and relies on internal APIs that can break between releases. Any values in custom_hiera should be done so with caution and understanding that it may change, or need to be removed. There are KCS articles, and even some references at times in our tuning guide to values being set in there if there is no other options. Therefore, if upgrade is broken with this value in custom hiera it is expected that the user will remove it and perform a clean upgrade. If this functionality is needed in a permanent way for the user, a bugzilla should be filed requesting support for this.