Empty stats for Puppet runs for hosts registered to Red Hat Satellite Capsule

Solution Verified - Updated

Environment

  • Red Hat Satellite Capsule 6.x

Issue

For all hosts registered to Capsule server, when accessing the host's page under Hosts -> All Hosts in Satellite's web UI, the stats for Puppet runs are empty (i.e. empty graph on the host's page). The same is also observed for the Capsule server to which the affected hosts are registered (i.e. it also has empty stats for Puppet runs). After running the following command on both the Capsule as well as the affected hosts, stats stay empty:

# puppet agent -tv

Resolution

Check the Trusted Hosts parameter under Settings -> Authentication in the Satellite's web UI. If the affected Capsule is not there (i.e. the value of the parameter is blank), add it.

The following bug report has been raised to address this issue: This content is not included.Bug 2052589 - Capsule clients cannot report via puppet to Satellite

For more KB articles/solutions related to Red Hat Satellite 6.x Puppet Issues, please refer to the Red Hat Satellite Consolidated Troubleshooting Article for Red Hat Satellite 6.x Puppet Issues

Root Cause

The Trusted Hosts parameter under Settings -> Authentication in the Satellite's web UI is blank, or the affected Capsule is not there, denying access to the Capsule when it tries to upload Puppet reports to the Satellite server.

Diagnostic Steps

Check /var/log/foreman/production.log on the Satellite server for something like:

2022-02-09T15:42:00 [I|app|148be0f3] Started POST "/api/config_reports" for 10.141.86.75 at 2022-02-09 15:42:00 +0100
2022-02-09T15:42:00 [I|app|148be0f3] Processing by Api::V2::ConfigReportsController#create as JSON
2022-02-09T15:42:00 [I|app|148be0f3]   Parameters: {"config_report"=>"[FILTERED]", "apiv"=>"v2"}
2022-02-09T15:42:00 [W|app|148be0f3] No smart proxy server found on ["capsule.example.com"] and is not in trusted_hosts
2022-02-09T15:42:00 [I|app|148be0f3]   Rendering api/v2/errors/access_denied.json.rabl within api/v2/layouts/error_layout
2022-02-09T15:42:00 [I|app|148be0f3]   Rendered api/v2/errors/access_denied.json.rabl within api/v2/layouts/error_layout (Duration: 18.6ms | Allocations: 6737)
2022-02-09T15:42:00 [I|app|148be0f3] Filter chain halted as #<Proc:0x000000000bd92e10 /usr/share/foreman/app/controllers/concerns/foreman/controller/smart_proxy_auth.rb:14> rendered or redirected
2022-02-09T15:42:00 [I|app|148be0f3] Completed 403 Forbidden in 39ms (Views: 27.3ms | ActiveRecord: 4.6ms | Allocations: 17585)
SBR
Product(s)
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.