Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2211452

Summary: 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']
Product: Red Hat Satellite Reporter: vivek singh <vivsingh>
Component: UpgradesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.12.4CC: ehelms, ekohlvan, gsulliva, mkalyat, rlavi
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: UnusedFlags: ehelms: needinfo?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-06 00:45:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.

Comment 5 Griffin Sullivan 2023-08-24 12:42:29 UTC
Because the apache option is in the example file we should at least remove it from there.

Comment 6 Ewoud Kohl van Wijngaarden 2023-08-24 12:45:36 UTC
In https://github.com/theforeman/foreman-installer/pull/879 the example is updated to be valid.