Problem:
I would like to configure a Remote Execution (ReX) Pull Provider using MQTT, and I want to use the Foreman-Proxy server that is built-in to the Foreman server. (no separate Foreman-Proxy host for economic reasons - it’s a small environment)
I am using this documentation:
https://docs.theforeman.org/3.11/Installing_Proxy/index-katello.html#configuring-pull-based-transport-for-remote-execution_smart-proxy
Step 3.4 is failing:
# foreman-installer \
> --enable-foreman-proxy-plugin-openscap \
> --foreman-proxy-plugin-openscap-ansible-module true \
> --foreman-proxy-plugin-openscap-puppet-module true
2024-08-09 15:50:02 [NOTICE] [root] Loading installer configuration. This will take some time.
2024-08-09 15:50:05 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2024-08-09 15:50:05 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2024-08-09 15:50:09 [NOTICE] [configure] Starting system configuration.
2024-08-09 15:50:16 [NOTICE] [configure] 250 configuration steps out of 1479 steps complete.
2024-08-09 15:50:23 [NOTICE] [configure] 500 configuration steps out of 1481 steps complete.
2024-08-09 15:50:25 [NOTICE] [configure] 750 configuration steps out of 1483 steps complete.
2024-08-09 15:50:25 [NOTICE] [configure] 1000 configuration steps out of 1489 steps complete.
2024-08-09 15:50:48 [NOTICE] [configure] 1250 configuration steps out of 1489 steps complete.
2024-08-09 15:50:56 [ERROR ] [configure] Proxy foreman.my.org has failed to load one or more features (Openscap), check /var/log/foreman-proxy/proxy.log for configuration errors
2024-08-09 15:50:56 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.my.org]/features: change from ["Ansible", "Dynflow", "Logs", "Pulpcore", "Script"] to ["Ansible", "Dynflow", "Logs", "Openscap", "Pulpcore", "Script"] failed: Proxy foreman.my.org has failed to load one or more features (Openscap), check /var/log/foreman-proxy/proxy.log for configuration errors
2024-08-09 15:50:57 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.my.org]: Failed to call refresh: Proxy foreman.my.org has failed to load one or more features (Openscap), check /var/log/foreman-proxy/proxy.log for configuration errors
2024-08-09 15:50:57 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.my.org]: Proxy foreman.my.org has failed to load one or more features (Openscap), check /var/log/foreman-proxy/proxy.log for configuration errors
2024-08-09 15:51:00 [NOTICE] [configure] System configuration has finished.
Error 1: Puppet Foreman_smartproxy resource 'foreman.my.org' failed. Logs:
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.my.org]
Adding autorequire relationship with Anchor[foreman::service]
Adding autorequire relationship with Anchor[foreman::providers::oauth]
Starting to evaluate the resource (1476 of 1489)
Failed to call refresh: Proxy foreman.my.org has failed to load one or more features (Openscap), check /var/log/foreman-proxy/proxy.log for configuration errors
Proxy foreman.my.org has failed to load one or more features (Openscap), check /var/log/foreman-proxy/proxy.log for configuration errors
Evaluated in 0.77 seconds
Foreman_smartproxy[foreman.my.org](provider=rest_v3)
Making get request to https://foreman.my.org/api/v2/smart_proxies?search=name%3D%22foreman.my.org%22
Received response 200 from request to https://foreman.my.org/api/v2/smart_proxies?search=name%3D%22foreman.my.org%22
Making put request to https://foreman.my.org/api/v2/smart_proxies/1/refresh
Received response 200 from request to https://foreman.my.org/api/v2/smart_proxies/1/refresh
Making put request to https://foreman.my.org/api/v2/smart_proxies/1/refresh
Received response 200 from request to https://foreman.my.org/api/v2/smart_proxies/1/refresh
/Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.my.org]/features
change from ["Ansible", "Dynflow", "Logs", "Pulpcore", "Script"] to ["Ansible", "Dynflow", "Logs", "Openscap", "Pulpcore", "Script"] failed: Proxy foreman.my.org 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
In the log ‘/var/log/foreman-proxy/proxy.log’, there is no errors to see.
In the log ‘/var/log/foreman-installer/katello.log’, there are some errors (excerpt):
2024-08-09 15:50:56 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.my.org]: Starting to evaluate the resource (1476 of 1489)
2024-08-09 15:50:56 [DEBUG ] [configure] Foreman_smartproxy[foreman.my.org](provider=rest_v3): Making get request to https://foreman.my.org/api/v2/smart_proxies?search=name%3D%22foreman.my.org%22
2024-08-09 15:50:56 [DEBUG ] [configure] Foreman_smartproxy[foreman.my.org](provider=rest_v3): Received response 200 from request to https://foreman.my.org/api/v2/smart_proxies?search=name%3D%22foreman.my.org%22
2024-08-09 15:50:56 [DEBUG ] [configure] Foreman_smartproxy[foreman.my.org](provider=rest_v3): Making put request to https://foreman.my.org/api/v2/smart_proxies/1/refresh
2024-08-09 15:50:56 [DEBUG ] [configure] Foreman_smartproxy[foreman.my.org](provider=rest_v3): Received response 200 from request to https://foreman.my.org/api/v2/smart_proxies/1/refresh
2024-08-09 15:50:56 [ERROR ] [configure] Proxy foreman.my.org has failed to load one or more features (Openscap), check /var/log/foreman-proxy/proxy.log for configuration errors
2024-08-09 15:50:56 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.my.org]/features: change from ["Ansible", "Dynflow", "Logs", "Pulpcore", "Script"] to ["Ansible", "Dynflow", "Logs", "Openscap", "Pulpcore", "Script"] failed: Proxy foreman.my.org has failed to load one or more features (Openscap), check /var/log/foreman-proxy/proxy.log for configuration errors
2024-08-09 15:50:56 [DEBUG ] [configure] Foreman_smartproxy[foreman.my.org](provider=rest_v3): Making put request to https://foreman.my.org/api/v2/smart_proxies/1/refresh
2024-08-09 15:50:57 [DEBUG ] [configure] Foreman_smartproxy[foreman.my.org](provider=rest_v3): Received response 200 from request to https://foreman.my.org/api/v2/smart_proxies/1/refresh
2024-08-09 15:50:57 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.my.org]: Failed to call refresh: Proxy foreman.my.org has failed to load one or more features (Openscap), check /var/log/foreman-proxy/proxy.log for configuration errors
2024-08-09 15:50:57 [ERROR ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.my.org]: Proxy foreman.my.org has failed to load one or more features (Openscap), check /var/log/foreman-proxy/proxy.log for configuration errors
2024-08-09 15:50:57 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[foreman.my.org]: Evaluated in 0.77 seconds
2024-08-09 15:50:57 [DEBUG ] [configure] /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy_host[foreman-proxy-foreman.my.org]: Starting to evaluate the resource (1477 of 1489)
Furthermore, according to step 3.5, “Lifecycle Envirments” should be configured in the Smart Proxy. But this tab is missing:
Expected outcome:
MQTT Push Provider should be configurable according to documentation without errors.
Foreman and Proxy versions:
3.11.1
Foreman and Proxy plugin versions:
foreman-tasks | 9.1.1 |
---|---|
foreman_ansible | 14.0.0 |
foreman_remote_execution | 13.1.0 |
katello | 4.13.1 |
Distribution and version:
Rocky Linux 8.10
Other relevant data: