ofri masad has uploaded a new change for review.

Change subject: core: Fix stateless VM quota calculation(#854491)
......................................................................

core: Fix stateless VM quota calculation(#854491)

https://bugzilla.redhat.com/854491

The validateAndSetQuota() was called twice. The second time was on
the
internal run (after the quota was already counted).

Change-Id: Ie60437296cdaf068f6afe402e4d5366c70ee5058
Signed-off-by: Ofri Masad <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmOnceCommand.java
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/62/7762/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmOnceCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmOnceCommand.java
index 81f9ba1..6dda151 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmOnceCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmOnceCommand.java
@@ -58,6 +58,9 @@
 
     @Override
     public boolean validateAndSetQuota() {
+        if (isInternalExecution()) {
+            return true;
+        }
         boolean quotaAcc = super.validateAndSetQuota();
         if (!quotaAcc) {
             return false;


--
To view, visit http://gerrit.ovirt.org/7762
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie60437296cdaf068f6afe402e4d5366c70ee5058
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: ofri masad <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to