Description of problem: When quota is enforced. Runnig a statless VM will count the cpu and memory of the vm twice (thus, sometimes blockong the run) How reproducible: 100% Steps to Reproduce: 1. set quota to enforce 2. applay a 1024 MB mem quota to a 1024 MB VM 3. run the VM once (as stateless) Actual results: fails to run - quota dont have suficient memory, Expected results: should run Additional info:
posted to upstream: http://gerrit.ovirt.org/#/c/7762/
merged to downstream: https://gerrit.eng.lab.tlv.redhat.com/gitweb?p=ovirt-engine.git;a=commit;h=de14b3a6a85c80105b13d7c8d20f3f022f9857f6
tested in si18 - failed QE I created a quota with mem use of 1024 created a vm with mem of 1024 when we run the vm as stateless we are blocked by quota when we run the vm without the stateless tag we are able to run the vm moving back to devel 2012-09-21 12:17:14,918 WARN [org.ovirt.engine.core.bll.RunVmCommand] (pool-4-thread-43) CanDoAction of action RunVm failed. Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,ACTION_TYPE _FAILED_QUOTA_VDS_GROUP_LIMIT_EXCEEDED,$VmName GHGH
Created attachment 615314 [details] log
Unable to reproduce. Please provide a reproducer.
Ofri, I tested again in si18.1 and its reproduced. please try with iscsi storage, one host 1. move the DC to enforce quota 2. create unlimited quota 3. create a vm with mem of 512 4. edit the quota and select specific cluster -> limit memory to 512 5. run the vm -> vm should run 6. edit vm and add the stateless tag 7. run vm -> vm fails to run with canDoAction: 2012-09-25 12:48:26,938 WARN [org.ovirt.engine.core.bll.RunVmCommand] (pool-4-thread-43) CanDoAction of action RunVm failed. Reasons:VAR__ACTION__RUN,VAR__TYPE__VM,ACTION_TYPE_FAILED_QUOTA_VDS_GROUP_LIMIT_EXCEEDED,$VmName Quota1_VM
Bug is reproduced only when the stateless is triggered on the VM edit pop-up (not when stateless is triggered on the Run once pop-up). Posted to upstream: http://gerrit.ovirt.org/#/c/8223/1/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java
Merged downstream: https://gerrit.eng.lab.tlv.redhat.com/gitweb?p=ovirt-engine.git;a=commit;h=f520b9a507405de1f1af4c72757ec5f19f604635
blocked by https://bugzilla.redhat.com/show_bug.cgi?id=863766
verified on si22.1