Satellite Installer fails with "Evaluation Error: Unknown function: 'postgresql_acls_to_resources_hash'. (file: /usr/share/foreman-installer/modules/postgresql/manifests/server/config.pp, line: 99, column: 26) on node satellite.example.com"

Solution Verified - Updated

Environment

  • Red Hat Satellite 6.12.5-1

Issue

The following Satellite Installer command:

# satellite-installer --scenario satellite --foreman-proxy-foreman-base-url https://satellite.example.com --foreman-proxy-trusted-hosts satellite.example.com

fails with:

2023-09-07 13:50:06 [ERROR ] [configure] Evaluation Error: Unknown function: 'postgresql_acls_to_resources_hash'. (file: /usr/share/foreman-installer/modules/postgresql/manifests/server/config.pp, line: 99, column: 26) on node satellite.example.com

Resolution

  • Replace /usr/share/foreman-installer/modules/postgresql/manifests/server/config.pp existing on the affected host (the host on which satellite-installer failed), with the same file from an operational Red Hat Satellite 6.12.5-1 server.

    Reach out to This content is not included.Red Hat Technical Support to assist you obtaining the correct file from an operational Red Hat Satellite 6.12.5-1 server if you don't have an existing one in your infrastructure.

  • Rerun the Satellite Installer.

For more KB articles/solutions related to Red Hat Satellite 6.x Installation/Upgrade/Update Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Installation/Upgrade/Update Issues.

Diagnostic Steps

  • Find out which package provides the /usr/share/foreman-installer/modules/postgresql/manifests/server/config.pp file referred to in the error message:

    # rpm -q --whatprovides /usr/share/foreman-installer/modules/postgresql/manifests/server/config.pp
    

    On a Red Hat Satellite 6.12.5-1 server:

    # rpm -q --whatprovides /usr/share/foreman-installer/modules/postgresql/manifests/server/config.pp
    foreman-installer-3.3.0.9-1.el8sat.noarch
    
  • Verify that /usr/share/foreman-installer/modules/postgresql/manifests/server/config.pp existing on the affected host (the host on which satellite-installer failed) is the correct version of the file. This can be done by cross-checking the file from the affected host with one from an operational Red Hat Satellite 6.12.5-1 server:

    # diff /usr/share/foreman-installer/modules/postgresql/manifests/server/config.pp config.pp_orig
    

    where config.pp_orig is the /usr/share/foreman-installer/modules/postgresql/manifests/server/config.pp file from the operational Red Hat Satellite 6.12.5-1 server.

SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.