Ravi Nori has uploaded a new change for review. Change subject: engine : Reason does not get updated when trying to shut down a VM ......................................................................
engine : Reason does not get updated when trying to shut down a VM When trying to stop the VM while it is powering up or shutting down, the reason comment does not get saved in the DB Change-Id: I8f70177206de3fd3081826ea898ab2a7fb87357b Bug-Url: https://bugzilla.redhat.com/1114903 Signed-off-by: Ravi Nori <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ShutdownVmCommand.java 1 file changed, 1 insertion(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/29/30929/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ShutdownVmCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ShutdownVmCommand.java index 0862b81..74d23c0 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ShutdownVmCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ShutdownVmCommand.java @@ -73,6 +73,7 @@ log.infoFormat("Cannot shutdown VM {0}, status is not up. Stopping instead.", getVmName()); StopVmParameters stopVmParams = new StopVmParameters(getVmId(), StopVmTypeEnum.CANNOT_SHUTDOWN); + stopVmParams.setStopReason(getParameters().getStopReason()); // stopVmParams.ParametersCurrentUser = CurrentUser; stopVmParams.setSessionId(getParameters().getSessionId()); runInternalAction(VdcActionType.StopVm, stopVmParams); -- To view, visit http://gerrit.ovirt.org/30929 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I8f70177206de3fd3081826ea898ab2a7fb87357b Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.5 Gerrit-Owner: Ravi Nori <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
