diff --git a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/backup/DeleteAllVmCheckpointsCommand.java b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/backup/DeleteAllVmCheckpointsCommand.java index b8bc45fe3a2..75d8b499df8 100644 --- a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/backup/DeleteAllVmCheckpointsCommand.java +++ b/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/storage/backup/DeleteAllVmCheckpointsCommand.java @@ -139,4 +139,9 @@ protected Map> getSharedLocks() { return Collections.singletonMap(getParameters().getVmId().toString(), LockMessagesMatchUtil.makeLockingPair(LockingGroup.VM, EngineMessage.ACTION_TYPE_FAILED_VM_IS_LOCKED)); } + + @Override + public boolean ignoreChildCommandFailure() { + return getParameters().isForce(); + } } diff --git a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/DeleteAllVmCheckpointsParameters.java b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/DeleteAllVmCheckpointsParameters.java index 9105aa144de..8fcdfa2481a 100644 --- a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/DeleteAllVmCheckpointsParameters.java +++ b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/action/DeleteAllVmCheckpointsParameters.java @@ -16,6 +16,7 @@ public class DeleteAllVmCheckpointsParameters extends VmOperationParameterBase { @NotNull private List diskImages; private int completedDisksCount; + private boolean force; public DeleteAllVmCheckpointsParameters() { } @@ -24,6 +25,7 @@ public DeleteAllVmCheckpointsParameters(Guid vmId, List diskImages) { super(vmId); this.diskImages = diskImages; completedDisksCount = 0; + force = false; } public List getDiskImages() { @@ -41,4 +43,11 @@ public int getCompletedDisksCount() { public void setCompletedDisksCount(int completedDisksCount) { this.completedDisksCount = completedDisksCount; } + public boolean isForce() { + return force; + } + + public void setForce(boolean force) { + this.force = force; + } }