[ovirt-users] How to set priority for HA VM via Python SDK ?

TranceWorldLogic . tranceworldlogic at gmail.com
Thu Mar 23 07:59:19 UTC 2017


Hi,

I want to set priority of Highly Available VM as High via python SDK.
I provided information as shown below:

vm = self.vms_service.add(
              vm = types.Vm (
                        high_availability = types.HighAvailability(
                            enabled = True,
                            priority = 1,
                        ),
                ),
)

As see above priority we have to provide as number but in GUI we can choose
drop down menu as ("LOW", "MID" and "HIGH").
I wan to set priority as "HIGH", which integer value I have to set in
priority ?
I tried with 1 and 3 it shows "LOW" in both cases.

Please help me.

Thanks,
~Rohit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170323/3b81f423/attachment.html>


More information about the Users mailing list