Bug 596071 - Failed conversion leaves orphaned images on RHEV export domain
Summary: Failed conversion leaves orphaned images on RHEV export domain
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: virt-v2v
Version: 5.6
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Matthew Booth
QA Contact: Virtualization Bugs
: 601026 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2010-05-26 09:23 UTC by Matthew Booth
Modified: 2010-11-09 13:22 UTC (History)
8 users (show)

Fixed In Version: virt-v2v-0.6.1-1.el5
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-07-27 19:47:56 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0566 0 normal SHIPPED_LIVE virt-v2v bug fix update 2010-07-27 19:47:38 UTC

Description Matthew Booth 2010-05-26 09:23:11 UTC
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):

Comment 1 Matthew Booth 2010-06-07 08:58:42 UTC
*** Bug 601026 has been marked as a duplicate of this bug. ***

Comment 2 Matthew Booth 2010-06-08 15:41:14 UTC
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.

Comment 3 Matthew Booth 2010-06-08 16:48:08 UTC
Fix posted: https://www.redhat.com/archives/libguestfs/2010-June/msg00064.html

Comment 4 Matthew Booth 2010-06-08 17:34:33 UTC
Fixed in 0.6.0-4.el5

Comment 5 Mohua Li 2010-06-10 03:04:58 UTC
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

Comment 7 Mohua Li 2010-07-16 09:35:30 UTC
test on 


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,

Comment 9 errata-xmlrpc 2010-07-27 19:47:56 UTC
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.


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