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
Verified on v4.11.0-388 OCP-4.11.0
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Important: OpenShift Virtualization 4.11.0 Images security and bug fix 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-2022:6526