All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [Xen-users] creating a domU with a particular UUID with xen-unstable
       [not found] ` <43627F2F.3040702@us.ibm.com>
@ 2005-10-31 23:12   ` Andrew D. Ball
  2005-10-31 23:52     ` Tim Freeman
  2005-11-01 18:40     ` Kip Macy
  0 siblings, 2 replies; 5+ messages in thread
From: Andrew D. Ball @ 2005-10-31 23:12 UTC (permalink / raw)
  To: Anthony Liguori, xen-devel

It looks like I can do this by starting a domain from an SXP directly 
instead of a Python-based configuration.

If I use a suitable algorithm for generating UUIDs, I should be able to 
guarantee at least an extremely low probability of UUID collisions 
across an entire farm of systems running Xen.  I will read up some more 
on the ISO UUID algorithm commonly used by hardware manufacturers.  I 
don't trust it quite yet, but it does seem that this is in line with its 
purpose.

I'm not really fond of the behavior of domain name collisions.  I don't 
want to have to query some sort of farm-wide database to see if a domain 
name isn't being used to guarantee uniqueness, but I want to be able to 
guarantee that I'll never have a domain name collision when doing a live 
migration of a domU to another system.  They are nice to have around for 
being easily readable by humans though.

Thanks for your help.

Andrew

Anthony Liguori wrote:
> Andrew D. Ball wrote:
> 
>> Is it possible with xen-unstable (hopefully soon to be Xen 3.0) to 
>> create a domU with a particular UUID?  I don't want the UUID for a 
>> domain to change when I destroy it and create it again from the same 
>> configuration.
> 
> 
> You could always make the domain's name it's UUID.
> 
> Regards,
> 
> Anthony Liguori
> 
>> This doesn't necessarily have to have anything to do with xenstore's 
>> being persistent, it could just involve a configuration option similar 
>> to the one for virtual NICs where MAC addresses can be assigned 
>> explicitly if desired but will be pseudo-randomly generated otherwise.
>>
>> Thanks for your help.
>>
>> Andrew
>>
>>
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users@lists.xensource.com
>> http://lists.xensource.com/xen-users
>>
> 
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: [Xen-users] creating a domU with a particular UUID with xen-unstable
  2005-10-31 23:12   ` [Xen-users] creating a domU with a particular UUID with xen-unstable Andrew D. Ball
@ 2005-10-31 23:52     ` Tim Freeman
  2005-11-01  1:22       ` Anthony Liguori
  2005-11-01 18:40     ` Kip Macy
  1 sibling, 1 reply; 5+ messages in thread
From: Tim Freeman @ 2005-10-31 23:52 UTC (permalink / raw)
  To: Andrew D. Ball; +Cc: xen-devel

On Mon, 31 Oct 2005 18:12:52 -0500
"Andrew D. Ball" <aball@us.ibm.com> wrote:

> It looks like I can do this by starting a domain from an SXP directly 
> instead of a Python-based configuration.
> 
> If I use a suitable algorithm for generating UUIDs, I should be able to 
> guarantee at least an extremely low probability of UUID collisions 
> across an entire farm of systems running Xen.  I will read up some more 
> on the ISO UUID algorithm commonly used by hardware manufacturers.  I 
> don't trust it quite yet, but it does seem that this is in line with its 
> purpose.

I don't think Xen3 has changed, with UUIDs you'll run into this bug (for which I
have not yet submitted a patch for, I should do that). 

http://lists.xensource.com/archives/html/xen-devel/2005-07/msg00090.html

I was hastily adding support for UUIDs to the Globus workspace control program
and ran up against this problem because UUIDs can start with digits. Because I
couldn't wait to rely on a Xen patch, what I ended up doing for that was
stripping digits from the beginning of the UUID before sending it to Xen which
is clearly only a temporary hack. 

Tim 


