Bug 882616 - Wrong auto-generated disk aliases when importing a VM with no alias
Summary: Wrong auto-generated disk aliases when importing a VM with no alias
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.1.0
Hardware: All
OS: All
unspecified
unspecified
Target Milestone: ---
: 3.2.0
Assignee: Allon Mureinik
QA Contact: Dafna Ron
URL:
Whiteboard: storage
Depends On:
Blocks: 888312 915537
TreeView+ depends on / blocked
 
Reported: 2012-12-02 09:23 UTC by Allon Mureinik
Modified: 2016-02-10 19:17 UTC (History)
9 users (show)

Fixed In Version: sf3
Doc Type: Release Note
Doc Text:
Aliases for disks imported from OVFs were not generated correctly, as the disks were given identical names. Now, each disk is given a name and a number in ascending order. For example, the aliases generated for three disks belonging to virtual machine VmName are VmName_Disk1, VmName_Disk2, and VmName_Disk3.
Clone Of:
: 888312 (view as bug list)
Environment:
Last Closed:
oVirt Team: Storage
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Allon Mureinik 2012-12-02 09:23:36 UTC
Description of problem:
When a VM is imported from an OVF that does not contain disk aliases, the ImprotVM command auto-generates aliases. 
However, these aliases are not generated correctly. For a VM with N disks, the aliases should be VmName_Disk1, VmName_Disk2, etc. up to VmName_DiskN.
Instead, ALL the disks are called VmName_DiskN.

Note that when an OVF is created by exporting a VM from 3.1, it will have disk aliases, so this bug will not be relevant.
However, OVFs exported from 3.0, or created by ESXi 5.1 and then translated with v2v will have this issue.

Version-Release number of selected component (if applicable):
3.1

How reproducible:
100%

Steps to Reproduce:
1. Create a VM with 3 disks.
2. Manually edit the OVF, and remove the disk:alias properties (see explanation above).
3. Remove the original VM
4. Import the OVF
  
Actual results:
All the disks will have the alias VmName_Disk3.

Expected results:
The disks should have the following aliases: VmName_Disk1, VmName_Disk2 and VmName_Disk3.

Additional info:

Comment 1 Allon Mureinik 2012-12-02 14:37:24 UTC
Sent patch Ibdd6525529d3d5e0c8ee2c86b418562929118207 for review:
http://gerrit.ovirt.org/#/c/9629/

Comment 2 Allon Mureinik 2012-12-18 11:36:45 UTC
Merged upstream.

Comment 4 Dafna Ron 2013-01-15 12:55:26 UTC
verified on sf3

Comment 6 Itamar Heim 2013-06-11 09:05:54 UTC
3.2 has been released

Comment 7 Itamar Heim 2013-06-11 09:05:57 UTC
3.2 has been released

Comment 8 Itamar Heim 2013-06-11 09:05:57 UTC
3.2 has been released

Comment 9 Itamar Heim 2013-06-11 09:06:08 UTC
3.2 has been released

Comment 10 Itamar Heim 2013-06-11 09:34:48 UTC
3.2 has been released


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