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

OLM details page crashes on incomplete ClusterServiceVersion resource

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 4.11.z
    • 4.12.z
    • Dev Console
    • None
    • Low
    • None
    • ODC Sprint 231
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      Cause: The UI expects that all ClusterServiceVersion contains a spec.provider definitions, but it is not required from the resource.

      Consequence: The operator details page crashes when trying to show such a resource.

      Fix: Add a null check so that ClusterServiceVersion resources without spec.provider works fine.

      Result: The operator details page doesn't crash anymore for such operators.
      Show
      Cause: The UI expects that all ClusterServiceVersion contains a spec.provider definitions, but it is not required from the resource. Consequence: The operator details page crashes when trying to show such a resource. Fix: Add a null check so that ClusterServiceVersion resources without spec.provider works fine. Result: The operator details page doesn't crash anymore for such operators.
    • Bug Fix

      Description of problem:
      When creating a incomplete ClusterServiceVersion resource the OLM details page crashes (on 4.11).

      apiVersion: operators.coreos.com/v1alpha1
      kind: ClusterServiceVersion
      metadata:
        name: minimal-csv
        namespace: christoph
      spec:
        apiservicedefinitions:
          owned:
            - group: A
              kind: A
              name: A
              version: v1
        customresourcedefinitions:
          owned:
            - kind: B
              name: B
              version: v1
        displayName: My minimal CSV
        install:
          strategy: ''
      

      Version-Release number of selected component (if applicable):
      Crashes on 4.8-4.11, work fine from 4.12 onwards.

      How reproducible:
      Alway

      Steps to Reproduce:
      1. Apply the ClusterServiceVersion YAML from above
      2. Open the Admin perspective > Installed Operator > Operator detail page

      Actual results:
      Details page crashes on tab A and B.

      Expected results:
      Page should not crash

      Additional info:
      Thi is a follow up on https://bugzilla.redhat.com/show_bug.cgi?id=2084287

            cjerolim Christoph Jerolimov
            cjerolim Christoph Jerolimov
            Sanket Pathak Sanket Pathak
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: