Bug 1980411 - [4.8.z] Cluster-version operator loads proxy config from spec, not status
Summary: [4.8.z] Cluster-version operator loads proxy config from spec, not status
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.8.z
Assignee: W. Trevor King
QA Contact: Johnny Liu
URL:
Whiteboard:
Depends On: 1978774
Blocks: 2007674 2014170
TreeView+ depends on / blocked
 
Reported: 2021-07-08 15:23 UTC by Pablo Alonso Rodriguez
Modified: 2021-10-14 14:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
If this bug requires documentation, please select an appropriate Doc Type value.
Clone Of: 1978774
: 2007674 (view as bug list)
Environment:
Last Closed: 2021-09-21 08:01:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-version-operator pull 627 0 None open Bug 1980411: [release-4.8] pkg/cvo/egress: Load HTTPS proxy from Proxy status 2021-07-29 09:07:38 UTC
Red Hat Product Errata RHBA-2021:3511 0 None None None 2021-09-21 08:01:59 UTC

Comment 2 W. Trevor King 2021-07-12 22:42:28 UTC
4.8 is almost GA, and this bug doesn't rise to the level of things that will get stuffed in at the last minute.  We'll fix in 4.8.z once we get to the point of landing low-severity bugfixes.

Comment 3 Johnny Liu 2021-07-13 06:28:57 UTC
Using pre-merge build to run this verification, and get passed.

[root@preserve-jialiu-ansible ~]# oc get co network
NAME      VERSION                                                  AVAILABLE   PROGRESSING   DEGRADED   SINCE
network   4.8.0-0.ci.test-2021-07-13-030431-ci-ln-ny1cyfk-latest   True        False         False      48m
[root@preserve-jialiu-ansible ~]# oc edit proxies.config.openshift.io
proxy.config.openshift.io/cluster edited
[root@preserve-jialiu-ansible ~]# oc get proxies.config.openshift.io cluster -o json
{
    "apiVersion": "config.openshift.io/v1",
    "kind": "Proxy",
    "metadata": {
        "creationTimestamp": "2021-07-13T05:29:08Z",
        "generation": 2,
        "name": "cluster",
        "resourceVersion": "40145",
        "uid": "7c6476f1-3362-45ca-9df8-e975848cd663"
    },
    "spec": {
        "httpProxy": "proxy-user1",
        "httpsProxy": "proxy-user1",
        "noProxy": "test.no-proxy.com",
        "trustedCA": {
            "name": ""
        }
    },
    "status": {
        "httpProxy": "http://proxy-user1:JYgU8qRZV4DY4PXJbxJK@10.0.0.2:3128",
        "httpsProxy": "http://proxy-user1:JYgU8qRZV4DY4PXJbxJK@10.0.0.2:3128",
        "noProxy": ".cluster.local,.svc,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.jialiu1980411.qe.gcp.devcluster.openshift.com,localhost,metadata,metadata.google.internal,metadata.google.internal.,test.no-proxy.com"
    }
}
[root@preserve-jialiu-ansible ~]#  oc describe co network
Name:         network
Namespace:    
Labels:       <none>
Annotations:  include.release.openshift.io/ibm-cloud-managed: true
              include.release.openshift.io/self-managed-high-availability: true
              include.release.openshift.io/single-node-developer: true
              network.operator.openshift.io/last-seen-state: {"DaemonsetStates":[],"DeploymentStates":[]}
API Version:  config.openshift.io/v1
Kind:         ClusterOperator
Metadata:
  Creation Timestamp:  2021-07-13T05:29:13Z
  Generation:          1
  Managed Fields:
    API Version:  config.openshift.io/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .:
          f:include.release.openshift.io/ibm-cloud-managed:
          f:include.release.openshift.io/self-managed-high-availability:
          f:include.release.openshift.io/single-node-developer:
      f:spec:
      f:status:
        .:
        f:extension:
    Manager:      cluster-version-operator
    Operation:    Update
    Time:         2021-07-13T05:29:14Z
    API Version:  config.openshift.io/v1
    Fields Type:  FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          f:network.operator.openshift.io/last-seen-state:
      f:status:
        f:conditions:
        f:relatedObjects:
        f:versions:
    Manager:         cluster-network-operator
    Operation:       Update
    Time:            2021-07-13T05:35:21Z
  Resource Version:  40147
  UID:               bae49eb1-723c-44ff-a8d7-62e0f08f1d1e
Spec:
Status:
  Conditions:
    Last Transition Time:  2021-07-13T06:24:53Z
    Message:               The configuration is invalid for proxy 'cluster' (invalid httpProxy URI: parse "proxy-user1": invalid URI for request). Use 'oc edit proxy.config.openshift.io cluster' to fix.
    Reason:                InvalidProxyConfig
    Status:                True
    Type:                  Degraded
    Last Transition Time:  2021-07-13T05:34:27Z
    Status:                False
    Type:                  ManagementStateDegraded
    Last Transition Time:  2021-07-13T05:34:27Z
    Status:                True
    Type:                  Upgradeable
<--snip-->
[root@preserve-jialiu-ansible ~]# oc get co network
NAME      VERSION                                                  AVAILABLE   PROGRESSING   DEGRADED   SINCE
network   4.8.0-0.ci.test-2021-07-13-030431-ci-ln-ny1cyfk-latest   True        False         True       52m
[root@preserve-jialiu-ansible ~]# oc adm upgrade
Cluster version is 4.8.0-0.ci.test-2021-07-13-030431-ci-ln-ny1cyfk-latest

warning: Cannot display available updates:
  Reason: VersionNotFound
  Message: Unable to retrieve available updates: currently reconciling cluster version 4.8.0-0.ci.test-2021-07-13-030431-ci-ln-ny1cyfk-latest not found in the "stable-4.8" channel

It does not complain about the proxy URI, using staus for that.

Comment 4 W. Trevor King 2021-07-23 23:34:15 UTC
Waiting on the patch manager to fit it into the 4.8 queue.

Comment 6 Johnny Liu 2021-09-10 07:31:40 UTC
Per comment 3, move it to verified.

Comment 9 errata-xmlrpc 2021-09-21 08:01:58 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.12 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:3511


Note You need to log in before you can comment on or make changes to this bug.