Bug 1710775

Summary: Memory size of imported VM can be set to less than 1 GB
Product: Container Native Virtualization (CNV) Reporter: Radim Hrazdil <rhrazdil>
Component: User ExperienceAssignee: Rastislav Wagner <rawagner>
Status: CLOSED ERRATA QA Contact: Radim Hrazdil <rhrazdil>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.0CC: bthurber, cnv-qe-bugs, mlibra, ncredi, rawagner, sgordon, tjelinek
Target Milestone: ---   
Target Release: 2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.0.0-14.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-24 20:16:06 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
screenshot none

Description Radim Hrazdil 2019-05-16 09:47:06 UTC
Created attachment 1569459 [details]
screenshot

Description of problem:
When Import is selected as a provision source, the imported VM from VMWare may have memory set to a value less than 1 GB (for example 0.5 GB).
Under normal circumstances, user is not allowed to enter value that is lower that 1GB.

Memory field tooltip displays a warning that 'Value must me greater or equal to 1', but the input element is not marked with error message and it is possible to move next in the wizard and ultimately create the VM.



Version-Release number of selected component (if applicable):
2.0.0

How reproducible:
100%

Steps to Reproduce:
1. Choose Import as provision source in VM Wizard
2. Choose a VM that has less than 1GB memory
3.

Actual results:


Expected results:
User should not be able to proceed if the memory is set to an unsupported value

Additional info:

Comment 1 Rastislav Wagner 2019-05-24 10:35:18 UTC
https://github.com/kubevirt/web-ui-components/pull/476

Comment 2 Tomas Jelinek 2019-05-27 06:54:01 UTC
backport: https://github.com/kubevirt/web-ui-components/pull/480

Comment 3 Marek Libra 2019-06-03 10:00:33 UTC
Included in kubevirt-2.0.0-14.6 .
Will be in hco-bundle-registry:v2.0.0-22 .

Comment 4 Radim Hrazdil 2019-06-04 12:16:08 UTC
Verified with kubevirt-web-ui-container-v2.0.0-14.6, HCO v2.0.0-22.
VMs with less than 0.5 lead to a warning. User needs to enter valid value before proceeding.

Comment 6 errata-xmlrpc 2019-07-24 20:16:06 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, 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/RHEA-2019:1850