This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


Re: [Xen-devel] XCP: python SR plugin questions

To: Jonathan.Ludlam@xxxxxxxxxxxxx
Subject: Re: [Xen-devel] XCP: python SR plugin questions
From: yamamoto@xxxxxxxxxxxxx (YAMAMOTO Takashi)
Date: Thu, 20 May 2010 10:46:01 +0900 (JST)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 19 May 2010 18:46:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: Your message of "Wed, 19 May 2010 11:18:40 +0100" <6CC2BAAB-E1DC-4288-BF7E-A9355591B776@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <6CC2BAAB-E1DC-4288-BF7E-A9355591B776@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx

>>>> i'm writing a python sr plugin for our product and have a few questions.
>>>> - our product has 32-bit id, not uuid, for each volumes, which i want to 
>>>> map
>>>> to xcp's vdi.  i generate name-based uuid from the 32-bit id in sr.scan and
>>>> vdi.create.  is this a reasonable approach?
>>> You can use the 'location' field in the VDI to contain your 32 bit id - 
>>> then the uuid is irrelevant. I'd like to move more of the storage backends 
>>> in this direction - currently I believe only the ISO SR does it this way.
>> ok.  in that case, xapi generates random uuids for me, right?
> Actually the backends are responsible for creating the uuid.

then, what is vdi_create's uuid argument for?
(my current plugin code simply ignores the argument and
return generated uuid via vdi_info.  is it ok?)

our product itself doesn't provide uuids at all.  so someone should
generate ones so that xapi can use them.
i plan to make my sr plugin generate name-based uuid from our product's
32-bit id.  does it sound ok for you?

i'm not sure how your suggestion to use vdi location is related to
the uuid issue.  can you please elaborate a bit?


Xen-devel mailing list