Change in ovirt-engine[master]: core: Fix import from glance storage allocation check

amureini at redhat.com amureini at redhat.com
Sat Feb 14 07:34:28 UTC 2015


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 <vvolansk at redhat.com>
---
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 <vvolansk at redhat.com>
Gerrit-Reviewer: Ala Hino <ahino at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Amit Aviram <aaviram at redhat.com>
Gerrit-Reviewer: Freddy Rolland <frolland at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: Vered Volansky <vvolansk at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list