Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 702007

Summary: v2v fails to remove the mounted export domain when the guest has multiboot OSes
Product: Red Hat Enterprise Linux 6 Reporter: Rita Wu <rwu>
Component: virt-v2vAssignee: Matthew Booth <mbooth>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: medium    
Version: 6.1CC: cshao, cwei, leiwang, qguan, rjones, whuang, yupzhang
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
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 14:49:23 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:
Bug Depends On:    
Bug Blocks: 702010    

Description Rita Wu 2011-05-04 14:25:01 UTC
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 14:53:34 UTC
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 06:23:47 UTC
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.72.122's password: 
root.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 14:49:23 UTC
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