Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 873657

Summary: [PATCH] Allow proxy between CDS and client systems in rhui-lb.py (yum plugin for RHUI)
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Satoru SATOH <ssato>
Component: ToolsAssignee: James Slagle <jslagle>
Status: CLOSED CURRENTRELEASE QA Contact: mkovacik
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.1CC: cmorgan, tsanders, whayutin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-04-19 04:32:45 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:
Attachments:
Description Flags
The patch allows proxy between CDS and client systems in rhui-lb.py (yum plugin for RHUI)
none
Revised version none

Description Satoru SATOH 2012-11-06 12:53:32 UTC
Created attachment 639349 [details]
The patch allows proxy between CDS and client systems in rhui-lb.py (yum plugin for RHUI)

Description of problem:

Current yum plugin for RHUI does not allows proxy between
CDS and client systems, but there should be such cases
exist because of the customer's policy or something.

I wrote an experimental patch supports this and confirmed
it works for both RHEL 5.8 and 6.3 clients.


Version-Release number of selected component (if applicable):
Tested w/ rh-rhui-tools-2.1.10-1, and RHEL 5.8/6.3 clients


How to test patch:

Apply patch and setup proxy (squid, RHEL6) and add the lines
specifying proxy related configs such like the followings in
/etc/yum.conf (or pluing specific conf although I didn't 
tested) in client systems:

proxy=https://rhel-6-proxy-1.m2.local:3128
proxy_username=foo
proxy_password=secret

And try clients accessing CDS via proxy by yum (e.g. yum repolist).


Additional info:

Basic parts of the patch looks OK but I'm not really sure about
the code around the patch updating proxy configuration for
each RHUI repos (repo objects).

Comment 1 Chris Morgan 2012-11-07 19:50:48 UTC
This will not be a supported configuration at this time.  Could you please clarify why a proxy would be required?  What is unique in their infrastructure where the current flexibility of deployment does not apply?  We need to understand the problem because we may need to address it more globally.

Comment 3 Satoru SATOH 2013-01-22 07:02:24 UTC
Created attachment 684895 [details]
Revised version

The previous patch does not work for cases if proxy auth is not set.
This is the revised version can handle such cases.