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 CSI and add multi mount #86

Merged
merged 3 commits into from
Oct 25, 2023
Merged

Conversation

ssz1997
Copy link
Collaborator

@ssz1997 ssz1997 commented Oct 20, 2023

  1. Use default /mnt/alluxio/fuse on host machine for alluxio mount point instead of staging path provided by CSI, which for unknown reason doesn't work.
  2. Add multi mount check for fuse template

@@ -36,11 +36,6 @@ type controllerServer struct {
func (cs *controllerServer) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequest) (*csi.CreateVolumeResponse, error) {
volumeID := sanitizeVolumeID(req.GetName())

if err := cs.Driver.ValidateControllerServiceRequest(csi.ControllerServiceCapability_RPC_CREATE_DELETE_VOLUME); err != nil {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This check is not needed

@@ -16,8 +16,6 @@ kind: PersistentVolumeClaim
metadata:
name: {{ $fullName }}-alluxio-csi-fuse-pvc
spec:
accessModes:
- ReadWriteOnce
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Lift the restriction

@@ -119,9 +119,6 @@ spec:
- until nslookup {{ $fullName }}-master-0;
do sleep 2;
done
volumeMounts:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Unnecessary volumeMount.

@ssz1997 ssz1997 merged commit 015ea18 into Alluxio:main Oct 25, 2023
1 check passed
@jayxie8
Copy link

jayxie8 commented Nov 29, 2023

Ask a question
Why Staging Path Provided by CSI, which doesn't work.

@ssz1997
Copy link
Collaborator Author

ssz1997 commented Nov 29, 2023

@jayxie8 The initContainer of the fuse pod would try to create the staging path if it doesn't exist, but then the actual container is not able to find that path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants