Problem:
pulpcore-workers and postgresql try to start/run on proxies that have enabled set to false
Expected outcome:
These proxies are configured to only have DHCP, DNS, remote_ execution, and a few other services, but not pulpcore. The services we use are working as expected. However, the logs and foreman-maintain health check show:
Check whether all services are running: [FAIL]
Following services are not running: postgresql, pulpcore-api, pulpcore-worker@3.service, pulpcore-worker@4.service, pulpcore-worker@6.service
Foreman and Proxy versions:
Foreman 3.11.2
Katello 4.13.1
Foreman and Proxy plugin versions:
foreman-tasks 9.1.1
foreman_discovery 24.0.1
foreman_remote_execution 13.1.0
katello 4.13.1
Distribution and version:
Red Hat Enterprise Linux release 8.10 (Ootpa)
Other relevant data:
foreman-maintain health check
Running ForemanMaintain::Scenario::FilteredScenario
================================================================================
Check whether all services are running: [FAIL]
Following services are not running: postgresql, pulpcore-api, pulpcore-worker@3.service, pulpcore-worker@4.service, pulpcore-worker@6.service
Continue with step [Restart applicable services]?, [y(yes), n(no)] y
Restart applicable services:
Restarting the following service(s):
postgresql, pulpcore-api, pulpcore-worker@3.service, pulpcore-worker@4.service, pulpcore-worker@6.service
/ restarting pulpcore-api
Job for postgresql.service failed because the control process exited with error code.
See âsystemctl status postgresql.serviceâ and âjournalctl -xeâ for details.
- All services restarted
| Server responded successfully! [OK]
Rerunning the check after fix procedure
Check whether all services are running: [FAIL]
Following services are not running: postgresql, pulpcore-api, pulpcore-worker@1.service, pulpcore-worker@5.service
Continue with step [Restart applicable services]?, [y(yes), n(no)]
From /var/log/messages:
Oct 9 10:27:18 netproxy systemd[1]: pulpcore-api.service: Main process exited, code=exited, status=1/FAILURE
Oct 9 10:27:18 netproxy systemd[1]: pulpcore-api.service: Failed with result âexit-codeâ.Oct 9 10:27:19 netproxy systemd[1]: pulpcore-worker@5.service: Main process exited, code=exited, status=1/FAILURE
Oct 9 10:27:19 netproxy systemd[1]: pulpcore-worker@5.service: Failed with result âexit-codeâ.
Oct 9 10:27:21 netproxy systemd[1]: pulpcore-worker@6.service: Main process exited, code=exited, status=1/FAILURE
Oct 9 10:27:21 netproxy systemd[1]: pulpcore-worker@6.service: Failed with result âexit-codeâ.
Oct 9 10:27:21 netproxy systemd[1]: pulpcore-worker@2.service: Main process exited, code=exited, status=1/FAILURE
Oct 9 10:27:21 netproxy systemd[1]: pulpcore-worker@2.service: Failed with result âexit-codeâ.
Oct 9 10:27:21 netproxy systemd[1]: pulpcore-worker@3.service: Main process exited, code=exited, status=1/FAILURE
Oct 9 10:27:21 netproxy systemd[1]: pulpcore-worker@3.service: Failed with result âexit-codeâ.
Oct 9 10:27:21 netproxy systemd[1]: pulpcore-worker@4.service: Main process exited, code=exited, status=1/FAILURE
Oct 9 10:27:21 netproxy systemd[1]: pulpcore-worker@4.service: Failed with result âexit-codeâ.
From /etc/foreman-proxy/settings.d/pulpcore.yml:
:enabled: false