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"
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.ppexisting on the affected host (the host on whichsatellite-installerfailed), 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.ppfile referred to in the error message:# rpm -q --whatprovides /usr/share/foreman-installer/modules/postgresql/manifests/server/config.ppOn 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.ppexisting on the affected host (the host on whichsatellite-installerfailed) 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_origwhere
config.pp_origis the/usr/share/foreman-installer/modules/postgresql/manifests/server/config.ppfile from the operational Red Hat Satellite 6.12.5-1 server.
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.