[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] RFC: Migration and VBD/SR/VDI creation


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Pascal Bouchareine <pascal@xxxxxxxxx>
  • Date: Fri, 18 May 2007 16:10:46 +0200
  • Delivery-date: Fri, 18 May 2007 07:09:05 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

When migrating a domain, the VDI definition is not recreated
building the VBD, hence loosing API access to the VBD location & al
({'VDI' : ''}).

The attached patch is an attempt to recreate the VDI in XendConfig.device_add
(in the 'Local' SR, eventually some other) when using an sxp_obj (I guess
the SR/VDI is always defined when using a xenapi_cfg).

Is this an acceptable idea ?

I missed a lot of things reading the code, so someone might want to
check this is not too horrible and doesn't break anything.

Cheers,
Pascal

-- 
\o/   Pascal Bouchareine - Gandi 
 g    0170393757           15, place de la Nation - 75011 Paris      

Attachment: XendConfig_create_vdi.diff
Description: Text document

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.