[Spice-devel] VM pools and libgovirt

Christophe Fergeau cfergeau at redhat.com
Tue Nov 26 03:41:04 PST 2013


Hey Iordan,

On Mon, Nov 25, 2013 at 09:17:55PM -0500, i iordanov wrote:
> Do you guys think that there is a use-case for the client to be able to
> show the pool to the user and allow him/her to start a VM from that pool
> right then and there without needing the web interface?

Probably makes sense, that's your call ;)

> 
> If so, and providing the REST API allows that, would you be interested in
> adding such functionality to libgovirt?

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?

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20131126/58284c5c/attachment.pgp>


More information about the Spice-devel mailing list