Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-18442

[2088034] Virtualization Overview crashes when a VirtualMachine has no labels

XMLWordPrintable

    • Moderate
    • No

      Description of problem:

      When a VirtualMachine has no labels at all, the Virtualization Overview page will crash because .metadata.labels doesn't exist on the object. When adding an arbitrary label to the object, the page stops crashing on load.

      Version-Release number of selected component (if applicable):

      Installing OpenShift Virtualization with the HCO:
      kubevirt-4.10.0

      How reproducible:

      Always

      Steps to Reproduce:

      1. Create a VirtualMachine with no labels
      2. Navigate to the Virtualization Overview
      3. Window will crash

      Actual results:

      Web console will show errors including:

      TypeError: Cannot read properties of undefined (reading 'vm.kubevirt.io/template')

      Expected results:

      Web console loads normally

      Additional info:

      In order to fix the bug just apply any label to the VirtualMachine object

              mschatzm@redhat.com Matan Schatzman
              jkincl@redhat.com Jason Kincl
              Guohua Ouyang Guohua Ouyang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: