Bug 2226911

Summary: The satellite installer encountered a failure due to the 'activated_rules' parameter expecting an Array value, but receiving a String instead while attempting to disable the HTTP OPTIONS method in Red Hat Satellite and Capsule 6.
Product: Red Hat Satellite Reporter: Ganesh Payelkar <gpayelka>
Component: InstallerAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: ehelms
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-27 13:58:17 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 Ganesh Payelkar 2023-07-27 00:04:26 UTC
Description of problem:

The satellite installer encountered a failure due to the 'activated_rules' parameter expecting an Array value, but receiving a String instead while attempting to disable the HTTP OPTIONS method in Red Hat Satellite and Capsule 6.

Version-Release number of selected component (if applicable):
satellite-6.14.0-3.el8sat.noarch

How reproducible:
New installation 

Steps to Reproduce:
1. Install satellite or capsule 6.14 
2. To disable the HTTP OPTIONS method in Red Hat Satellite and Capsule 6 follow https://access.redhat.com/solutions/4963161
3. Run the installer 

Actual results: 

2023-07-27 00:21:07 [ERROR ] [configure] Evaluation Error: Error while evaluating a Method call, Class[Apache::Mod::Security]: parameter 'activated_rules' expects an Array value, got String (file: /usr/share/gems/gems/kafo-6.5.0/modules/kafo_configure/manifests/init.pp, line: 16, column: 39) on node


Expected results:

The installer should complete successfully without any errors or issues, allowing the Red Hat Satellite and Capsule 6 to be properly configured with the desired settings, including the disabling of the HTTP OPTIONS method.

Additional info:

The parameter 'activated_rules' was working as a String in previous versions of Satellite (6.11 and 6.12). However, in the newer version (possibly 6.13 or later), the 'activated_rules' parameter was changed to expect an Array value. This change in the parameter type caused the installation to fail when the custom parameter was specified as a String in the /etc/foreman-installer/custom-hiera.yaml file.

Comment 2 Eric Helms 2023-07-27 13:58:17 UTC

*** This bug has been marked as a duplicate of bug 2055018 ***