Bug 1720333

Summary: Template Wizard accepts malformed MAC address
Product: Container Native Virtualization (CNV) Reporter: Radim Hrazdil <rhrazdil>
Component: User ExperienceAssignee: Phillip Bailey <phbailey>
Status: CLOSED CURRENTRELEASE QA Contact: Guohua Ouyang <gouyang>
Severity: low Docs Contact:
Priority: unspecified    
Version: 2.0CC: cnv-qe-bugs, gouyang, ncredi, phbailey
Target Milestone: ---   
Target Release: 2.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 4.2.0-0.nightly-2019-08-15-073735 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-04 15:07:41 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:

Description Radim Hrazdil 2019-06-13 17:24:43 UTC
Description of problem:
Template can be created successfully with a malformed MAC address and a user gets a failure when trying to create a VM using the template.

There should be a validation in place to make sure that the created template is valid. The same validation should also be in VM 

Creating VM from such template then fails on 

Version-Release number of selected component (if applicable):
kubevirt-web-ui-container-v2.0.0-14.7
HCO_BUNDLE_REGISTRY_TAG: v2.0.0-27

How reproducible:
100%

Steps to Reproduce:
1. Create a template with NIC with MAC set to '24:42' or similar invalid value
2.
3.

Actual results:
template can be created

Expected results:
User should not be allowed to proceed in the wizard

Additional info:

Comment 1 Phillip Bailey 2019-08-09 12:15:16 UTC
Network interfaces can also be added through the "Network Interfaces" tab in the VM details view. It makes sense to validate the MAC there, as well. This is being accomplished in a PR[1] submitted to the openshift/console repository.

[1] https://github.com/openshift/console/pull/2285