-
Bug
-
Resolution: Done-Errata
-
Normal
-
None
-
False
-
-
False
-
CLOSED
-
No
-
---
-
---
-
Medium
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