Ravi Nori has uploaded a new change for review. Change subject: engine : Clear VM Poweroff/Shutdown reason when RunVmCommand succeeds ......................................................................
engine : Clear VM Poweroff/Shutdown reason when RunVmCommand succeeds Change the way the reason is cleared. When the RunVmCommand succeeds the reason for the previous shutdown is cleared. Change-Id: Ia1fcf297218295b8cae9e5652e32a1351b0ac9e7 Bug-Url: https://bugzilla.redhat.com/1065753 Signed-off-by: Ravi Nori <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/99/27299/1 diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java index d372612..ea6336c 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java @@ -235,6 +235,8 @@ if (status != null && (status.isRunning() || status == VMStatus.RestoringState)) { setSucceeded(true); + getVm().setStopReason(null); + getVmDynamicDao().clearStopReason(this.getVm().getId()); } else { // Try to rerun Vm on different vds no need to log the command because it is // being logged inside the rerun @@ -253,8 +255,6 @@ @Override protected void executeVmCommand() { - getVm().setStopReason(null); - getVmDynamicDao().clearStopReason(this.getVm().getId()); setActionReturnValue(VMStatus.Down); initVm(); perform(); -- To view, visit http://gerrit.ovirt.org/27299 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia1fcf297218295b8cae9e5652e32a1351b0ac9e7 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Ravi Nori <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
