[Ovirt-devel] Managed Node qpid Modeling

Daniel Veillard veillard at redhat.com
Thu Jul 10 11:39:07 UTC 2008


On Thu, Jul 10, 2008 at 11:28:42AM +0100, Daniel P. Berrange wrote:
> On Thu, Jul 10, 2008 at 05:51:09AM -0400, Daniel Veillard wrote:
> > On Thu, Jul 10, 2008 at 10:18:56AM +0100, Daniel P. Berrange wrote:
> > > On Wed, Jul 09, 2008 at 09:55:44PM -0700, Ian Main wrote:
> > > > So please take a look and feel free to post questions or comments.
> > > > 
> > > >     <method name="create_domain" desc="Start a new domain">
> > > >       <arg name="description" dir="I" type="sstr" desc="Domain description"/>
> > > >       <arg name="vcpus" dir="I" type="unit32" desc="Number of virtual CPUs"/>
> > > >       <arg name="max_memory" dir="I" type="unit32" desc="Maximum memory allocated in KB"/>
> > > >       <arg name="current_memory" dir="I" type="unit32" desc="Memory to use in KB"/>
> > > >       <arg name="boot_device" dir="I" type="sstr" desc="Boot device"/>
> > > > 
> > > >       <arg name="domain" dir="O" type="sstr" desc="Newly created domain object"/>
> > > >       <arg name="result" dir="O" type="ObjID" desc="Description of result.  'success' or 'failure: error msg'"/>
> > > >     </method>
> > > 
> > > This is a seriously bad direction to take. libvirt explicitly uses XML for
> > > passing domain creation information so that it is extendable without having
> > > to constantly change the API of the creation methods. IMHO any wire protocol
> > > between managed nodes and WUI should map pretty much 1-to-1 onto the libvirt
> > > APIs. 
> > 
> >   Agree. And even if AMQP is usually used to transport SOAP payload, I don't
> > think you have to a priori restrict yourself to that format.
> 
> The wire format isn't actually XML in AMQP world - only the description of
> the wire format is XML.  AMQP uses this XML description of APIs to serialize
> the data into the wire in a binary format.

  I found that out, and the str16 type should be just fine to carry XML
libvirt instances.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard at redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/




More information about the ovirt-devel mailing list