Re: [Users] Setting UUID

2012-02-19 Thread Simon Grinberg


- Original Message -
 From: Itamar Heim ih...@redhat.com
 To: Livnat Peer lp...@redhat.com
 Cc: users@ovirt.org
 Sent: Sunday, February 19, 2012 9:43:30 AM
 Subject: Re: [Users] Setting UUID
 
 On 02/18/2012 11:15 PM, Livnat Peer wrote:
  On 18/02/12 22:33, Nathan Stratton wrote:
  On Sat, 18 Feb 2012, Livnat Peer wrote:
 
  How about setting the VM name instead of UUID? It won't update
  permissions automatically though.
 
  Not sure I follow, VM name is good, but there are all sorts of
  things
  that care about UUID changing.
 
  off the top my head I can think of
  - permissions
  - events
  - tags
  - quota
 
  Permission and Quota can be handled manually the other two won't
  point
  to 'new' VM.
 
  That is why we are looking for the
  ability to set it. Today it looks like all UUIDs are random, and I
  assume that a UUID needs to be unique, but how hard would it be to
  be
  able to specify a UUID? Libvirt allows this to be done and we do
  it all
  the time in our XML kvm files.
 
  Changing VM id does not sound like a complicated feature, when
  designing
  such a feature need to think of what are the impact on the history
  DB
  and events in the audit log (if such id was in use before).
 
 Nathan - it would be good to start by explaining if you care about
 the
 UUID as the engine sees it, or as devices and applications see it in
 the
 guest.
 I'm guessing you care about the guest.
 to do what you want, would rquire decoupling the uuid as used by
 engine
 to identify the guest, from the one vdsm exposes to the guest.
 today the entire chain (including libvirt) uses the same uuid.

That was my first reaction when reading that:
Not sure that you want to break that, it will require more mapping later.
Assume an external monitoring tool the collects stats, if the VM has the same 
hardware UUID as the engine uses it will be easier to correlate the data 
separately from a guest agent and from the history DB.

But then I've started to think that in some DR scenarios where both VMs (backup 
and source) are on the same engine but different clusters/sites. I think that 
an option to manually set the UUID of a VM is a must. So a better option would 
be to have HW UUID field in the VM properties where like for MACs you'll have 
the option to generate automatically or set manually. This mapping must be 
managed by the engine for use cases as I've mentioned above.




 ___
 Users mailing list
 Users@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/users
 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Setting UUID

2012-02-18 Thread Nathan Stratton

On Sat, 18 Feb 2012, Itamar Heim wrote:


On 02/18/2012 12:40 AM, Nathan Stratton wrote:


Is there anyway to set a specific UUID for a VM?


no.
may i ask why?


Many times when we move or copy a guest we need to keep the same UUID. As 
an example we have a VM that is running Centos 4 that we need upgraded to 
Centos 6.2. How we have done this in the past:


Build new VM
Install fresh Centos 6.2
Copy over the application
Shutdown the first VM
Shutdown the 2nd VM and change UUID to match first
Fire up 2nd VM if everything works kill delete 1st VM

We run into all sorts of other situations when we make copies as backups 
and need to go to one of the backups. We never need to run a two VMs with 
the same UUID, but often have a box where we need to change the UUID to 
match what an old box was using.





Nathan StrattonCTO, BlinkMind, Inc.
nathan at robotics.net nathan at blinkmind.com
http://www.robotics.nethttp://www.blinkmind.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Setting UUID

2012-02-18 Thread Nathan Stratton

On Sat, 18 Feb 2012, Livnat Peer wrote:


How about setting the VM name instead of UUID? It won't update
permissions automatically though.


Not sure I follow, VM name is good, but there are all sorts of things that 
care about UUID changing. That is why we are looking for the ability to 
set it. Today it looks like all UUIDs are random, and I assume that a UUID 
needs to be unique, but how hard would it be to be able to specify a UUID? 
Libvirt allows this to be done and we do it all the time in our XML kvm 
files.





Nathan StrattonCTO, BlinkMind, Inc.
nathan at robotics.net nathan at blinkmind.com
http://www.robotics.nethttp://www.blinkmind.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Setting UUID

2012-02-18 Thread Livnat Peer
On 18/02/12 22:33, Nathan Stratton wrote:
 On Sat, 18 Feb 2012, Livnat Peer wrote:
 
 How about setting the VM name instead of UUID? It won't update
 permissions automatically though.
 
 Not sure I follow, VM name is good, but there are all sorts of things
 that care about UUID changing.

off the top my head I can think of
- permissions
- events
- tags
- quota

Permission and Quota can be handled manually the other two won't point
to 'new' VM.

 That is why we are looking for the
 ability to set it. Today it looks like all UUIDs are random, and I
 assume that a UUID needs to be unique, but how hard would it be to be
 able to specify a UUID? Libvirt allows this to be done and we do it all
 the time in our XML kvm files.

Changing VM id does not sound like a complicated feature, when designing
such a feature need to think of what are the impact on the history DB
and events in the audit log (if such id was in use before).


 
 
 Nathan StrattonCTO, BlinkMind, Inc.
 nathan at robotics.net nathan at blinkmind.com
 http://www.robotics.nethttp://www.blinkmind.com

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[Users] Setting UUID

2012-02-17 Thread Nathan Stratton


Is there anyway to set a specific UUID for a VM?




Nathan StrattonCTO, BlinkMind, Inc.
nathan at robotics.net nathan at blinkmind.com
http://www.robotics.nethttp://www.blinkmind.com
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [Users] Setting UUID

2012-02-17 Thread Itamar Heim

On 02/18/2012 12:40 AM, Nathan Stratton wrote:


Is there anyway to set a specific UUID for a VM?


no.
may i ask why?
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users