You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By default, the driver will use the volumeId to create a new folder under /buckets/<volumeId>. This also gets deleted when the volume is deleted.
But as we can override the path given to the filer by setting spec.csi.volumeAttributes.path, this doesnt work then.
Behavior
Create PV
Folder is not created
Delete PVC attached to PV (with policy Delete)
Error because folder doesnt exist. PV stays marked with "Error" and has to be removed manually
Mounting
Mounter doesnt complain the filer.path doesnt exist. Files can be created, etc, but are inaccessible from parent-directories. (Bug in weed mount or filer to allow this?)
Expected Behaviour
When creating a volume:
specified path is created if it didnt exist
When deleting a volume:
specified path is deleted
I'd propose having a flag to not create/delete anything as this can be dangerous and unwanted when provisioned statically
Mounting
When filer.path doesnt exist, error. (or auto-create?)
This can happen when the folder was deleted after the Volume is created.
Depending on what we want to allow, we could ideally get the path of the volume and operate on that. This would then be equivalent to volumes which dont have a path set.
Though i am not sure how hard it is to get that information as its not passed with the Request.
From what i observed, the CreateVolume isnt even called when a PV is created, only when it happens through a PVC?
Maybe this is an expected behaviour?
The text was updated successfully, but these errors were encountered:
Problem
By default, the driver will use the
volumeId
to create a new folder under/buckets/<volumeId>
. This also gets deleted when the volume is deleted.But as we can override the path given to the filer by setting
spec.csi.volumeAttributes.path
, this doesnt work then.Behavior
Expected Behaviour
Steps to recreate
/mytest
is createdInterestingly, also the path
/buckets/test
doesnt exist.CreateVolume:
seaweedfs-csi-driver/pkg/driver/controllerserver.go
Line 53 in d777b87
DeleteVolume:
seaweedfs-csi-driver/pkg/driver/controllerserver.go
Line 83 in d777b87
ValidateVolumeCapabilities:
seaweedfs-csi-driver/pkg/driver/controllerserver.go
Line 127 in d777b87
Depending on what we want to allow, we could ideally get the path of the volume and operate on that. This would then be equivalent to volumes which dont have a path set.
Though i am not sure how hard it is to get that information as its not passed with the Request.
From what i observed, the CreateVolume isnt even called when a PV is created, only when it happens through a PVC?
Maybe this is an expected behaviour?
The text was updated successfully, but these errors were encountered: