Skip to content

[manila-csi-plugin] Add options for passing mount opts to cephfs-csi#1605

Merged
k8s-ci-robot merged 3 commits intokubernetes:masterfrom
gman0:manilacsi-cephfs-mount-opts
Jul 23, 2021
Merged

[manila-csi-plugin] Add options for passing mount opts to cephfs-csi#1605
k8s-ci-robot merged 3 commits intokubernetes:masterfrom
gman0:manilacsi-cephfs-mount-opts

Conversation

@gman0
Copy link
Copy Markdown
Contributor

@gman0 gman0 commented Jul 21, 2021

What this PR does / why we need it:

manila-csi already passes mount options to its partner Node Plugins. However, cephfs-csi consumes mount options for CephFS kernel and FUSE client via separate volume context parameters: kernelMountOptions and fuseMountOptions. In order for user to be able to control these, manila-csi needs to expose these params as well.

Please see https://github.com/ceph/ceph-csi/blob/devel/docs/deploy-cephfs.md#configuration for reference (section "Available volume parameters").

Exposing kernel opts are especially important for environments with SELinux enabled, where users may want to pass in SELinux context options.

Special notes for reviewers:

Release note:

[manila-csi-plugin] Add cephfs-kernelMountOptions and cephfs-fuseMountOptions volume parameters

gman0 added 3 commits July 21, 2021 13:53
This commit adds two new options specific to cephfs-csi
to ControllerVolumeContext and NodeVolumeContext:
* cephfs-kernelMountOptions,
* cephfs-fuseMountOptions
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jul 21, 2021
@k8s-ci-robot k8s-ci-robot requested review from Fedosin and tsmetana July 21, 2021 12:14
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jul 21, 2021
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 21, 2021

Build succeeded.

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 21, 2021

Build succeeded.

Copy link
Copy Markdown
Contributor

@tombarron tombarron left a comment

Choose a reason for hiding this comment

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

Looks right, thanks!

@tombarron
Copy link
Copy Markdown
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 21, 2021
@tombarron
Copy link
Copy Markdown
Contributor

The docs file is outside pkg/csi/manila so my attempts probabably won't be effective, but they are there for the record.

@gman0
Copy link
Copy Markdown
Contributor Author

gman0 commented Jul 21, 2021

Thank you, @tombarron ! @ramineni could you please take a look?

@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 21, 2021

Build succeeded.

Copy link
Copy Markdown
Contributor

@gouthampacha gouthampacha left a comment

Choose a reason for hiding this comment

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

/lgtm

@gouthampacha
Copy link
Copy Markdown
Contributor

/assign @ramineni

@ramineni
Copy link
Copy Markdown
Contributor

/approve

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ramineni, tombarron

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 23, 2021
@k8s-ci-robot k8s-ci-robot merged commit f1848cd into kubernetes:master Jul 23, 2021
pierreprinetti pushed a commit to shiftstack/cloud-provider-openstack that referenced this pull request Aug 23, 2021
…ubernetes#1605)

* added cephfs-csi mount opts to volume context

This commit adds two new options specific to cephfs-csi
to ControllerVolumeContext and NodeVolumeContext:
* cephfs-kernelMountOptions,
* cephfs-fuseMountOptions

* pass cephfs-kernelMountOptions and cephfs-fuseMountOptions to cephfs-csi

* updated docs with new volume context opts
powellchristoph pushed a commit to powellchristoph/cloud-provider-openstack that referenced this pull request Jan 19, 2022
…ubernetes#1605)

* added cephfs-csi mount opts to volume context

This commit adds two new options specific to cephfs-csi
to ControllerVolumeContext and NodeVolumeContext:
* cephfs-kernelMountOptions,
* cephfs-fuseMountOptions

* pass cephfs-kernelMountOptions and cephfs-fuseMountOptions to cephfs-csi

* updated docs with new volume context opts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants