Skip to content
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: add check mountPath in nodePublishVolume #4392

Conversation

Syspretor
Copy link
Collaborator

@Syspretor Syspretor commented Nov 7, 2024

We support a configuration to skip checking mount ready in #4346, to handle the case that user define a nil mountPoints dataset in thinruntime. the verification of the existence of the mountPath was also skipped in the nodePublishVolume function with this configuration. The mountPath was linked to the targetPath using a symlink, which caused the targetPath to be linked to a non-existent directory before the mountPod created it. As a result, the application pod's creation would fail until the fusePod was started and running, which then created the mountPath linked to the targetPath.

In this PR, a pre-check for the existence of the mountPath will be added in the nodePublishVolume method of the CSI plugin.

@Syspretor Syspretor force-pushed the fix/check-mount-path-in-csi-nodePublishVolume branch 3 times, most recently from 0595d8d to 477c94e Compare November 7, 2024 07:52
@Syspretor Syspretor force-pushed the fix/check-mount-path-in-csi-nodePublishVolume branch from 477c94e to a19d06d Compare November 7, 2024 08:12
@Syspretor Syspretor force-pushed the fix/check-mount-path-in-csi-nodePublishVolume branch from a19d06d to a46b4f4 Compare November 7, 2024 08:14
Copy link

sonarqubecloud bot commented Nov 7, 2024

@Syspretor Syspretor requested a review from cheyang November 7, 2024 08:56
Copy link
Collaborator

@cheyang cheyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

Copy link

fluid-e2e-bot bot commented Nov 7, 2024

[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

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fluid-e2e-bot fluid-e2e-bot bot merged commit 3db2a62 into fluid-cloudnative:master Nov 7, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants