Bug 601542

Summary: virt-v2v | [RFE] should check the export domain first but not fail in the last step,
Product: Red Hat Enterprise Linux 5 Reporter: Mohua Li <moli>
Component: virt-v2vAssignee: Matthew Booth <mbooth>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.7CC: leiwang, mbooth, mkenneth, moli, mshao, rjones, rwu, ycui
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-18 08:46:19 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mohua Li 2010-06-08 07:18:03 UTC
Description of problem:

virt-v2v should first check if the export domain is invalid, like if the images/master folder exist, if not ,give error. As now, we need to wait until the v2v generate .ovf file to know like master/vms not exist error, and before that,already finished transfer the image, convert the image,this is unreasonable, and it's time consuming.


"aug_match "/files/etc/modules.conf/alias"
aug_get "/files/etc/modules.conf/alias"
aug_set "/files/etc/modules.conf/alias/modulename" "e1000"
aug_save
aug_match "/files/boot/grub/menu.lst/title/kernel"
aug_get "/files/boot/grub/menu.lst/title/kernel"
aug_set "/files/boot/grub/menu.lst/default" "0"
aug_get "/files/boot/grub/menu.lst/title[1]/initrd"
aug_save
exists "/boot/initrd-2.4.21-50.EL.img"
mv "/boot/initrd-2.4.21-50.EL.img" "/boot/initrd-2.4.21-50.EL.img.pre-v2v"
aug_save
modprobe "ext2"
modprobe "loop"
command "/sbin/mkinitrd --with=sym53c8xx /boot/initrd-2.4.21-50.EL.img 2.4.21-50.EL"
command "/sbin/chkconfig kudzu off"
umount_all
sync
umount_all
sync
kill_subprocess
virt-v2v: Failed to create directory /tmp/NACJLJG0xI/d66ccc0c-5fb6-4ac1-bcf8-f0d4e54c2cca/master/vms/42bd32b4-7475-449c-9fe8-4c95bc4d60a1: No such file or directory
"






Version-Release number of selected component (if applicable):
virt-v2v-0.6.0.3

How reproducible:
always

Steps to Reproduce:
1,create a export domain but didn't attach to any data-center, then it won't  create the master folder under the nfs path,
2,run the virt-v2v with the export domain above,

Actual results:
fail at the last step, saying folder **/master/vms not exist

Expected results:
check the export domain first to confirm it could be used or not 

Additional info:

Comment 1 Matthew Booth 2010-06-18 08:46:19 UTC

*** This bug has been marked as a duplicate of bug 601535 ***

Comment 2 Mohua Li 2010-06-18 09:59:07 UTC
sorry for that, seems when commit, there is error, so the same bug be commited 3 times