Bug 2211452 - 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'] [NEEDINFO]
Summary: Red Hat Satellite 6 upgrade fails with Error : Error while evaluating a Funct...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Upgrades
Version: 6.12.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-31 16:41 UTC by vivek singh
Modified: 2023-07-31 16:15 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:
ehelms: needinfo?


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-18386 0 None None None 2023-06-13 18:58:06 UTC
Red Hat Knowledge Base (Solution) 7015995 0 None None None 2023-06-26 11:21:49 UTC

Description vivek singh 2023-05-31 16:41:06 UTC
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 .

Comment 2 Eric Helms 2023-06-01 13:04:21 UTC
Do you know why customers are setting this value through custom hiera?

Comment 4 Eric Helms 2023-06-13 18:52:28 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.