[ovirt-users] Enabling Ballooing device on templates from Python SDK

2016-06-20 Thread Barak Korren
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
bkor...@redhat.com
RHEV-CI Team
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] Enabling Ballooing device on templates from Python SDK

2016-06-20 Thread Barak Korren
Hi there,

I'm trying to create a VM pool from the Python SDK with the Ballooning
device enabled.

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
...

vmpool = ovirt.vmpools.add(
vmpool=oVirtParams.VmPool(


-- 
Barak Korren
bkor...@redhat.com
RHEV-CI Team
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users