Tal Nisan has uploaded a new change for review. Change subject: core: Add warning message to log when running VM stateless (#834891) ......................................................................
core: Add warning message to log when running VM stateless (#834891) Add a warning message to the log when running a VM with non snappable disks as stateless Change-Id: I6c7421f45dfa75847482a7abd23ddb5feb7d6f9e Signed-off-by: Tal Nisan <[email protected]> --- M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/RunVmCommand.java 1 file changed, 7 insertions(+), 2 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/39/7539/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 ebc2f29..aa79d61 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 @@ -259,9 +259,14 @@ ResumeVm(); } else { // run vm if (!_isRerun && Boolean.TRUE.equals(getParameters().getRunAsStateless()) - && !getVm().getDiskList().isEmpty() && getVm().getstatus() != VMStatus.Suspended) { - StatelessVmTreatment(); + if (getVm().getDiskList().isEmpty()) { + warnIfNotAllDisksPermitSnapshots(); + RunVm(); + } + else { + StatelessVmTreatment(); + } } else if (!getParameters().getIsInternal() && !_isRerun && getVm().getstatus() != VMStatus.Suspended && statelessSnapshotExistsForVm()) { -- To view, visit http://gerrit.ovirt.org/7539 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I6c7421f45dfa75847482a7abd23ddb5feb7d6f9e Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Tal Nisan <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
