ofri masad has uploaded a new change for review.

Change subject: core: Fix quota count for Template with multiple SD
......................................................................

core: Fix quota count for Template with multiple SD

When deleting a template which have a multiple domain disk, the disk
size was only released from the quota once.

RemoveVmTemplateCommand was changed to support multiple storage domain
disks when removing templates.

Change-Id: Id2f5051218405753dc86b997aaa47f488f159350
Bug-Url: https://bugzilla.redhat.com/963587
Signed-off-by: Ofri Masad <oma...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmTemplateCommand.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/78/15278/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmTemplateCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmTemplateCommand.java
index 4806711..e82fc73 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmTemplateCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RemoveVmTemplateCommand.java
@@ -295,7 +295,7 @@
                             null,
                             
QuotaStorageConsumptionParameter.QuotaAction.RELEASE,
                             disk.getStorageIds().get(0),
-                            (double) disk.getSizeInGigabytes()));
+                            (double) disk.getSizeInGigabytes() * 
disk.getStorageIds().size()));
                 }
             }
         }


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

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

Reply via email to