----- Original Message -----
From: "Michael Pasternak" <mpastern(a)redhat.com>
To: "Simon Grinberg" <simon(a)redhat.com>
Cc: "engine-devel" <engine-devel(a)ovirt.org>
Sent: Sunday, October 21, 2012 4:56:33 PM
Subject: Re: [Engine-devel] alias in disk instead of name
On 10/21/2012 04:15 PM, Simon Grinberg wrote:
> ----- Original Message -----
>> From: "Michael Pasternak" <mpastern(a)redhat.com>
>> To: "Simon Grinberg" <simon(a)redhat.com>
>> Cc: "engine-devel" <engine-devel(a)ovirt.org>
>> Sent: Sunday, October 21, 2012 3:48:46 PM
>> Subject: Re: [Engine-devel] alias in disk instead of name
>> On 10/21/2012 03:36 PM, Simon Grinberg wrote:
>>> ----- Original Message -----
>>>>> From: "Michael Pasternak" <mpastern(a)redhat.com>
>>>>> To: "engine-devel" <engine-devel(a)ovirt.org>
>>>>> Sent: Sunday, October 21, 2012 12:26:46 PM
>>>>> Subject: [Engine-devel] alias in disk instead of name
>>>>> The problem we caused by using alias in disk instead of name is
>>>>> of search-by-name paradigm
>>>>> in engine.search dialect, not sure why we do not want forcing
>>>>> name to be unique ,
>>>>> but lack of "name" in disk search is does not look good in
>>>>>  can be easily achieved via appropriate can-do-action
>>> Names by definition are not unique IDs,
>> they do, otherwise /search wasn't effective, remember users not
>> exposed to entity id, all entities fetched by-name, so names has
>> be unique.
> Yap that is what we do with many entities, and it causes problems.
> But with disks it is multiplied
>>> thus it should not be enforced.
>>> What would be the auto naming conversion to ensure uniqueness
>>> plain text?
>> not sure i follow, i'll assume you refer here to empty name, - you
>> cannot have an
>> entity with no name.
> Well you create a new disk - do we want to enforce the user to
> provide a unique disk name/alias for every disk he creates?
> This will drive the user crazy. This is important even for user
> only for floating/shared disks. For any other disks user does not
> care if it's disk1, hd1, whatever. For these kind of disk, it's
> just a VM disk and the user does not care if in all VMs this is
> called disk 1 - so why bother him?
from the same reason we have unique
Networks, DataCenter, Clusters, templates - are in order of magnitude less then the number
And you name once and use many.
As for VMs - well it's may take that we should not force uniqueness either ( you can
warn though )
For disks, well number is >= VMs to >>>= VMs
Name by definition is mostly interesting in many cases only within the VM, and we
don't even have a way to correlate disk alias to the internal name in the VM. In many
cases as said before, a user won't care about the name/alias if it is always attached
to the same VM. A user will rather look the VM and then list it's disk. So actually
I'll be better off with vm1.disk1 vm2.disk2 then unique name per disk (PS AFAIK) this
should be the default suggested name by the UI, but then changing the VM name will break
this (yes, I know it's not possible ATM, but many people I know requested for that).
So I as user will prefer that all the disks that created from a template will have the
same name as the original template, and then to be able to search by (vm=name, disk=name)
thus I can access easily the same disk for the VMs.
On the other hand for others, as you've mentioned (especially for floating and shared
disk) the name/alias may be of importance, uniqueness may be very important.
All that I'm saying that we can't force it's not that uniqueness in never
>>> Would you change these on import/export?
>> would you mind elaborating on this?
> You are already facing a problem when importing VMs that already
> have the same name, now you increasing the problem for disks that
> have the same alias. for same name we force clone if you want to
> import. Why for clone just because of a disk alias (this implies
> collapse snapshots ATM) or even bother the user with renaming
> disks that he does not care about the name so he just gave disk 1,
> 2, 3 and so on?
i see your point, but then we leave no option for the user to locate
simply because he doesn't have unique identifier,
just imagine user A creating disk and calling it X,
then user B creating disk and calling it X, they on different
domains etc., and now both want to use disk X,
how they can figure out which one to pick?, by SD, by size? agree
this is doesn't look well..., even more than that - someone may call
this "bad design"...
This is why the search should accept more then the name.
Example (vm=name, disk=name/alias)
Example (dc=name, disk=name/alias)
Example (sd=name, disk=name/alias)
For floating/shared on the same SD/DC/VM I would suggest a warning if there is a duplicate
in the system - not enforcement.
There is a difference between best practice and being enforcing up to the level that it
annoys some of the users.
RedHat, ENG-Virtualization R&D
Engine-devel mailing list