Bug 1930152

Summary: Web console crashes during VM creation from template when no storage classes are defined
Product: OpenShift Container Platform Reporter: OpenShift BugZilla Robot <openshift-bugzilla-robot>
Component: Console Kubevirt PluginAssignee: Rastislav Wagner <rawagner>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: high Docs Contact:
Priority: high    
Version: 4.7CC: aos-bugs, gouyang, rawagner, yzamir
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: No storage classes in cluster Consequence: VM wizard breaks the console Fix: Do not fail if no storage classes are present in cluster. Remove dropdown which allows user to change the storage class as there is nothing to choose from. Result: VM wizard works fine when no storage classes are present
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-30 04:46:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1930064    
Bug Blocks:    

Description OpenShift BugZilla Robot 2021-02-18 12:14:20 UTC
+++ This bug was initially created as a clone of Bug #1930064 +++

Created attachment 1757757 [details]
screen recording

Description of problem:
Web console crashes during VM creation from template when no storage classes are defined. See the attached screen recording.

$ oc get storageclass
No resources found

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2021-02-17-130606
kubevirt-hyperconverged-operator.v2.5.3


How reproducible:
always

Steps to Reproduce:
1. Workloads -> Virtualization -> Templates
2. Choose any template and press Create


Actual results:
Web app crashes, leaving the user with a white screen.

Expected results:
Web app should not crash.

Additional info:

Comment 3 Guohua Ouyang 2021-03-25 00:09:59 UTC
Move the bug to verified per comment #6 in bug 1930064.

Comment 5 errata-xmlrpc 2021-03-30 04:46:29 UTC
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 (Moderate: OpenShift Container Platform 4.7.4 security 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-2021:0957