Bug 1982683

Summary: [4.8.z] CVO doesn't honor noProxy while contacting Cincinnati endpoint
Product: OpenShift Container Platform Reporter: Pablo Alonso Rodriguez <palonsor>
Component: Cluster Version OperatorAssignee: W. Trevor King <wking>
Status: CLOSED ERRATA QA Contact: liujia <jiajliu>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.0CC: aos-bugs, jiajliu, jokerman, lmohanty, pamoedom, wking
Target Milestone: ---   
Target Release: 4.8.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1978749
: 2030628 (view as bug list) Environment:
Last Closed: 2021-12-07 06:38:42 UTC Type: ---
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: 1978749    
Bug Blocks: 2030628    

Comment 3 liujia 2021-11-23 08:24:22 UTC
Build a release image with openshift/cluster-version-operator#691, and checked with registry.build01.ci.openshift.org/ci-ln-gxg18nb/release:latest.

1. Trigger a connected cluster installation with following proxy setting in install-config.yaml

```
  proxy:
    httpProxy: http://proxy-user1:xxx@xxx
    httpsProxy: http://proxy-user1:xxx@xxx
    noProxy: test.no-proxy.com,api.openshift.com
```
2. Add api.openshift.com to blocklist in proxy conf
3. CVO can access api.openshift.com with Noproxy setting(expected)

# ./oc adm upgrade
Cluster version is 0.0.1-0.test-2021-11-23-025025-ci-ln-gxg18nb-latest

warning: Cannot display available updates:
  Reason: VersionNotFound
  Message: Unable to retrieve available updates: currently reconciling cluster version 0.0.1-0.test-2021-11-23-025025-ci-ln-gxg18nb-latest not found in the "stable-4.8" channel

# ./oc get proxy cluster -oyaml|grep api.openshift.com
  noProxy: test.no-proxy.com,api.openshift.com
  noProxy: .cluster.local,.svc,.us-east-2.compute.internal,10.0.0.0/16,10.128.0.0/14,127.0.0.1,169.254.169.254,172.30.0.0/16,api-int.jliu-verify.qe.devcluster.openshift.com,api.openshift.com,localhost,test.no-proxy.com

Comment 8 errata-xmlrpc 2021-12-07 06:38:42 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.8.23 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:4881