Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-6049

Do not show UpdateInProgress when status is Failing

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 4.13
    • Management Console
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the node progress bars were set to display when the cluster version had a status of `Failing`, `UpdatingAndFailing`, and `Updating` causing the node progress bars to display when the cluster is not updating. With this update, the node progress bars only display when the cluster version has a status of `UpdatingAndFailing` or `Updating`. (link:https://issues.redhat.com/browse/OCPBUGS-6049[*OCPBUGS-6049*])
      Show
      * Previously, the node progress bars were set to display when the cluster version had a status of `Failing`, `UpdatingAndFailing`, and `Updating` causing the node progress bars to display when the cluster is not updating. With this update, the node progress bars only display when the cluster version has a status of `UpdatingAndFailing` or `Updating`. (link: https://issues.redhat.com/browse/OCPBUGS-6049 [* OCPBUGS-6049 *])
    • Bug Fix
    • Done

      Description of problem:

      We show the UpdateInProgress component (the progress bars) when the cluster update status is Failing, UpdatingAndFailing, or Updating.  The inclusion of the Failing case results in a bug where the progress bars can display when an update is not occurring (see attached screenshot).  

      Steps to Reproduce:

      1.  Add the following overrides to ClusterVersion config (/k8s/cluster/config.openshift.io~v1~ClusterVersion/version)
      
      spec:
        overrides:
          - group: apps
            kind: Deployment
            name: console-operator
            namespace: openshift-console-operator
            unmanaged: true    
          - group: rbac.authorization.k8s.io
            kind: ClusterRole
            name: console-operator
            namespace: ''
            unmanaged: true
      2.  Wait for ClusterVersion changes to roll out.
      3.  Visit /settings/cluster and note the progress bars are present and displaying 100% but the cluster is not updating
      

      Actual results:

      Progress bars are displaying when not updating.

      Expected results:

      Progress bars should not display when updating.

            [OCPBUGS-6049] Do not show UpdateInProgress when status is Failing

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Important: OpenShift Container Platform 4.13.0 security 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/RHSA-2023:1326

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Important: OpenShift Container Platform 4.13.0 security 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/RHSA-2023:1326

            YaDan Pei added a comment - - edited

            1. Patch oauth.yaml to make co/authentication to be Available: True and Degraded: True status

            $ cat oauth.yaml
            apiVersion: config.openshift.io/v1
            kind: OAuth
            metadata:
              name: cluster
            spec:
              identityProviders:
              - name: oidcidp 
                mappingMethod: claim 
                type: OpenID
                openID:
                  clientID: test
                  clientSecret: 
                    name: test
                  claims: 
                    preferredUsername:
                    - preferred_username
                    name:
                    - name
                    email:
                    - email
                  issuer: https://www.idp-issuer.example.com  
            $ oc apply -f oauth.yaml

            2. Wait for some minutes, check co/authentication status

            $ oc get co authentication                                                  
            NAME             VERSION       AVAILABLE   PROGRESSING   DEGRADED   SINCE   MESSAGE
            authentication   4.13.0-0.nightly-2023-01-27-165107   True        False         True       57m     OAuthServerConfigObservationDegraded: failed to apply IDP oidcidp config: dial tcp: lookup www.idp-issuer.example.com on 172.30.0.10:53: no such host 

            3. Check CVO Failing condition

            $ oc get clusterversion/version -ojson | jq '.status.conditions[]|select(.type == "Failing")' 
            {
              "lastTransitionTime": "2023-01-29T08:17:26Z",
              "message": "Cluster operator authentication is degraded",
              "reason": "ClusterOperatorDegraded",
              "status": "True",
              "type": "Failing"
            } 

            4. Visit /settings/cluster page, progress bar is not shown
            the issue is fixed, progress bar is not shown when `Update status` is Failing, this is checked against 4.13.0-0.nightly-2023-01-27-165107

            YaDan Pei added a comment - - edited 1. Patch oauth.yaml to make co/authentication to be Available: True and Degraded: True status $ cat oauth.yaml apiVersion: config.openshift.io/v1 kind: OAuth metadata:   name: cluster spec:   identityProviders:   - name: oidcidp      mappingMethod: claim      type: OpenID     openID:       clientID: test       clientSecret:          name: test       claims:          preferredUsername:         - preferred_username         name:         - name         email:         - email       issuer: https: //www.idp-issuer.example.com  $ oc apply -f oauth.yaml 2. Wait for some minutes, check co/authentication status $ oc get co authentication                                                   NAME             VERSION       AVAILABLE   PROGRESSING   DEGRADED   SINCE   MESSAGE authentication   4.13.0-0.nightly-2023-01-27-165107   True        False         True       57m     OAuthServerConfigObservationDegraded: failed to apply IDP oidcidp config: dial tcp: lookup www.idp-issuer.example.com on 172.30.0.10:53: no such host 3. Check CVO Failing condition $ oc get clusterversion/version -ojson | jq '.status.conditions[]|select(.type == "Failing" )'   {   "lastTransitionTime" : "2023-01-29T08:17:26Z" ,   "message" : "Cluster operator authentication is degraded" ,   "reason" : "ClusterOperatorDegraded" ,   "status" : "True" ,   "type" : "Failing" } 4. Visit /settings/cluster page, progress bar is not shown the issue is fixed, progress bar is not shown when `Update status` is Failing, this is checked against 4.13.0-0.nightly-2023-01-27-165107

            YaDan Pei added a comment - - edited

            1. Add following overrides to clusterversion/version

            $ oc get clusterversion version -o json | jq .spec
            {
              "channel": "stable-4.12",
              "clusterID": "3a68ee65-c36a-40d0-999a-9c8d75983146",
              "overrides": [
                {
                  "group": "apps",
                  "kind": "Deployment",
                  "name": "console-operator",
                  "namespace": "openshift-console-operator",
                  "unmanaged": true
                },
                {
                  "group": "rbac.authorization.k8s.io",
                  "kind": "ClusterRole",
                  "name": "console-operator",
                  "namespace": "",
                  "unmanaged": true
                }
              ]
            } 

            2. Wait for ClusterVersion changes to roll out.

            3. Visit /settings/cluster page, progress bar is not showing

            verified on 4.13.0-0.nightly-2023-01-27-165107

             

            YaDan Pei added a comment - - edited 1. Add following overrides to clusterversion/version $ oc get clusterversion version -o json | jq .spec {   "channel" : "stable-4.12" ,   "clusterID" : "3a68ee65-c36a-40d0-999a-9c8d75983146" ,   "overrides" : [     {       "group" : "apps" ,       "kind" : "Deployment" ,       "name" : "console- operator " ,       "namespace" : "openshift-console- operator " ,       "unmanaged" : true     },     {       "group" : "rbac.authorization.k8s.io" ,       "kind" : "ClusterRole" ,       "name" : "console- operator " ,       "namespace" : "",       "unmanaged" : true     }   ] } 2. Wait for ClusterVersion changes to roll out. 3. Visit /settings/cluster page, progress bar is not showing verified on 4.13.0-0.nightly-2023-01-27-165107  

            cc: trking 

            Robb Hamilton added a comment - cc: trking  

              rhn-engineering-rhamilto Robb Hamilton
              rhn-engineering-rhamilto Robb Hamilton
              YaDan Pei YaDan Pei
              Olivia Payne Olivia Payne
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: