-
Bug
-
Resolution: Done
-
Normal
-
2.8.0
-
Quality / Stability / Reliability
-
False
-
-
True
-
-
-
MTV Sprint 3, MTV Sprint 4
Description of problem:
Can't migrate a guest if the guest contains a disk with 0 size on MTV
Version-Release number of selected component (if applicable):
MTV 2.8.0
OCP 4.18.9
How reproducible:
100%
Steps to Reproduce:
1. Prepare a guest and the guest contains a disk with 0 size on VMware (actually, the second disk size of the guest is 40G, not sure why the disk size shows is 0 on vSphere client)

2. Migrate the guest from VMware on MTV but the migration plan is failed with failure ' Storage size can't be equal or less than zero'

Actual results:
As above description
Expected results:
Fix the bug
Additional info:
1. Can't reproduce the bug on RHEL and the second disk size of the guest shows 40G after v2v conversion
# virt-v2v -ic vpx://administrator%40vsphere.local@10.73.213.102/data/10.73.212.38/?no_verify=1 -it vddk -io vddk-libdir=/home/vddk8.0.3 -io vddk-thumbprint=86:25:2F:5E:74:5C:43:D9:28:62:31:E0:1F:BB:1F:FD:AC:18:A5:93 -ip /home/passwd esx7.0-sles12sp4-x86_64 [ 0.0] Setting up the source: -i libvirt -ic vpx://administrator%40vsphere.local@10.73.213.102/data/10.73.212.38/?no_verify=1 -it vddk esx7.0-sles12sp4-x86_64 [ 2.9] Opening the source [ 13.9] Inspecting the source *** Dual- or multi-boot operating system detected. Choose the root filesystem that contains the main operating system from the list below: [1] /dev/sda2 (SUSE Linux Enterprise Server 12 SP4) [2] /dev/vg00/lv_root (CentOS Linux release 7.9.2009 (Core)) Enter a number between 1 and 2, or ‘exit’: 1 [ 38.7] Checking for sufficient free disk space in the guest [ 38.7] Converting SUSE Linux Enterprise Server 12 SP4 (sles12sp4) to run on KVM virt-v2v: The QEMU Guest Agent will be installed for this guest at first boot. virt-v2v: This guest has virtio drivers installed. [ 118.7] Setting a random seed [ 118.8] SELinux relabelling [ 119.0] Mapping filesystem data to avoid copying unused and blank areas [ 121.1] Closing the overlay [ 121.5] Assigning disks to buses [ 121.5] Checking if the guest needs BIOS or UEFI to boot [ 121.5] Setting up the destination: -o libvirt [ 124.5] Copying disk 1/2 █ 100% [****************************************] [ 414.6] Copying disk 2/2 █ 100% [****************************************] [ 441.0] Creating output metadata [ 441.1] Finishing off
# qemu-img info /var/lib/libvirt/images/esx7.0-sles12sp4-x86_64-sdb image: /var/lib/libvirt/images/esx7.0-sles12sp4-x86_64-sdb file format: raw virtual size: 40 GiB (42949672960 bytes) disk size: 1.34 GiB Child node '/file': filename: /var/lib/libvirt/images/esx7.0-sles12sp4-x86_64-sdb protocol type: file file length: 40 GiB (42949672960 bytes) disk size: 1.34 GiB