-
Notifications
You must be signed in to change notification settings - Fork 596
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
[cinder-csi-plugin] Tag (metadata) from req.parameter behavior different for snapshot and volume #1545
Comments
@jichenjc Could you explain what exactly is the problem , I have gone through the comment but its not clear |
@ramineni every req.parameter will be used to create tag in current implementation but from spec, the req parameter should not all be set to tags (check createvolume function, the tag only honor very specific annotations and other param will NOT become a tag )
|
@jichenjc If you are talking about the above, they are only example usecases . It depends on provider if we can add the params as metadata or not. In the current scenario , I dont see why we cant add as metadata. what all params you want to avoid/not suitable for adding as metadata or how do we decide? |
The createvolume and createsnapshot currently is inconsistent, createvolume doesn't create tag wihle createsnapshot do ; so the primary purpose is to make them sync so I think it's reasonable to avoid create tag for every param, instead, if we knew some param we really need |
I can see we are using some known keys from |
@lingxiankong No, the known keys are passed from external-provisioner for CreateVolume call only . Not passed for CreateSnapshot. |
@lingxiankong From snapshotter-version 4.0.0 it supports --extra-create-metadata tag where we can add the metadata info for CreateSnapshot as well (ref: #1578) But the question remains , if we want to support only metadata that is being passed from sidecars or user metadata as well? |
Passing all the parameters specified by the users to the Cinder snapshot doesn't sound like a good idea to me, I personally would prefer to only pass the sidecar params. |
@lingxiankong @jichenjc ok, I guess we can make it consistent to add the metadata from the sidecars. Later we can support specific metadata keys if used commonly as per requirement. @jichenjc could you update the PR reflecting that if sounds good to you? |
ok, I will update the PR~ |
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
discussion here
#1544 (comment)
What you expected to happen:
How to reproduce it:
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: