Bug 600619 - duplicate name of image file after ESX conversion
Summary: duplicate name of image file after ESX conversion
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: virt-v2v
Version: 5.5
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Matthew Booth
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-06-05 09:02 UTC by Nan Zhang
Modified: 2010-06-07 08:51 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-06-07 08:51:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nan Zhang 2010-06-05 09:02:34 UTC
Description of problem:
# virsh list --all
 Id Name                 State
----------------------------------
  - ESX3.5-RHEL3.9-i386  shut off
  - ESX3.5-RHEL3.9-x86_64-new shut off
  - ESX3.5-RHEL4.8-i386  shut off
  - ESX3.5-RHEL4.8-x86_64 shut off
  - ESX3.5-RHEL5.4-i386  shut off
  - ESX3.5-RHEL5.4-x86_64 shut off
  - ESX3.5-RHEL5.5-i386  shut off
  - ESX3.5-RHEL5.5-x86_64 shut off

# ll /v2v/
total 104960152
-rw------- 1 root root 10737418240 Jun  4 17:10 ESX3.5-RHEL3.9-x86_64-new_ESX3.5-RHEL3.9-x86_64-new
-rw------- 1 root root 10737418240 Jun  4 13:22 ESX35-RHEL3U9-i386_ESX35-RHEL3U9-i386
-rw------- 1 root root 10737418240 Jun  4 18:09 ESX35-RHEL4U8-i386-smp_ESX35-RHEL4U8-i386-smp
-rw------- 1 root root 10737418240 Jun  4 19:03 ESX35-RHEL4U8-x86_64-smp_ESX35-RHEL4U8-x86_64-smp
-rw------- 1 root root 10737418240 Jun  3 22:05 ESX3.5-RHEL5.5-i386_1_ESX3.5-RHEL5.5-i386_1
-rw------- 1 root root 10737418240 Jun  3 23:00 ESX-3.5-RHEL5.5-X86_64_ESX-3.5-RHEL5.5-X86_64
-rw------- 1 root root 10737418240 Jun  4 20:01 ESX35-RHEL5U4-i386-noxen-smp_ESX35-RHEL5U4-i386-noxen-smp
-rw------- 1 root root 10737418240 Jun  3 21:10 ESX35-RHEL5U4-x86_64-noxen-smp_ESX35-RHEL5U4-x86_64-noxen-smp

Version-Release number of selected component (if applicable):
virt-v2v-0.6.0-3.el5

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
  
Actual results:
The name of image file is ESX-3.5-RHEL5.5-X86_64_ESX-3.5-RHEL5.5-X86_64

Expected results:
The name of image file should be ESX-3.5-RHEL5.5-X86_64

Additional info:
Regression issue.

Comment 1 Matthew Booth 2010-06-07 08:51:56 UTC
The naming convention is weird, but it's an artifact of how ESX names volumes. The proposed naming scheme wouldn't work, for example, if the guest had 2 volumes. It also doesn't take into account that volumes can be created and named explicitly, meaning that 2 volumes from different guests can have the same name. These need to be able to co-exist when flattened.


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