Bug 1022795 - PRD35 - [RFE] Disk alias recycling in web-admin portal
PRD35 - [RFE] Disk alias recycling in web-admin portal
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: RFEs (Show other bugs)
3.2.0
Unspecified All
medium Severity medium
: ---
: 3.5.0
Assigned To: Tal Nisan
Kevin Alon Goldblatt
storage
: FutureFeature, Improvement, ZStream
Depends On: 1083312
Blocks: 1122932 rhev3.5beta 1156165
  Show dependency treegraph
 
Reported: 2013-10-24 01:07 EDT by Murray Ketchion
Modified: 2016-02-10 15:24 EST (History)
17 users (show)

See Also:
Fixed In Version: vt2.2
Doc Type: Enhancement
Doc Text:
Previously, when creating a virtual machine disk, the Administration Portal suggested a default disk alias consisting of 'VMname+_disk+number'. The number came from the total amount of virtual machines disks plus 1. For example, for a virtual machine name 'V1' with 3 existing disks, the suggested name was'V1_disk4. However, the suggestion mode did not recycle disk aliases correctly. If a disk was deleted, the number was not reused. With this update, the suggestion mode recycled the unused numbers to form new virtual machine disk aliases.
Story Points: ---
Clone Of:
: 1083312 1122932 (view as bug list)
Environment:
Last Closed: 2015-02-11 12:55:37 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Storage
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
scohen: Triaged+


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 541273 None None None Never
oVirt gerrit 24061 None None None Never
oVirt gerrit 31931 None None None Never

  None (edit)
Description Murray Ketchion 2013-10-24 01:07:53 EDT
Description of problem:
Disk alias recycling in web-admin portal

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

How reproducible:
Always

Steps to Reproduce:
1) Create VM with single disk.
(Disk Tab shows disk server_Disk1)
2) Add another disk.
(Disk Tab shows disk server_Disk1 and server_Disk2)
3) Delete orginal disk
(Disk Tab shows disk server_Disk2)
4) Add another disk
(Disk Tab shows disk server_Disk2 and server_Disk2)

Actual results:
(Disk Tab shows disk server_Disk2 and server_Disk2)

Expected results:
Disk creation dialog provides warning and does not permit two disks of the same alias.  Perhaps suggests new alias based on an incremental counter.

Additional info:
Comment 5 Ayal Baron 2013-10-27 04:49:23 EDT
Disk aliases are not unique by design.
There is for example no reason to limit 2 disks attached to different VMs from having the same alias (e.g. disk1).
Preventing dups would mean that you could not detach both of these disks without changing the alias of at least one of them which seems a bit limiting.

However, when giving an automatic alias to a disk attached to a vm, it should not be the same as another disk that is already attached.
Comment 11 Aharon Canan 2014-08-21 09:42:33 EDT
Failed basic flow - no recycling.

Steps to Reproduce:
1) Create VM with single disk.
(Disk Tab shows disk server_Disk1)
2) Add another disk.
(Disk Tab shows disk server_Disk1 and server_Disk2)
3) Delete orginal disk
(Disk Tab shows disk server_Disk2)
4) Add another disk

results - 
we got server_Disk3 instead of server_Disk1 again.
Comment 13 Aharon Canan 2014-09-14 02:08:42 EDT
verified using vt2.2

https://tcms.engineering.redhat.com/run/163712/
Comment 17 errata-xmlrpc 2015-02-11 12:55:37 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.

https://rhn.redhat.com/errata/RHSA-2015-0158.html

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