Bug 2162458

Summary: use-http-proxy switch does not work properly
Product: Red Hat Satellite Reporter: Vladimír Sedmík <vsedmik>
Component: Alternate Content SourcesAssignee: Quinn James <qjames>
Status: CLOSED COMPLETED QA Contact: Vladimír Sedmík <vsedmik>
Severity: medium Docs Contact: Brian Angelica <bangelic>
Priority: unspecified    
Version: 6.13.0CC: ahumbe, pcreech
Target Milestone: 6.14.0Keywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Known Issue
Doc Text:
.Alternate Content Sources that use HTTP proxies cannot have the HTTP proxy removed If the *Use HTTP Proxy* flag is unset on the Alternate Content Source, traffic continues to go through the HTTP proxy. The workaround is to destroy the Alternate Content Source and recreate it.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-21 13:07:56 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 Vladimír Sedmík 2023-01-19 16:17:23 UTC
Description of problem:
We have an ACS with assigned capsules which are set with HTTP Proxy, so the traffic is proxied through it on ACS refresh. The thing is it is proxied even when we set 'Use HTTP Proxies' on that ACS to 'false'.


Version-Release number of selected component (if applicable):
6.13.0 snap 5


How reproducible:
always


Steps to Reproduce:
1. Have an HTTP proxy assigned to a Capsule.
2. Have an ACS with the Capsule assigned and 'Use HTTP Proxies' set to 'true'.
3. Trigger ACS refresh and check /var/log/squid/access.log on the HTTP Proxy - you should see the traffic from the Capsule.
4. Set 'Use HTTP Proxies' on the ACS to 'false', trigger refresh and check the access.log.


Actual results:
The traffic still goes through the HTTP Proxy.


Expected results:
It should not go through HTTP Proxy.

Comment 1 Quinn James 2023-02-14 20:48:53 UTC
Created redmine issue https://projects.theforeman.org/issues/36102 from this bug

Comment 2 Quinn James 2023-02-21 18:11:40 UTC
Behavior is only exhibited for custom and rhui ACS types.

Comment 4 Bryan Kearney 2023-03-15 16:03:30 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/36102 has been resolved.

Comment 5 Vladimír Sedmík 2023-06-06 09:26:56 UTC
Verified in 6.14.0 snap 2.

The 'Use HTTP Proxies' switch toggles now properly and it's functionality can be observed in the proxy.log. Tested with both, authenticated and unauthenticated, proxies and all ACS types.