Arik Hadas has posted comments on this change.
Change subject: core: rerun HA vm that fails during live snapshot
......................................................................
Patch Set 4: (3 inline comments)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CreateAllSnapshotsFromVmCommand.java
Line 176: return null;
Line 177: }
Line 178: });
Line 179:
Line 180: if (isVmDownUnexpectedly() && getVm().isAutoStartup() &&
wasVmUpInitially()) {
Done
Line 181:
Backend.getInstance().runInternalAction(VdcActionType.RunVm,
Line 182: new RunVmParams(getVmId()),
Line 183: ExecutionHandler.createInternalJobContext());
Line 184: }
Line 185: }
Line 186:
Line 187: private boolean isVmDownUnexpectedly() {
Line 188: VM vm = getVmDAO().get(getVmId());
Line 189: return ImagesHandler.isVmDown(vm) && vm.getExitStatus() !=
VmExitStatus.Normal;
Done
Line 190: }
Line 191:
Line 192: private boolean wasVmUpInitially() {
Line 193: VMStatus vmStatus = getParameters().getInitialVmStatus();
....................................................
File
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/VdsUpdateRunTimeInfo.java
Line 1734: private void clearVm(VM vm, String exitMessage) {
Line 1735: if (vm.getStatus() != VMStatus.MigratingFrom) {
Line 1736: if (vm.getStatus() != VMStatus.Suspended) {
Line 1737:
ResourceManager.getInstance().InternalSetVmStatus(vm, VMStatus.Down);
Line 1738: vm.setExitStatus(VmExitStatus.Error);
DONE
Line 1739: vm.setExitMessage(exitMessage);
Line 1740: }
Line 1741: AddVmDynamicToList(vm.getDynamicData());
Line 1742: AddVmStatisticsToList(vm.getStatisticsData());
--
To view, visit http://gerrit.ovirt.org/10618
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Id5daeffd1cee106019065c29fb8428a9b9f78a5d
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <[email protected]>
Gerrit-Reviewer: Arik Hadas <[email protected]>
Gerrit-Reviewer: Gilad Chaplik <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Roy Golan <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches