Liron Aravot has uploaded a new change for review. Change subject: core: fixed exception during creation of VM from template ......................................................................
core: fixed exception during creation of VM from template During executing AddVmFromTemplateCommand, the parent parameters weren't set on CloneVmFromVmTemplateCommand paramaters which is being executed within. CommandBase throws an exception when the parent parameters aren't set which cause the template to remain in image locked status. Change-Id: I47633b3cb6b2f5b078bdc8d8955f17eed1edd71e Signed-off-by: Liron Aravot <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmFromTemplateCommand.java 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/94/8194/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmFromTemplateCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmFromTemplateCommand.java index 4fc75c7..53d48ba 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmFromTemplateCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/AddVmFromTemplateCommand.java @@ -63,6 +63,7 @@ p.setDestStorageDomainId(diskInfoDestinationMap.get(disk.getId()).getstorage_ids().get(0)); p.setVmSnapshotId(getVmSnapshotId()); p.setParentCommand(VdcActionType.AddVmFromTemplate); + p.setParentParameters(getParameters()); p.setEntityId(getParameters().getEntityId()); p.setQuotaId(diskInfoDestinationMap.get(disk.getId()).getQuotaId() != null ? diskInfoDestinationMap.get(disk.getId()) .getQuotaId() -- To view, visit http://gerrit.ovirt.org/8194 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I47633b3cb6b2f5b078bdc8d8955f17eed1edd71e Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Liron Aravot <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
