Change in ovirt-engine[master]: core: Fix move and copy disk commands

tnisan at redhat.com tnisan at redhat.com
Wed Oct 19 16:57:00 UTC 2016


Tal Nisan has submitted this change and it was merged.

Change subject: core: Fix move and copy disk commands
......................................................................


core: Fix move and copy disk commands

Change I4bddbcc changed the initialization of the storage pool in
BaseImagesCommand and in case the storage pool from the parameters is not
null it will be taken from the parameters, however this change ignored
the case in which the storage pool from the parameters is an empty and it
that case skipping the part of getting the storage pool id from the image
fetched from the DB, this patch adds the check for the empty guid.

Since the original patch also changed the static mocking of the commands
to do nothing when invoking initContainerDetails(params) due to the fact
it issues a DAO call from the ctor the tests are breaking since the DAO
mocks are not populated upon the ctor call to initContainerDetails was
moved to the init() method of the command where it belonged to in the first
place as issuing DAO calls from the ctor is a bad practice.

Bug-Url: https://bugzilla.redhat.com/1385533
Change-Id: Ibe620a55fbfd509689a081e5c658a9e25819dd26
Signed-off-by: Tal Nisan <tnisan at redhat.com>
---
M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/disk/image/BaseImagesCommand.java
1 file changed, 9 insertions(+), 4 deletions(-)

Approvals:
  Tal Nisan: Verified
  Jenkins CI: Passed CI tests
  Martin Betak: Looks good to me, but someone else must approve
  Allon Mureinik: Looks good to me, approved



-- 
To view, visit https://gerrit.ovirt.org/65610
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ibe620a55fbfd509689a081e5c658a9e25819dd26
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: Allon Mureinik <amureini at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Martin Betak <mbetak at redhat.com>
Gerrit-Reviewer: Martin Sivák <msivak at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list