When running the following command on Katello 4.10 (Foreman 3.8) Sever installed on a Rocky 8.8 VM
foreman-installer --scenario katello
-l INFO
–enable-foreman-cli-openscap
–enable-foreman-plugin-openscap
–enable-foreman-proxy-plugin-openscap
–foreman-proxy-plugin-openscap-ansible-module “true”
–foreman-proxy-plugin-openscap-puppet-module “true”
I get the error:
Error 1: Puppet Foreman_smartproxy resource ‘katello.mnsmithuk’ failed. Logs:
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[katello.mnsmithuk]/before
before to Cron[puppet]
before to Service[puppet]
before to Service[puppet-run.timer]
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[katello.mnsmithuk]
Adding autorequire relationship with Anchor[foreman::service]
Adding autorequire relationship with Anchor[foreman::providers::oauth]
Starting to evaluate the resource (2231 of 2259)
Evaluated in 0.80 seconds
Foreman_smartproxykatello.mnsmithuk
Making get request to https://katello.mnsmithuk/api/v2/smart_proxies?search=name%3D"katello.mnsmithuk"
Received response 200 from request to https://katello.mnsmithuk/api/v2/smart_proxies?search=name%3D"katello.mnsmithuk"
Making put request to https://katello.mnsmithuk/api/v2/smart_proxies/1/refresh
Received response 200 from request to https://katello.mnsmithuk/api/v2/smart_proxies/1/refresh
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[katello.mnsmithuk]/features
change from [“Ansible”, “BMC”, “DHCP”, “DNS”, “Discovery”, “Dynflow”, “HTTPBoot”, “Logs”, “Pulpcore”, “Puppet”, “Puppet CA”, “Script”, “TFTP”] to [“Ansible”, “BMC”, “DHCP”, “DNS”, “Discovery”, “Dynflow”, “HTTPBoot”, “Logs”, “Openscap”, “Pulpcore”, “Puppet”, “Puppet CA”, “Script”, “TFTP”] failed: Proxy katello.mnsmithuk has failed to load one or more features (Openscap), check /var/log/foreman-proxy/proxy.log for configuration errors
1 error was detected during installation.
Please address the errors and re-run the installer to ensure the system is properly configured.
Failing to do so is likely to result in broken functionality.
The full log is at /var/log/foreman-installer/katello.log
Just to add if I set --no-enable-foreman-proxy-plugin-openscap instead, it completes without error.
Expected outcome:
No errors with foreman-installer
Distribution and version:
Other relevant data:
firewall port 9090 is open
Also in /etc/foreman-proxy/settings.d/openscap.yml enable has value https instead of true.
I did some digging and the template in /usr/share/foreman-installer/modules/foreman_proxy/templates/plugin/openscap.yml.erb the value for enable is set to
<%= @module_enabled %>
but I think it should be set to
<%= scope.lookupvar(‘::foreman_proxy::plugin::openscap::enabled’) %>
I did manually edit the template to make this change and /etc/foreman-proxy/settings.d/openscap.yml then took the expected value of true, however I was still left with the same problem.
I’ve stopped foreman before running install,
ansible-core is installed but I installed centos-release-ansible-29.noarch as I read this fixed issues for others (but I dont think this is needed if ansible-core is already installed),
Looking at the ERROR it mentioned provider=rest_v3 but requests were https://katello.mnsmithuk/api/v2/smart_proxies?search=name%3D"katello.mnsmithuk". Could this be the issue. If so how do we fix it?
The only other thing is, I’m using puppet7. Could the openscap module only support puppet6 and this is causing the problem ? If so can we get a fix for this?
There was nothing extra in /var/log/foreman-installer/katello.log that could help and I’m lost at what else it could be.
Can anyone help please?