Mechanism to make VM creation fail if the cluster has insufficient resources to run it

Hi All My team is currently building an application based on the oVirt REST API, and we noticed that it is possible to create a VM with resources (i.e. RAM or CPU) that are not physically available in the cluster. Running the VM will fail with an appropriate error message, but for our use case it would be highly desirable that the VM creation fails. I haven't found any setting that enables this behavior, but I was wondering if one is hidden somewhere or there is a simple workaround to make VM creation fail if resources are not available to run it. Thanks David

You can always overcommit, so hard to tell when no resources are left. You can use quote to limit to physical resources. Yaniv Dary Technical Product Manager Red Hat Israel Ltd. 34 Jerusalem Road Building A, 4th floor Ra'anana, Israel 4350109 Tel : +972 (9) 7692306 8272306 Email: ydary@redhat.com IRC : ydary On Mon, Jan 18, 2016 at 11:52 PM, David Jorm <djorm@iix.net> wrote:
Hi All
My team is currently building an application based on the oVirt REST API, and we noticed that it is possible to create a VM with resources (i.e. RAM or CPU) that are not physically available in the cluster. Running the VM will fail with an appropriate error message, but for our use case it would be highly desirable that the VM creation fails. I haven't found any setting that enables this behavior, but I was wondering if one is hidden somewhere or there is a simple workaround to make VM creation fail if resources are not available to run it.
Thanks David _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
participants (2)
-
David Jorm
-
Yaniv Dary