Bug 1916772

Summary: Metal3 deployment not consuming cluster-wide proxy settings
Product: OpenShift Container Platform Reporter: Mario Vázquez <mavazque>
Component: Cloud ComputeAssignee: Kiran Thyagaraja <kiran>
Cloud Compute sub component: BareMetal Provider QA Contact: Victor Voronkov <vvoronko>
Status: CLOSED ERRATA Docs Contact:
Severity: urgent    
Priority: urgent CC: aos-bugs, derekh, djuran, fsoppels, kiran, mschwabe, pablo.iranzo, racedoro, rbartal, stbenjam, yjoseph
Version: 4.6Keywords: Triaged
Target Milestone: ---   
Target Release: 4.6.z   
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: 2021-05-20 11:52: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:
Bug Depends On: 1936544    
Bug Blocks: 1831748    

Description Mario Vázquez 2021-01-15 15:18:03 UTC
Description of problem:

In an environment where we need the proxy to download the RHCOS images we are hitting the following issues:

1. We have a proxy configured in the install-config.yaml.
2. The coreos-downloader container running on the Bootstrap VM is able to pull the RHCOS images.
3. Once the cluster is deployed, the metal3 pod fails to initialize. The container metal3-machine-os-downloader cannot pull the RHCOS images.

It seems that the metal3 deployment is not consuming the cluster-wide proxy configuration.

We tried to rsh into the container and as expected, when setting the https proxy everything works as expected: 

sh-4.4# curl https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/latest/latest/rhcos-4.6.8-x86_64-openstack.x86_64.qcow2.gz                                                                              

sh-4.4#

sh-4.4#

sh-4.4# https_proxy=http://192.168.1.10:3128 curl https://mirror.openshift.com/pub/openshift-v4/dependencies/rhcos/latest/latest/rhcos-4.6.8-x86_64-openstack.x86_64.qcow2.gz -O                                     

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

  0  844M    0  864k    0     0   850k      0  0:16:57  0:00:01  0:16:56  849k^C


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

4.6.8

How reproducible:
Always

Steps to Reproduce:
Stated in the description

Actual results:
Metal3 pod fails to initialize

Expected results:
Metal3 pod initializes

Additional info:

Comment 2 sdasu 2021-01-19 17:31:29 UTC
*** Bug 1915802 has been marked as a duplicate of this bug. ***

Comment 7 Yaniv Joseph 2021-03-08 13:45:43 UTC
Copy Interwhiteboard annotation from https://bugzilla.redhat.com/show_bug.cgi?id=1915802.

Comment 17 errata-xmlrpc 2021-05-20 11:52: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 (OpenShift Container Platform 4.6.29 bug fix update), 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-2021:1521