Allon Mureinik has submitted this change and it was merged.

Change subject: core: Fix import from glance storage allocation check
......................................................................


core: Fix import from glance storage allocation check

The storage allocation check uses the
DiskImage.getActualDiskWithSnapshotsSizeInBytes() method to evaluate the
disk's size according to it's snapshots' sizes. In this case, the disk image is
not created with an active image (which is considered as a snapshot for
the aforementioned method), which resulted in a disk size of 0.
This patch adds the image to the snapshots.

Change-Id: I02d1cfb30c64a7d7b7b4c0386b134583faee190d
Bug-Url: https://bugzilla.redhat.com/1178012
Bug-Url: https://bugzilla.redhat.com/1053750
Signed-off-by: Vered Volansky <[email protected]>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ImportRepoImageCommand.java
1 file changed, 5 insertions(+), 2 deletions(-)

Approvals:
  Allon Mureinik: Looks good to me, approved
  Freddy Rolland: Looks good to me, but someone else must approve
  Vered Volansky: Verified



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I02d1cfb30c64a7d7b7b4c0386b134583faee190d
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Vered Volansky <[email protected]>
Gerrit-Reviewer: Ala Hino <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Amit Aviram <[email protected]>
Gerrit-Reviewer: Freddy Rolland <[email protected]>
Gerrit-Reviewer: Tal Nisan <[email protected]>
Gerrit-Reviewer: Vered Volansky <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to