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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Two active engine when volume migrating #6642
Comments
Analysis from @Vicente-Cheng For the migration flow, we could briefly say as follows:
The problem might happened in Step 7. |
Reproducing Steps: It is quite difficult to reproduce the case in the analysis (a race condition) organically. I modified an e2e test case to repeatedly does volume migration 100 times (ref PhanLe1010/longhorn-tests@5c21e8b) but no luck We are able to artificially trigger the bug (the first case) by:
|
Pre Ready-For-Testing Checklist
|
Test steps: It is quite difficult to reproduce the case organically. I think it is good enough to make sure the PR passes all e2e tests |
Describe the bug (馃悰 if you encounter this issue)
In the harvester upgrade scenario, the running VM will migrate to another node if the hosted VM node upgrades.
The VM migrate will trigger the volume migration.
Sometimes, we get the two active engines after the volume tries to migrate to another node.
We could see the following logs:
To Reproduce
Copy from harvester issue: harvester/harvester#4477
Expected behavior
Should not get two active engine when volume migrating
Support bundle for troubleshooting
refer to harvester/harvester#4477
Environment
Additional context
Related two issues:
harvester/harvester#4477
harvester/harvester#4489
harvester/harvester#3228
The text was updated successfully, but these errors were encountered: