Project

General

Profile

Actions

Bug #34819

closed

Puppet Agent enabled in Katello installations, even if it should not

Added by Evgeni Golov over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

Also available in: Atom PDF