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
[BUG] Remove v2 volume rebuild snapshot could cause volume stuck in detaching/faulted state #7573
Comments
@yangchiu |
The offline rebuilding feature does not work if one snapshot has multiple children (after introducing snapshot revert). Let me fix it first then re-check this issue. |
Pre Ready-For-Testing Checklist
|
After the fix, reproducing step 9 should be rejected since Longhorn does not allow deleting the parent of the volume head. |
Tested on v1.6.x-head (longhorn-instance-manager c14a405). I'm still able to remove the rebuild snapshot and once all rebuild snapshots removed, there is a replica will be deleted automatically and causes the volume becomes @shuo-wu Could you help to check this? supportbundle_2743423b-9c3b-4420-b7ad-b7ecc587f749_2024-01-17T04-54-21Z.zip |
I just made the instance manager and longhorn manager images based on the master head branch and tried the test. Most of the time it works fine except that I triggered this issue once during detaching:
|
Verified passed on master-head (longhorn-instance-manager d72e4da) and v1.6.x-head (longhorn-instance-manager bcadf21) following the test steps. |
Describe the bug
When deleted replicas of an attached v2 volume, detaching the volume is necessary to trigger replica rebuilding. When detached the volume and replica rebuilding triggered, there were some
rebuild-*
snapshots being created:After the replica rebuilding completed, re-attached the volume, and tried to remove these
rebuild-*
snapshots, the volume could get stuck in detaching/faulted state:To Reproduce
test-1
from UI, and also create PV/PVC for it from UIrebuild-*
snapshots createdrebuild-*
snapshots from UIExpected behavior
Support bundle for troubleshooting
supportbundle_cbabf3df-d2bb-4981-b527-0ebf65b49c6a_2024-01-08T02-01-38Z.zip
Environment
Additional context
<!-Please add any other context about the problem here.-->
The text was updated successfully, but these errors were encountered: