Daniel Erez has uploaded a new change for review.

Change subject: core: isLiveSnapshotApplicable - VM in Paused status
......................................................................

core: isLiveSnapshotApplicable - VM in Paused status

CreateAllSnapshotsFromVmCommand -> endVmCommand:
Live snapshot is being performed only when 'isLiveSnapshotApplicable'.
Since live snapshot is applicable for VM in Paused status as well,
adjusting 'isLiveSnapshotApplicable' method accordingly.

Change-Id: I54aaa537fe074944cbc9d547f3a6800fa2f87e35
Bug-Url: https://bugzilla.redhat.com/987783
Signed-off-by: Daniel Erez <de...@redhat.com>
---
M 
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CreateAllSnapshotsFromVmCommand.java
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/53/17553/1

diff --git 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CreateAllSnapshotsFromVmCommand.java
 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CreateAllSnapshotsFromVmCommand.java
index fe6462f..4d8558f 100644
--- 
a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CreateAllSnapshotsFromVmCommand.java
+++ 
b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CreateAllSnapshotsFromVmCommand.java
@@ -301,7 +301,7 @@
 
     private boolean isLiveSnapshotApplicable() {
         return getParameters().getParentCommand() != VdcActionType.RunVm && 
getVm() != null
-                && getVm().isRunning() && getVm().getRunOnVds() != null;
+                && getVm().isRunningOrPaused() && getVm().getRunOnVds() != 
null;
     }
 
     @Override


-- 
To view, visit http://gerrit.ovirt.org/17553
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I54aaa537fe074944cbc9d547f3a6800fa2f87e35
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <de...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to