-
Notifications
You must be signed in to change notification settings - Fork 148
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(csi): Invalid mount point with volume detached #2043
Conversation
9a0cd17
to
b60b524
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Others LGTM
This pull request is now in conflicts. Could you fix it @mantissahz? 🙏 |
b60b524
to
4bde633
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. After addressing Derek's comments, we can merge it
bdf8c26
to
617532b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
617532b
to
aae8aac
Compare
@mantissahz Please help check the remaining reviews from Chinya and Phan. |
aae8aac
to
bc5e98b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, LGTM.
James, well done, but a few comments need you help to check.
@mergify backport v1.5.x |
✅ Backports have been created
|
66ec4ab
to
06f4aa0
Compare
aebe700
to
96d6a89
Compare
Volume detached because only one replica failed and not remount the `globalmount`. We need to handle it at NodePublishVolume because os.ReadDir will be passed when it becomes a read-only file system after an unexpected volume detaching. Use an empty file to test the file system Ref: 4814, 5801 Signed-off-by: James Lu <james.lu@suse.com>
96d6a89
to
1dd2686
Compare
@mergify backport v1.5.x v1.4.x v1.3.x |
✅ Backports have been created
|
@mergify backport v1.4.x v1.3.x |
✅ Backports have been created
|
Volume detached because only one replica failed and not remount the
globalmount
. We need to handle it at NodePublishVolume because os.ReadDir will be passed when it becomes a read-only file system after an unexpected volume detaching.Ref: longhorn/longhorn#4814, longhorn/longhorn#5801
Test case test:
https://ci.longhorn.io/job/private/job/longhorn-tests-regression/4403/
https://ci.longhorn.io/job/private/job/longhorn-tests-regression/4425/