[Spice-devel] VM pools and libgovirt

i iordanov iiordanov at gmail.com
Tue Nov 26 05:55:09 PST 2013


On Tue, Nov 26, 2013 at 6:41 AM, Christophe Fergeau <cfergeau at redhat.com>wrote:

> From a quick look at the documentation
>
> https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.3-Beta/html/Developer_Guide/chap-Virtual_Machine_Pools.html
> it should not be too hard to add support for it (though
> https://bugzilla.redhat.com/show_bug.cgi?id=1034710 is missing in the
> doc).
> I think what is needed is to derive an OvirtVmPool class from
> OvirtResource which would parse the few extra attributes in the vm pool
> (size, prestarted_vms), and which would expose the 'allocatevm' action.
> Then OvirtApi would gain a method to get an OvirtCollection wrapping
> the 'vmpools' collection.
> Do you think you can provide a patch for this?
>

This sounds like an interesting project!

>From the following file in my oVirt installation:
/usr/lib/python2.7/site-packages/ovirtsdk/infrastructure/brokers.py

I gather that a POST request must be made to
/api/vmpools/SOMEVMPOOLID/allocatevm

with a certain content, certain headers, etc. However, I cannot craft a
successful POST "manually".

I guess I'm missing some crucial information which must be supplied in the
documentation?

Thanks!
iordan

-- 
The conscious mind has only one thread of execution.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20131126/437e3dc9/attachment.html>


More information about the Spice-devel mailing list