[ovirt-users] Enabling Ballooing device on templates from Python SDK
Barak Korren
bkorren at redhat.com
Mon Jun 20 15:50:03 UTC 2016
Hi there,
I'm trying to create a VM pool from the Python SDK with the Ballooning
device enabled.
(Sorry for miss-sending earlier)
My code does something like:
mp = ovirtsdk.infrastructure.brokers.MemoryPolicy()
mp.ballooning = true
...
vm_params = ovirtsdk.infrastructure.brokers.VM()
vm_params.memory_policy = mem_policy
...
vmppp=ovirtsdk.infrastructure.brokers.VmPool(vm=vm_params, ...)
vmpool = ovirt.vmpools.add(vmppp)
The pool gets created fine, but it seems the ballooning device remains
disabled for the VMs
What am I doing wrong?
Thanks,
--
Barak Korren
bkorren at redhat.com
RHEV-CI Team
More information about the Users
mailing list