> I'm not really fond of the behavior of domain name collisions.  I don't 
> want to have to query some sort of farm-wide database to see if a domain 
> name isn't being used to guarantee uniqueness, but I want to be able to 
> guarantee that I'll never have a domain name collision when doing a live 
> migration of a domU to another system.  They are nice to have around for 
> being easily readable by humans though.
> 
> Thanks for your help.
> 
> Andrew
> 
> Anthony Liguori wrote:
> > Andrew D. Ball wrote:
> > 
> >> Is it possible with xen-unstable (hopefully soon to be Xen 3.0) to 
> >> create a domU with a particular UUID?  I don't want the UUID for a 
> >> domain to change when I destroy it and create it again from the same 
> >> configuration.
> > 
> > 
> > You could always make the domain's name it's UUID.
> > 
> > Regards,
> > 
> > Anthony Liguori
> > 
> >> This doesn't necessarily have to have anything to do with xenstore's 
> >> being persistent, it could just involve a configuration option similar 
> >> to the one for virtual NICs where MAC addresses can be assigned 
> >> explicitly if desired but will be pseudo-randomly generated otherwise.
> >>
> >> Thanks for your help.
> >>
> >> Andrew
> >>
> >>
> >>
> >> _______________________________________________
> >> Xen-users mailing list
> >> Xen-users@lists.xensource.com
> >> http://lists.xensource.com/xen-users
> >>
> > 
> > 
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: [Xen-users] creating a domU with a particular UUID with xen-unstable
  2005-10-31 23:52     ` Tim Freeman
@ 2005-11-01  1:22       ` Anthony Liguori
  2005-11-01  1:34         ` Tim Freeman
  0 siblings, 1 reply; 5+ messages in thread
From: Anthony Liguori @ 2005-11-01  1:22 UTC (permalink / raw)
  To: Tim Freeman; +Cc: xen-devel, Andrew D. Ball

Tim Freeman wrote:

>On Mon, 31 Oct 2005 18:12:52 -0500
>"Andrew D. Ball" <aball@us.ibm.com> wrote:
>
>  
>
>>It looks like I can do this by starting a domain from an SXP directly 
>>instead of a Python-based configuration.
>>
>>If I use a suitable algorithm for generating UUIDs, I should be able to 
>>guarantee at least an extremely low probability of UUID collisions 
>>across an entire farm of systems running Xen.  I will read up some more 
>>on the ISO UUID algorithm commonly used by hardware manufacturers.  I 
>>don't trust it quite yet, but it does seem that this is in line with its 
>>purpose.
>>    
>>
>
>I don't think Xen3 has changed, with UUIDs you'll run into this bug (for which I
>have not yet submitted a patch for, I should do that). 
>  
>
It's a feature, not a bug :-)

You can use either domid's or names with all commands.  For this to 
work, names cannot be integer.  The simple check is to prevent names 
from beginning with numbers (which is a common enough requirement on 
symbols).

FWIW, I'd recommend just prepending uuid- to the name instead of 
trimming the front off.

Regards,

Anthony Liguori

>http://lists.xensource.com/archives/html/xen-devel/2005-07/msg00090.html
>
>I was hastily adding support for UUIDs to the Globus workspace control program
>and ran up against this problem because UUIDs can start with digits. Because I
>couldn't wait to rely on a Xen patch, what I ended up doing for that was
>stripping digits from the beginning of the UUID before sending it to Xen which
>is clearly only a temporary hack. 
>
>Tim 
>
>
>  
>
>>I'm not really fond of the behavior of domain name collisions.  I don't 
>>want to have to query some sort of farm-wide database to see if a domain 
>>name isn't being used to guarantee uniqueness, but I want to be able to 
>>guarantee that I'll never have a domain name collision when doing a live 
>>migration of a domU to another system.  They are nice to have around for 
>>being easily readable by humans though.
>>
>>Thanks for your help.
>>
>>Andrew
>>
>>Anthony Liguori wrote:
>>    
>>
>>>Andrew D. Ball wrote:
>>>
>>>      
>>>
>>>>Is it possible with xen-unstable (hopefully soon to be Xen 3.0) to 
>>>>create a domU with a particular UUID?  I don't want the UUID for a 
>>>>domain to change when I destroy it and create it again from the same 
>>>>configuration.
>>>>        
>>>>
>>>You could always make the domain's name it's UUID.
>>>
>>>Regards,
>>>
>>>Anthony Liguori
>>>
>>>      
>>>
>>>>This doesn't necessarily have to have anything to do with xenstore's 
>>>>being persistent, it could just involve a configuration option similar 
>>>>to the one for virtual NICs where MAC addresses can be assigned 
>>>>explicitly if desired but will be pseudo-randomly generated otherwise.
>>>>
>>>>Thanks for your help.
>>>>
>>>>Andrew
>>>>
>>>>
>>>>
>>>>_______________________________________________
>>>>Xen-users mailing list
>>>>Xen-users@lists.xensource.com
>>>>http://lists.xensource.com/xen-users
>>>>
>>>>        
>>>>
>>>      
>>>
>>
>>_______________________________________________
>>Xen-devel mailing list
>>Xen-devel@lists.xensource.com
>>http://lists.xensource.com/xen-devel
>>
>>    
>>
>
>  
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: [Xen-users] creating a domU with a particular UUID with xen-unstable
  2005-11-01  1:22       ` Anthony Liguori
