Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2039618

Summary: VM created from SAP HANA template leads to 404 page if leave one network parameter empty
Product: OpenShift Container Platform Reporter: Guohua Ouyang <gouyang>
Component: Console Kubevirt PluginAssignee: Aviv Turgeman <aturgema>
Status: CLOSED ERRATA QA Contact: Guohua Ouyang <gouyang>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.10CC: aos-bugs, aturgema, gouyang
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-12 04:40:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
create vm from hana template none

Description Guohua Ouyang 2022-01-12 05:37:31 UTC
Created attachment 1850256 [details]
create vm from hana template

Description of problem:
Create a VM from SAP HANA template, leave one network field empty, and then create the VM, it leads to 404 page.

Version-Release number of selected component (if applicable):
4.10.0-0.nightly-2022-01-09-195852

How reproducible:
100%

Steps to Reproduce:
1. create vm from SAP HANA template
2. clear the content of one network field
3. click create

Actual results:
no VM was created

Expected results:
either VM is created or an error shows after clicking the create button

Additional info:

Comment 1 Aviv Turgeman 2022-01-13 19:06:44 UTC
I think it would be a good idea to add validation to the form to verify all required fields are filled.
Also we should consider in case of this a required field to add the required field to the template and the verify will catch on the missing value OR
add a generate field so we can get these names by default without the option of a user deleting them, WDYT

Comment 2 Guohua Ouyang 2022-01-14 00:26:43 UTC
(In reply to aviv turgeman from comment #1)
> I think it would be a good idea to add validation to the form to verify all
> required fields are filled.
> Also we should consider in case of this a required field to add the required
> field to the template and the verify will catch on the missing value
Mark them as required field would be good and don't continue if these values are empty.

> OR add a generate field so we can get these names by default without the option
> of a user deleting them, WDYT
Actually, I'm curious about these hardcode values, are they constants or they're parameters which will be different based on how the SRIOV network is configured.

Comment 4 Guohua Ouyang 2022-01-21 02:30:25 UTC
verified on master, the field must be filled now.

Comment 8 errata-xmlrpc 2022-03-12 04:40:54 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.10.3 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-2022:0056