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

Can't pass any map options to rbd map #291

Closed
nefelim4ag opened this issue Mar 27, 2019 · 6 comments · Fixed by #1460
Closed

Can't pass any map options to rbd map #291

nefelim4ag opened this issue Mar 27, 2019 · 6 comments · Fixed by #1460

Comments

@nefelim4ag
Copy link

https://github.com/ceph/ceph-csi/blob/csi-v1.0/pkg/rbd/rbd_attach.go#L295-L300

As example we use that options to pass: osd_request_timeout=300,queue_depth=1024

@Madhu-1
Copy link
Collaborator

Madhu-1 commented Mar 27, 2019

@nefelim4ag currently we don't support passing extra options to rbd commands.

@rootfs @gman0 @ShyamsundarR do we need to consider this use case?

@rootfs
Copy link
Member

rootfs commented Mar 27, 2019

yes, csi mount option supported in kubernetes kubernetes/kubernetes#67898

@ShyamsundarR
Copy link
Contributor

The options mentioned (osd_request_timeout, queue_depth) seem to be rbd options that have to be passed to the rbd map command when using the krbd client. Possibly other clients also support these options in different ways, but my investigation has been till krbd client.

The code that you link to also points to rbd map so we are in sync till here as to who the options should be passed to.

Now, when I trace the mount options from the StorageClass to the in tree attacher for rbd (i.e what exists outside the scope of CSI till now), I see that these mount options are passed to the FS mounter rather than the rbd map command.

Thus, I do not understand if your request is to support RBD map options, or that these were supported in the past and we need to continue supporting them in the future. As I do not see them as supported in the past.

@nefelim4ag Request clarification on the same.

Further, from the use-case of mount options, we should rightly be passing this to the FS mounter, and we are in the CSI plugin as well. This cannot be overloaded to add RBD mount options IMO.

If the request is that the RBD CSI plugin should support RBD options in addition to existing options, we may need to consider this as a new option to be added to the StorageClass and evaluate the same.

@ShyamsundarR
Copy link
Contributor

Further, from the use-case of mount options, we should rightly be passing this to the FS mounter, and we are in the CSI plugin as well. This cannot be overloaded to add RBD mount options IMO.

Correction as noted in issue #292 the mount options are not currently passed to the FS mounter.

@nefelim4ag based on the other issue filed, I assume that this request is for rbd map options, that is separate from the mount options?

@nefelim4ag
Copy link
Author

@ShyamsundarR, yep
That request for pass options to rbd map

@humblec
Copy link
Collaborator

humblec commented Sep 3, 2020

This has to be considered. With different map options coming along ( readonly, noudev..etc), we should make it configurable and at times pass these options for dynamic mapping of RBD devices at time of NODE mapping.

@mergify mergify bot closed this as completed in #1460 Sep 21, 2020
iPraveenParihar pushed a commit to iPraveenParihar/ceph-csi that referenced this issue Aug 6, 2024
BUG 2268158: rebase: update protobuf to 1.33.0
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 a pull request may close this issue.

5 participants