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

Bug 2034281

Summary: Proxy support for RHUI4
Product: Red Hat Update Infrastructure for Cloud Providers Reporter: Manu Sunil <msunil>
Component: PulpAssignee: RHUI Bug List <rhui-bugs>
Status: CLOSED ERRATA QA Contact: Radek Bíba <rbiba>
Severity: urgent Docs Contact:
Priority: high    
Version: 4.0.0CC: ahumbe, akapse, gtanzill, hasuzuki, johan.a.bergstrom, johan.bergstrom, mshimura
Target Milestone: 4.1.0Keywords: Rebase, Triaged
Target Release: 4.x   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-12 08:51:25 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 Manu Sunil 2021-12-20 15:03:43 UTC
Description of problem:

Proxy support with RHUI 4. The installer has parameters for configuring proxy but it seems like the proxy is not used for communication with the CDN.

~~~
--proxy-hostname PROXY_HOSTNAME
                        Hostname of the proxy to use when retrieving content
  --proxy-password PROXY_PASSWORD
                        Password to use if the proxy requires authentication
  --proxy-port PROXY_PORT
                        Port to use with the proxy (default: 3128)
  --proxy-protocol PROXY_PROTOCOL
                        Protocol to use with the proxy. Valid options are one
  --proxy-username PROXY_USERNAME
                        Username to use if the proxy requires authentication
~~~

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

rhui-installer-4.0.0.16-1.el8ui.noarch

How reproducible:

Everytime

Steps to Reproduce:

1. Run RHUI installer with proxy parameters on the RHUA.
   
   ~~~
   # rhui-installer --proxy-hostname proxy.example.com --proxy-port 3128 --proxy-protocol http
   ~~~

Actual results:

The installer runs successfully and both the answers file and the rhui-tools.conf is updated.

~~~
 # grep proxy /root/.rhui/answers.yaml
proxy_hostname: proxy.example.com
proxy_password: null
proxy_port: 3128
proxy_protocol: http
~~~

~~~
# grep ^proxy /etc/rhui/rhui-tools.conf
proxy_host: vm250-248.gsslab.pnq2.redhat.com
proxy_protocol: http
proxy_port: 3128
proxy_user: 
proxy_pass: 
~~~

But the database does not report a proxy. 

~~~
   pulp=# select pulp_id,name,proxy_url from core_remote;
               pulp_id                |                  name                  | proxy_url 
--------------------------------------+----------------------------------------+-----------
 d8983d2b-b929-4fc4-878d-b9f0171d8cee | rhel-7-server-rhui-rpms-7Server-x86_64 | 
~~~

Expected results:

Proxy should be used for communication with the CDN.

Comment 1 Johan Bergström 2021-12-20 15:31:38 UTC
A workaround until installer is properly fixed would be appreciated.

Ie, if I can manually set the right params in pulp somehow.

Comment 10 errata-xmlrpc 2022-04-12 08:51:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (RHUI 4.1.0 release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:1315