Noam Slomianko has uploaded a new change for review.

Change subject: engine: add qouta mode check in consume storage
......................................................................

engine: add qouta mode check in consume storage

Problem: When qouta mode is set to audit, error "no qouta" on storage
was returned

Solution: In checkConsumptionForSpecificStorageQuota we did not make
sure that qouta was set to enforce before returning an error.

Change-Id: I21cc59098ede7044ebde1d544e295300d8b40cb7
Bug-Url: https://bugzilla.redhat.com/906485
Signed-off-by: Noam Slomianko <nslom...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/49/12049/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java
index 290fdb6..2139bdb 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/quota/QuotaManager.java
@@ -149,7 +149,7 @@
                     }
                 }
             }
-            if (!hasStorageId) {
+            if (!hasStorageId && quota.getQuotaEnforcementType() == 
QuotaEnforcementTypeEnum.HARD_ENFORCEMENT) {
                 parameters.getCanDoActionMessages()
                         
.add(VdcBllMessages.ACTION_TYPE_FAILED_NO_QUOTA_SET_FOR_DOMAIN.toString());
                 return false;


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I21cc59098ede7044ebde1d544e295300d8b40cb7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Noam Slomianko <nslom...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to