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

Bug 1636144

Summary: -it vddk -io vddk-snapshot with bogus snapshot ID does not fail
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED CANTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0CC: jsuchane, juzhou, mxie, mzhan, ptoscano, rjones, tzheng, virt-bugs, xiaodwan, zili
Target Milestone: rc   
Target Release: 8.1   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: V2V
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1527334 Environment:
Last Closed: 2020-02-04 14:12:56 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 Richard W.M. Jones 2018-10-04 14:37:38 UTC
+++ This bug was initially created as a clone of Bug #1527334 +++

Description of problem:

1.Convert a snapshot guest from vmware using VMware VDDK as a transport with --vddk-snapshot option,but set invalid value for --vddk-snapshot option

# virt-v2v -ic vpx://vsphere.local%5cAdministrator.75.182/data/10.73.3.19/?no_verify=1 -it vddk --vddk-libdir /root/vmware-vix-disklib-distrib --vddk-thumbprint 1E:22:D9:AF:A3:00:09:E7:F5:90:0E:C2:D7:19:CD:6F:90:E5:C8:BF  Auto-esx5.5-rhel7.1-snapshot --password-file /tmp/passwd --vddk-snapshot xxadfasdf
[   0.1] Opening the source -i libvirt -ic vpx://vsphere.local%5cAdministrator.75.182/data/10.73.3.19/?no_verify=1 Auto-esx5.5-rhel7.1-snapshot -it vddk  --vddk-libdir /root/vmware-vix-disklib-distrib --vddk-snapshot xxadfasdf --vddk-thumbprint 1E:22:D9:AF:A3:00:09:E7:F5:90:0E:C2:D7:19:CD:6F:90:E5:C8:BF
[   4.1] Creating an overlay to protect the source from being modified
[  42.2] Initializing the target -o libvirt -os default
[  42.3] Opening the overlay
[  48.9] Inspecting the overlay
[  70.4] Checking for sufficient free disk space in the guest
[  70.4] Estimating space required on target for each disk
[  70.4] Converting Red Hat Enterprise Linux Server 7.1 (Maipo) to run on KVM
virt-v2v: This guest has virtio drivers installed.
[ 200.2] Mapping filesystem data to avoid copying unused and blank areas
[ 200.7] Closing the overlay
[ 201.3] Checking if the guest needs BIOS or UEFI to boot
[ 201.3] Assigning disks to buses
[ 201.3] Copying disk 1/1 to /var/lib/libvirt/images/Auto-esx5.5-rhel7.1-snapshot-sda (raw)
    (100.00/100%)
[ 315.8] Creating output metadata
Pool default refreshed

Domain Auto-esx5.5-rhel7.1-snapshot defined from /tmp/v2vlibvirtc1a5b2.xml

[ 326.1] Finishing off

This one is serious, since setting the snapshot _ought_
to select a snapshot from the remote image, but it obviously
doesn't work or is being ignored for some reason.