Closed
Description
What happened:
When mounting a filesystem volume with a CSI driver, kubelet creates the NodePublishVolumeRequest.target_path
directory where the volume is to be mounted.
What you expected to happen:
According to the CSI 1.0 spec, kubelet must not create that directory, only its parent:
The CO SHALL ensure that the parent directory of this path exists
and that the process serving the request has `read` and `write`
permissions to that parent directory.
For volumes with an access type of block, the SP SHALL place the
block device at target_path.
For volumes with an access type of mount, the SP SHALL place the
mounted directory at target_path.
Environment:
- Kubernetes version (use
kubectl version
): Kubernetes 1.13.x and 1.14.0
/sig storage
/cc @msau42 @bswartz @lpabon @vladimirvivien