Puppet Permission Error during Foreman 3.13 Installer Execution - Katello 4.15

Description:

I am encountering a critical issue while running the foreman-installer with the Katello scenario. The installer fails with the following error:

sh: riga 109: /opt/puppetlabs/bin/puppet: Permesso negato

Analysis:

  1. Root Cause:
  • The error indicates a permission issue with the puppet binary located at /opt/puppetlabs/bin/puppet .
  • This prevents the installer from proceeding with its operations.
  1. Implications:
  • The Katello installation is incomplete and cannot be used effectively.
  • This could potentially leave the system in an inconsistent state.

Steps to Reproduce:

  1. Run:
foreman-installer --scenario katello
  1. Observe the permission error during the execution phase.

Environment Details:

  • Operating System: Red Hat EL 9
  • Katello Version: 4.15
  • Foreman Installer: 3.13
  • Puppet Version: 8

Documentation:
https://docs.theforeman.org/3.13/Installing_Server/index-katello.html#configuring-repositories_foreman

Troubleshooting Steps Attempted:

  1. Checked Permissions:
  • Verified the permissions of the puppet binary using:
ls -l /opt/puppetlabs/bin/puppet

  • Current permissions:
lrwxrwxrwx 1 root root 37 18 ott 17.07 /opt/puppetlabs/bin/puppet -> /opt/puppetlabs/puppet/bin/wrapper.sh
  1. Ran Installer as Root:
  • Ensured the installer was executed with superuser privileges:
sudo foreman-installer --scenario katello
  1. Checked SELinux:
  • Verified SELinux status:
sudo getenforce
Disabled
  1. Verified Dependencies:
  • Reinstalled Puppet and verified its installation:
dnf install puppet-agent
  1. Checked Logs:
  • Analyzed /var/log/foreman-installer/katello.log for additional details.
    katello.log (66.5 KB)

Request for Assistance:

I would greatly appreciate guidance on resolving this permission issue. Specifically:

  1. Are there additional configurations or dependencies that need to be verified for the puppet binary?
  2. Is there a known issue with the installer or its compatibility with the current environment?

Any insights or suggestions would be highly valuable. Thank you!

You must enable selinux. See the docs:

foreman works fine with selinux in enforcing mode. Never disable selinux.

Restart installation on a fresh system with selinux enabled. Simply enabling selinux on your current system may not be enough to get everything properly set up.