Bug 2052589

Summary: Capsule clients cannot report via puppet to Satellite
Product: Red Hat Satellite Reporter: Jan Jansky <jjansky>
Component: PuppetAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Vladimír Sedmík <vsedmik>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.10.2CC: ahumbe, saydas
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-21 08:44:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jan Jansky 2022-02-09 15:58:03 UTC
Description of problem:
All Capsule puppet clients who reporting to Capsule are denied on Satellite with error below.

[W|app|a72312f0] No smart proxy server found on ["capsule.example.com"] and is not in trusted_hosts
...
[I|app|a72312f0] Completed 403 Forbidden in 70ms (Views: 41.9ms | ActiveRecord: 3.7ms | Allocations: 19147)

Version-Release number of selected component (if applicable):
6.10.2
6.9.7
can check on older if needed

How reproducible:
Always


Steps to Reproduce:
1. Install Satellite
2. Install Capsule
3. Register client to Capsule
4. Run puppet agent
5. sign puppet agent key
6. Run puppet agent

Actual results:
[W|app|a72312f0] No smart proxy server found on ["capsule.example.com"] and is not in trusted_hosts
...
[I|app|a72312f0] Completed 403 Forbidden in 70ms (Views: 41.9ms | ActiveRecord: 3.7ms | Allocations: 19147)

Expected results:
[I|app|c316c7ee] Import facts for 'host.example.com' completed. Added: 0, Updated: 5, Deleted 0 facts

Additional info:
I believe capsule should be found as smart_proxy server and should be allowed or it should be added to trust hosts during Capsule registration.

Comment 4 Sayan Das 2022-03-18 11:43:20 UTC
Hey Jan

I have a feeling that following BZ (which i noticed yesterday ) is actually related to the same concern and is already in ON_QA state

2026239 – Config report upload failed with "No smart proxy server found on ["capsule.example.com"] and is not in trusted_hosts"
https://bugzilla.redhat.com/show_bug.cgi?id=2026239

But I could be wrong, So please check on it once. 


-- Sayan