Skip to content

Commit

Permalink
core: perform cleanup for failure during clone LSM phase
Browse files Browse the repository at this point in the history
In case of Live Storage Migration failure during
"LiveDiskMigrateStage.CLONE_IMAGE_STRUCTURE" the cleanup
was skipped. It should be performed in order to free the already
allocated space on the target Storage Domain.

Signed-off-by: Pavel Bar <pbar@redhat.com>
Bug-Url: https://bugzilla.redhat.com/2102149
  • Loading branch information
barpavel committed Aug 2, 2022
1 parent 8bf2224 commit c5ad592
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,6 @@ private String getDiskIsBeingMigratedMessage(Disk disk) {

private void cleanupDestDiskAfterFailure() {
if (getParameters().getLiveDiskMigrateStage() == LiveDiskMigrateStage.CREATE_SNAPSHOT ||
getParameters().getLiveDiskMigrateStage() == LiveDiskMigrateStage.CLONE_IMAGE_STRUCTURE ||
getParameters().getLiveDiskMigrateStage() == LiveDiskMigrateStage.SOURCE_IMAGE_DELETION) {
return;
}
Expand Down

0 comments on commit c5ad592

Please sign in to comment.