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

`availableUpdates: null` results in run-time error on Cluster Settings page

    XMLWordPrintable

Details

    • Proposed
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, a regression was introduced causing the *Cluster Settings* page to return an error when a ClusterVersion’s `status.availableUpdates` had a value of `null` and `Upgradeable=False`. With this update, `status.availableUpdates` are allowed to have a `null` value. (link:https://issues.redhat.com/browse/OCPBUGS-6053[*OCPBUGS-6053*])
      Show
      * Previously, a regression was introduced causing the *Cluster Settings* page to return an error when a ClusterVersion’s `status.availableUpdates` had a value of `null` and `Upgradeable=False`. With this update, `status.availableUpdates` are allowed to have a `null` value. (link: https://issues.redhat.com/browse/OCPBUGS-6053 [* OCPBUGS-6053 *])
    • Bug Fix
    • Done

    Description

      Description of problem:

      When a ClusterVersion's `status.availableUpdates` has a value of `null` and `Upgradeable=False`, a run time error occurs on the Cluster Settings page as the UpdatesGraph component expects `status.availableUpdates` to have a non-empty value.

      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.  Visit /settings/cluster and note the run-time error (see attached screenshot) 

      Actual results:

      An error occurs.

      Expected results:

      The contents of the Cluster Settings page render.

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-rhamilto Robb Hamilton
              rhn-engineering-rhamilto Robb Hamilton
              Xiyun Zhao Xiyun Zhao
              Olivia Payne Olivia Payne
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: