Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teardown replica when replication fails #400

Merged
merged 1 commit into from
Jul 24, 2023

Conversation

ahadas
Copy link
Member

@ahadas ahadas commented Jul 23, 2023

When disk replication fails during live storage migration, we detect it properly, fail the operation and remove the disk from the destination storage domain. However, we didn't tear down the replica on the host that executes the replication and therefore, if the removal of the destination disk was done on a different host, we had leftovers remaining on the host that executed the replication.

This patch changes the diskReplicateFinish function to tear down the replicate when the corresponding block job doesn't exist in order to prevent this scenario of having leftovers on the host that could lead to data corruption later on.

Bug-Url: https://bugzilla.redhat.com/2193392

When disk replication fails during live storage migration, we detect it
properly, fail the operation and remove the disk from the destination
storage domain. However, we didn't tear down the replica on the host
that executes the replication and therefore, if the removal of the
destination disk was done on a different host, we had leftovers
remaining on the host that executed the replication.

This patch changes the diskReplicateFinish function to tear down the
replicate when the corresponding block job doesn't exist in order to
prevent this scenario of having leftovers on the host that could lead to
data corruption later on.

Bug-Url: https://bugzilla.redhat.com/2193392
Signed-off-by: Arik Hadas <ahadas@redhat.com>
@ahadas ahadas requested a review from aesteve-rh July 23, 2023 11:35
@ahadas ahadas requested review from mz-pdm and nirs as code owners July 23, 2023 11:35
@mz-pdm mz-pdm merged commit 0deb9ec into oVirt:ovirt-4.5.3.z Jul 24, 2023
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants