Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 702007 - v2v fails to remove the mounted export domain when the guest has multiboot OSes
v2v fails to remove the mounted export domain when the guest has multiboot OSes
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-v2v (Show other bugs)
6.1
x86_64 Linux
medium Severity low
: rc
: ---
Assigned To: Matthew Booth
Virtualization Bugs
:
Depends On:
Blocks: 702010
  Show dependency treegraph
 
Reported: 2011-05-04 10:25 EDT by Rita Wu
Modified: 2013-07-02 21:44 EDT (History)
7 users (show)

See Also:
Fixed In Version: virt-v2v-0.8.2-2.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 702010 (view as bug list)
Environment:
Last Closed: 2011-12-06 09:49:23 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2011:1615 normal SHIPPED_LIVE Low: virt-v2v security and bug fix update 2011-12-05 19:51:05 EST

  None (edit)
Description Rita Wu 2011-05-04 10:25:01 EDT
Description of problem:
v2v fails to remove the mounted export domain when the guest has multiboot OSes.

Version-Release number of selected component (if applicable):
virt-v2v-0.7.1-4.el6.x86_64
libguestfs-1.7.17-15.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.# pwd
/

2.# virt-v2v -ic qemu+ssh://10.66.72.122/system  -o rhev -op 10.66.90.115:/vol/v2vrwu1/yuping_export kvm-rhel5.7-but-grub-in-rhel6.1
kvm-rhel5.7-but-grub-in-rhel6.1: 100% [================================================]D 0h03m22s
unknown filesystem label SWAP-hda2
virt-v2v: multiboot operating systems are not supported by virt-v2v
rm: cannot remove `/tmp/RTVPEl5RBV/47903277-f279-406d-b0f9-b8d9d5f0a504/v2v.F0s3XQGL/10f629a3-024f-427f-afb4-9389f758361e': Directory not empty
virt-v2v: Error whilst attempting to remove temporary directory /tmp/RTVPEl5RBV/47903277-f279-406d-b0f9-b8d9d5f0a504/v2v.F0s3XQGL
virt-v2v: Failed to unmount 10.66.90.115:/vol/v2vrwu1/yuping_export. Command exited with status 16. Output was: umount.nfs: /tmp/RTVPEl5RBV: device is busy
umount.nfs: /tmp/RTVPEl5RBV: device is busy

virt-v2v: Failed to remove mount directory /tmp/RTVPEl5RBV: Device or resource busy

3.# echo $?
17

4.# mount
/dev/mapper/vg_RHEL6_x64-LogVol00 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda2 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/tmp on /tmp type none (rw,bind)
/var/tmp on /var/tmp type none (rw,bind)
/home on /home type none (rw,bind)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
10.66.90.115:/vol/v2vrwu1/rwu_export on /tmp/G8Ql_gf3E5 type nfs (rw,addr=10.66.90.115)
10.66.90.115:/vol/v2vrwu1/yuping_export on /tmp/RTVPEl5RBV type nfs (rw,addr=10.66.90.115)

  
Actual results:
As step3 mentioned

Expected results:
Remove mount tmp dir successfully.

Additional info:
Comment 1 Matthew Booth 2011-08-09 10:53:34 EDT
We now support guests with multiple OSs to a limited extent. Support was included in virt-v2v-0.8.2-1.el6, but I just posted a fix for a bug which would have prevented it working in many cases. We also now clean up properly in the event of failures.
Comment 3 Huang Wenlong 2011-08-22 02:23:47 EDT
Verify this bug in virt-v2v-0.8.3-1.el6
# virt-v2v -ic qemu+ssh://10.66.72.122/system -os r6 -b breth0 kvm-rhel5.7-but-grub-in-rhel6.1
root@10.66.72.122's password: 
root@10.66.72.122's password: 
kvm-rhel5.7-but-grub-in-rhel6.1: 100% [==============================]D 0h02m27s

***
Dual- or multi-boot operating system detected. Choose the root filesystem
that contains the main operating system from the list below:

 [1] /dev/sda1 (Red Hat Enterprise Linux Server release 5.6 (Tikanga))
 [2] /dev/sda3 (Red Hat Enterprise Linux Server release 6.1 Beta (Santiago))

Enter number between 1 and 2: 2
grub refers to /boot/vmlinuz-2.6.18-256.el5, which doesn't exist
virt-v2v: WARNING: grub refers to /boot/vmlinuz-2.6.18-256.el5, which doesn't exist.
virt-v2v: WARNING: The connected hypervisor does not support feature pae.
virt-v2v: kvm-rhel5.7-but-grub-in-rhel6.1 configured with virtio drivers.


I also test the  /dev/sda1  partition they are both fine .
Comment 4 errata-xmlrpc 2011-12-06 09:49:23 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2011-1615.html

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