@ 2005-11-01  1:34         ` Tim Freeman
  0 siblings, 0 replies; 5+ messages in thread
From: Tim Freeman @ 2005-11-01  1:34 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: xen-devel, aball

On Mon, 31 Oct 2005 19:22:11 -0600
Anthony Liguori <aliguori@us.ibm.com> wrote:

> Tim Freeman wrote:
> 
> >On Mon, 31 Oct 2005 18:12:52 -0500
> >"Andrew D. Ball" <aball@us.ibm.com> wrote:
> >
> >  
> >
> >>It looks like I can do this by starting a domain from an SXP directly 
> >>instead of a Python-based configuration.
> >>
> >>If I use a suitable algorithm for generating UUIDs, I should be able to 
> >>guarantee at least an extremely low probability of UUID collisions 
> >>across an entire farm of systems running Xen.  I will read up some more 
> >>on the ISO UUID algorithm commonly used by hardware manufacturers.  I 
> >>don't trust it quite yet, but it does seem that this is in line with its 
> >>purpose.
> >>    
> >>
> >
> >I don't think Xen3 has changed, with UUIDs you'll run into this bug (for
> >which I have not yet submitted a patch for, I should do that). 
> >  
> >
> It's a feature, not a bug :-)
> 
> You can use either domid's or names with all commands.  For this to 
> work, names cannot be integer.  The simple check is to prevent names 
> from beginning with numbers (which is a common enough requirement on 
> symbols).

Sure ... but as we talked about in the thread I linked, it could check for all
numbers instead.  It's irrelevant to us now, but it did come as a surprise I
couldn't use something so useful as a straght uuid.

By the way, at the very least, the inclusion of "/" should be removed, it leads
to an error state.

> 
> FWIW, I'd recommend just prepending uuid- to the name instead of 
> trimming the front off.

That does sound like a better idea, thanks. 

Tim 


> 
> Regards,
> 
> Anthony Liguori
> 
> >http://lists.xensource.com/archives/html/xen-devel/2005-07/msg00090.html
> >
> >I was hastily adding support for UUIDs to the Globus workspace control
> >program and ran up against this problem because UUIDs can start with digits.
> >Because I couldn't wait to rely on a Xen patch, what I ended up doing for
> >that was stripping digits from the beginning of the UUID before sending it to
> >Xen which is clearly only a temporary hack. 
> >
> >Tim 
> >
> >
> >  
> >
> >>I'm not really fond of the behavior of domain name collisions.  I don't 
> >>want to have to query some sort of farm-wide database to see if a domain 
> >>name isn't being used to guarantee uniqueness, but I want to be able to 
> >>guarantee that I'll never have a domain name collision when doing a live 
> >>migration of a domU to another system.  They are nice to have around for 
> >>being easily readable by humans though.
> >>
> >>Thanks for your help.
> >>
> >>Andrew
> >>
> >>Anthony Liguori wrote:
> >>    
> >>
> >>>Andrew D. Ball wrote:
> >>>
> >>>      
> >>>
> >>>>Is it possible with xen-unstable (hopefully soon to be Xen 3.0) to 
> >>>>create a domU with a particular UUID?  I don't want the UUID for a 
> >>>>domain to change when I destroy it and create it again from the same 
> >>>>configuration.
> >>>>        
> >>>>
> >>>You could always make the domain's name it's UUID.
> >>>
> >>>Regards,
> >>>
> >>>Anthony Liguori
> >>>
> >>>      
> >>>
> >>>>This doesn't necessarily have to have anything to do with xenstore's 
> >>>>being persistent, it could just involve a configuration option similar 
> >>>>to the one for virtual NICs where MAC addresses can be assigned 
> >>>>explicitly if desired but will be pseudo-randomly generated otherwise.
> >>>>
> >>>>Thanks for your help.
> >>>>
> >>>>Andrew
> >>>>
> >>>>
> >>>>
> >>>>_______________________________________________
> >>>>Xen-users mailing list
> >>>>Xen-users@lists.xensource.com
> >>>>http://lists.xensource.com/xen-users
> >>>>
> >>>>        
> >>>>
> >>>      
> >>>
> >>
> >>_______________________________________________
> >>Xen-devel mailing list
> >>Xen-devel@lists.xensource.com
> >>http://lists.xensource.com/xen-devel
> >>
> >>    
> >>
> >
> >  
> >
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: [Xen-users] creating a domU with a particular UUID with xen-unstable
  2005-10-31 23:12   ` [Xen-users] creating a domU with a particular UUID with xen-unstable Andrew D. Ball
  2005-10-31 23:52     ` Tim Freeman
@ 2005-11-01 18:40     ` Kip Macy
  1 sibling, 0 replies; 5+ messages in thread
