-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Missing ability to specify parameters/secrets in CSI CreateSnapshot #12318
Comments
Hi @iSchluff! In #10840 we added the ability to use the volume's secrets for creating snapshots (that shipped in Nomad 1.1.3). But I can definitely see wanting to have separate secrets for the delete call vs the create call. Most of the plumbing to do this was reworked in #12144 which will ship in Nomad 1.3.0, so it should be fairly straightforward to allow overriding the volume's secrets in the create request as well. |
Hi @tgross, thanks for your feedback, however I think this would also need to be applied for parameters. |
I'm starting implementation on this and expect to ship it shortly. For what it's worth, the Ceph plugin should be using unique keys for each different secret it needs, all of which are passed along. So if there's a different secret for create vs snapshot, the Ceph plugin is supposed to handle that by having a different secret that we can store with the volume:
|
I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues. |
Proposal
Currently nomad only supports setting the volume name and snapshot name in the snapshot request.
nomad/command/volume_snapshot_create.go
Lines 100 to 103 in 154264f
However some plugins like ceph-csi require additional parameters/secrets to be set for the request to be valid.
https://github.com/ceph/ceph-csi/blob/d357bebbc21895cd8d01bf0f04e2db425b4b95c9/internal/cephfs/store/volumeoptions.go#L147
So nomad cli would need to implement the ability to pass these to be able to make snapshots.
Use-cases
Ability to create snapshots in ceph-csi and possibly other CSI plugins.
The text was updated successfully, but these errors were encountered: