Actions
Bug #34819
closedPuppet Agent enabled in Katello installations, even if it should not
Difficulty:
Triaged:
No
Description
Ohai,
Katello deployments default to Puppet disabled these days, but for some reason a freshly deployed system still has the puppet.service
enabled and started, resulting in errors in the logs:
Apr 26 07:18:53 centos8-stream-katello-4-4.tanso.example.com systemd[1]: Started Puppet agent. Apr 26 07:18:54 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Connection to https://centos8-stream-katello-4-4.tanso.example.com:8140/puppet-ca/v1 failed, trying next route: Request to https://centos8-stream-katello-4-4.tanso.example.com:8140/puppet-ca/v1 failed after 0.0 seconds: Failed to open TCP connection to centos8-stream-katello-4-4.tanso.example.com:8140 (Connection refused - connect(2) for "centos8-stream-katello-4-4.tanso.example.com" port 8140) Apr 26 07:18:54 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Wrapped exception: Apr 26 07:18:54 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Failed to open TCP connection to centos8-stream-katello-4-4.tanso.example.com:8140 (Connection refused - connect(2) for "centos8-stream-katello-4-4.tanso.example.com" port 8140) Apr 26 07:18:54 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: No more routes to ca Apr 26 07:20:54 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Connection to https://centos8-stream-katello-4-4.tanso.example.com:8140/puppet-ca/v1 failed, trying next route: Request to https://centos8-stream-katello-4-4.tanso.example.com:8140/puppet-ca/v1 failed after 0.001 seconds: Failed to open TCP connection to centos8-stream-katello-4-4.tanso.example.com:8140 (Connection refused - connect(2) for "centos8-stream-katello-4-4.tanso.example.com" port 8140) Apr 26 07:20:54 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Wrapped exception: Apr 26 07:20:54 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Failed to open TCP connection to centos8-stream-katello-4-4.tanso.example.com:8140 (Connection refused - connect(2) for "centos8-stream-katello-4-4.tanso.example.com" port 8140) Apr 26 07:20:54 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: No more routes to ca Apr 26 07:22:55 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Connection to https://centos8-stream-katello-4-4.tanso.example.com:8140/puppet-ca/v1 failed, trying next route: Request to https://centos8-stream-katello-4-4.tanso.example.com:8140/puppet-ca/v1 failed after 0.001 seconds: Failed to open TCP connection to centos8-stream-katello-4-4.tanso.example.com:8140 (Connection refused - connect(2) for "centos8-stream-katello-4-4.tanso.example.com" port 8140) Apr 26 07:22:55 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Wrapped exception: Apr 26 07:22:55 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Failed to open TCP connection to centos8-stream-katello-4-4.tanso.example.com:8140 (Connection refused - connect(2) for "centos8-stream-katello-4-4.tanso.example.com" port 8140) Apr 26 07:22:55 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: No more routes to ca Apr 26 07:24:55 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Connection to https://centos8-stream-katello-4-4.tanso.example.com:8140/puppet-ca/v1 failed, trying next route: Request to https://centos8-stream-katello-4-4.tanso.example.com:8140/puppet-ca/v1 failed after 0.001 seconds: Failed to open TCP connection to centos8-stream-katello-4-4.tanso.example.com:8140 (Connection refused - connect(2) for "centos8-stream-katello-4-4.tanso.example.com" port 8140) Apr 26 07:24:55 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Wrapped exception: Apr 26 07:24:55 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: Failed to open TCP connection to centos8-stream-katello-4-4.tanso.example.com:8140 (Connection refused - connect(2) for "centos8-stream-katello-4-4.tanso.example.com" port 8140) Apr 26 07:24:55 centos8-stream-katello-4-4.tanso.example.com puppet-agent[41442]: No more routes to ca …
I think the issue is the $puppet = true
in https://github.com/theforeman/puppet-foreman_proxy_content/blob/413896789684ca48012a78e63ca014fd73e5d26c/manifests/init.pp#L98
as that leads to the inclusion of the puppet
class down the road: https://github.com/theforeman/puppet-foreman_proxy_content/blob/413896789684ca48012a78e63ca014fd73e5d26c/manifests/init.pp#L369-L380
Actions