From: Kip Macy @ 2005-11-01 18:40 UTC (permalink / raw)
  To: Andrew D. Ball; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 2371 bytes --]

It would seem to me that if you either seeded the UUID from the initial
physical machine's MAC address (assuming that one can do that) or if you
concatenated a MAC address from the physical machine with a 64-bit time
value that your odds of collision would be vanishingly small.


-Kip

On 10/31/05, Andrew D. Ball <aball@us.ibm.com> wrote:
>
> It looks like I can do this by starting a domain from an SXP directly
> instead of a Python-based configuration.
>
> If I use a suitable algorithm for generating UUIDs, I should be able to
> guarantee at least an extremely low probability of UUID collisions
> across an entire farm of systems running Xen. I will read up some more
> on the ISO UUID algorithm commonly used by hardware manufacturers. I
> don't trust it quite yet, but it does seem that this is in line with its
> purpose.
>
> I'm not really fond of the behavior of domain name collisions. I don't
> want to have to query some sort of farm-wide database to see if a domain
> name isn't being used to guarantee uniqueness, but I want to be able to
> guarantee that I'll never have a domain name collision when doing a live
> migration of a domU to another system. They are nice to have around for
> being easily readable by humans though.
>
> Thanks for your help.
>
> Andrew
>
> Anthony Liguori wrote:
> > Andrew D. Ball wrote:
> >
> >> Is it possible with xen-unstable (hopefully soon to be Xen 3.0) to
> >> create a domU with a particular UUID? I don't want the UUID for a
> >> domain to change when I destroy it and create it again from the same
> >> configuration.
> >
> >
> > You could always make the domain's name it's UUID.
> >
> > Regards,
> >
> > Anthony Liguori
> >
> >> This doesn't necessarily have to have anything to do with xenstore's
> >> being persistent, it could just involve a configuration option similar
> >> to the one for virtual NICs where MAC addresses can be assigned
> >> explicitly if desired but will be pseudo-randomly generated otherwise.
> >>
> >> Thanks for your help.
> >>
> >> Andrew
> >>
> >>
> >>
> >> _______________________________________________
> >> Xen-users mailing list
> >> Xen-users@lists.xensource.com
> >> http://lists.xensource.com/xen-users
> >>
> >
> >
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>

[-- Attachment #1.2: Type: text/html, Size: 3207 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-01 18:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <43615AA3.3000203@us.ibm.com>
     [not found] ` <43627F2F.3040702@us.ibm.com>
2005-10-31 23:12   ` [Xen-users] creating a domU with a particular UUID with xen-unstable Andrew D. Ball
2005-10-31 23:52     ` Tim Freeman
2005-11-01  1:22       ` Anthony Liguori
2005-11-01  1:34         ` Tim Freeman
2005-11-01 18:40     ` Kip Macy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.