Ayal Baron has posted comments on this change.
Change subject: core: VmReplicateDiskFinish on SyncImageData failure
......................................................................
Patch Set 1: (1 inline comment)
....................................................
File
backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/lsm/VmReplicateDiskFinishTaskHandler.java
Line 159: }
Line 160:
Line 161: @Override
Line 162: protected void revertTask() {
Line 163: // Preventing rollback on VmReplicateDiskFinish success
I may be missing something still, but afaiu move success is a partial criteria
for preventing rollback.
Rollback should be prevented right *before* sending VmReplicateDiskFinish.
Then it should be *allowed* only if *all* of the below are true:
1. disk did not move to destination (as is checked here)
2. VmReplicateDiskFinish *succeeded* (i.e. we chose to revert to source and it
finished successfully) *or* the VM is not running (and we are certain of it)
Line 164: // (checks whether the disk moved successfully to the target
storage domain)
Line 165: Guid targetStorageDomainId =
getEnclosingCommand().getParameters().getTargetStorageDomainId();
Line 166: Guid destinationImageId =
getEnclosingCommand().getParameters().getDestinationImageId();
Line 167: DiskImage diskImage =
getDiskImageDao().get(destinationImageId);
--
To view, visit http://gerrit.ovirt.org/14722
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I6c25b02cb0c2bd78b012dd3e3654caa43f5141d6
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Daniel Erez <[email protected]>
Gerrit-Reviewer: Allon Mureinik <[email protected]>
Gerrit-Reviewer: Ayal Baron <[email protected]>
Gerrit-Reviewer: Daniel Erez <[email protected]>
Gerrit-Reviewer: Federico Simoncelli <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches