Description of problem: If a conversion fails, the transferred images are not cleaned up. While this is a feature when converting to a libvirt target, RHEV does not provide an interface to manage these images. The only way to remove them is manually. Version-Release number of selected component (if applicable): virt-v2v-0.6.0-1.el5
*** Bug 601026 has been marked as a duplicate of this bug. ***
A conversion can fail for many reasons. The most likely are that the user killed the conversion with Ctrl-C, or the conversion was unable to complete for some reason. There are 2 good tests for this. In both cases, start with an empty export storage domain: the images/ and master/vms/ should be empty. 1. Start a conversion. Before it completes, kill it with a Ctrl-C to the terminal running the conversion. 2. Attempt to convert a Xen PV guest which isn't registered to RHN on a host with no files in /var/lib/virt-v2v/software. This will fail because there is no FV kernel available. In both cases, the export storage domain should still be empty after the test.
Fix posted: https://www.redhat.com/archives/libguestfs/2010-June/msg00064.html
Fixed in 0.6.0-4.el5
pls see Bug 596015, commnets 7,9, it fail at virt-v2v-0.6.0-6, as tmp directory not clear by the fail at above 2 comments
test on libguestfs-1.2.7-1.el5.6 virt-v2v-0.6.1-1.el5 1), quit the convert when transferring the image, umount successfully,no orphaned image left,pass 2), quit the convert during conversion, umount successfully,no orphaned image left,pass 3), check the mount after convert finished successfully,umount successfully, no orphaned image left,pass so set the status to verified,
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0566.html