Bug 1708195 - V2v - convert disk size
Summary: V2v - convert disk size
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: User Experience
Version: 2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.0
Assignee: Marek Libra
QA Contact: Ilanit Stein
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-05-09 10:59 UTC by Marek Libra
Modified: 2019-10-22 07:20 UTC (History)
7 users (show)

Fixed In Version: 2.0.0-14.4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-07-24 20:15:51 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2019:1850 0 None None None 2019-07-24 20:15:59 UTC

Description Marek Libra 2019-05-09 10:59:24 UTC
Related to the Web UI.

Description of problem:
For some source VMWare VMs during v2v, the disk size is computed to a weird floating number (i.e. 9.5123123...) on the Storage wizard step. A PV of such size can not be successfully provisioned (at least not on gluster), so the flow fails.

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

How reproducible:
100% With a proper source VM

Steps to Reproduce:
1. Launch Create VM Wizard, VMWare Import flow
2. Find a source VM with "weird" computed disk size
3. Finish the Wizard, check for error

Actual results:
Disk size is not in format/range acceptable by storage provider.

Expected results:
"Weird" values of storage class are rounded to acceptable value.
Needs to be verified, but it is probably nearest higher integer number.


Additional info:
When fixing the issue, I can help in finding the source VM with such incorrect disk size.

Comment 1 Tomáš Golembiovský 2019-05-10 08:51:34 UTC
Why exactly do you recalculate the size to GB? It should be possible to request PV with specified number of bytes, isn't it? Or are such requirements always present (e.g. provider requires sizes rounded to GBs or block size multiples)?

Comment 2 Marek Libra 2019-05-15 10:41:38 UTC
Prior v2v, the only source for the disk size value was the input from user, which is in GiBs.
We can either change the unit internally used or recalculate.

In the fix I propose, we recalculate to whatever reasonable unit when creating PVC.

Comment 3 Marek Libra 2019-05-15 13:52:29 UTC
Patch: https://github.com/kubevirt/web-ui-components/pull/452

Comment 4 Ilanit Stein 2019-06-04 08:23:02 UTC
Marek,

Can you please help in exact reproduce steps, when using local storage?

Thanks,
Ilanit.

Comment 5 Igor Braginsky 2019-06-17 09:15:19 UTC
Verified fix on version HCO 27.
VM had 2 disks, one usual with OS, second small, 1MB without filesystem.
During migration wizard showed second disk with its proper size.

Comment 7 errata-xmlrpc 2019-07-24 20:15:51 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


Note You need to log in before you can comment on or make changes to this bug.