bugfix: fix csi plugin loop mount bug - #3287
Merged
fluid-e2e-bot[bot] merged 3 commits intoJun 13, 2023
Merged
Conversation
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
|
Kudos, SonarCloud Quality Gate passed!
|
Codecov Report
@@ Coverage Diff @@
## master #3287 +/- ##
=======================================
Coverage 65.48% 65.48%
=======================================
Files 398 398
Lines 23179 23179
=======================================
Hits 15179 15179
Misses 6215 6215
Partials 1785 1785 |
Collaborator
|
/test fluid-e2e |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cheyang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
cheyang
pushed a commit
to cheyang/fluid
that referenced
this pull request
Jun 14, 2023
* Fix CSI node plugin loop mount error Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> --------- Signed-off-by: trafalgarzzz <trafalgarz@outlook.com>
cheyang
pushed a commit
to cheyang/fluid
that referenced
this pull request
Jun 14, 2023
* Fix CSI node plugin loop mount error Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> --------- Signed-off-by: trafalgarzzz <trafalgarz@outlook.com> Signed-off-by: cheyang <cheyang@163.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








Ⅰ. Describe what this PR does
This PR fixes #3286, which is caused by looping bind-mounts when Fluid's CSI plugin attempts to mount both
/var/lib/kubelet(withmountPropagation=Bidirectional) and/var/lib/kubelet/pkiinto the container.This PR fixes this bug by checking if
kubelet-root-diris a parent directory ofkubelet-cert-dirand determine whether to mountkubelet-cert-dir. This is to avoid looping bind mounts and mount info leak when restarting the Pod.Ⅱ. Does this pull request fix one issue?
fixes #3286
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews