Skip to content

kubelet: NodePublishVolumeRequest.target_path handling not CSI compliant #75535

Closed
@pohly

Description

@pohly

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.sig/storageCategorizes an issue or PR as relevant to SIG Storage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions