-
Notifications
You must be signed in to change notification settings - Fork 147
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
Fix bug we initiate a backup when the volume has started detaching #2635
Conversation
When the volume.Spec.NodeID is different than the node ID of the backup VA ticket, we should not initiate a backup as the volume is going to detach soon longhorn-7937 Signed-off-by: Phan Le <phan.le@suse.com>
Still need to follow up with the test results later, even though the PR has been merged. |
@mergify backport v1.6.x v1.5.x |
✅ Backports have been created
|
The fix is general, so it should be expected to happen in 1.6 and 1.5 after VA was introduced. Do you know why this issue can reproduce after 1.5.4-RC2? @PhanLe1010 @c3y1huang |
Hi @innobead my current theory is that we change the code flow somehow and make it longer between volume.Spec.NodeID being cleanup and the time that volume starts detaching by setting the engine.spec.desirestate to stop. But that is just an idea and I couldn't find proof from the |
That's reasonable and should be fine, as we already clarified the fix here. |
When the volume.Spec.NodeID is different than the node ID of the backup VA ticket, we should not initiate a backup as the volume is going to detach soon
longhorn/longhorn#7937
This PR is going to replace the approach at the PR #2627. After discussed with @ejweber and @james-munson , we think that this approach is better because: