Change in ovirt-engine[ovirt-engine-4.1]: core: External VMs addition fix

From Piotr Kliczewski <piotr.kliczewski@gmail.com>:
Piotr Kliczewski has submitted this change and it was merged. Change subject: core: External VMs addition fix ...................................................................... core: External VMs addition fix Problem: Bean validation of VmBase#maxMemorySizeMb was failing in AddVmFromScratchCommand since it value was 0 (out of valid range). The AddVmFromScratchCommand is called in order to add external VM to engine. As result reporting of external VMs was broken. Fix: Value of #maxMemorySizeMb is property copied from VDSM description of external VM in AddUnmanagedVmsCommand#convertVm. If 'maxMemSize' property is mising in the VDSM description then maxMemory is set to value of memory. Change-Id: Ie43865b3a15537bd244e3217b926955f814cfe0c Bug-Url: https://bugzilla.redhat.com/1411739 Signed-off-by: Jakub Niedermertl <jniederm@redhat.com> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddUnmanagedVmsCommand.java M backend/manager/modules/bll/src/test/resources/external_vm.json 2 files changed, 7 insertions(+), 0 deletions(-) Approvals: Tomas Jelinek: Looks good to me, approved Jakub Niedermertl: Verified Jenkins CI: Passed CI tests -- To view, visit https://gerrit.ovirt.org/70056 To unsubscribe, visit https://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: Ie43865b3a15537bd244e3217b926955f814cfe0c Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-4.1 Gerrit-Owner: Jakub Niedermertl <jniederm@redhat.com> Gerrit-Reviewer: Arik Hadas <ahadas@redhat.com> Gerrit-Reviewer: Jakub Niedermertl <jniederm@redhat.com> Gerrit-Reviewer: Jenkins CI Gerrit-Reviewer: Piotr Kliczewski <piotr.kliczewski@gmail.com> Gerrit-Reviewer: Tomas Jelinek <tjelinek@redhat.com> Gerrit-Reviewer: gerrit-hooks <automation@ovirt.org>
participants (1)
-
Code Review