-
Notifications
You must be signed in to change notification settings - Fork 378
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
CreateSnapshot being called several times when only one Snapshot is wanted. #465
Comments
/assign @xing-yang |
Which version of external-snapshotter are you using? |
I am using v3.0.1, does this get fixed in v4? |
My understanding is that this is inherent due to 'CreateSnapshot' being overloaded as a 'GetSnapshot' use case, so it won't be fixed until we add a GetSnapshot call in CSI |
ListSnapshots with snapshot_id serves the same purpose as GetSnapshot so we don't really need a new GetSnapshot RPC. The reason that we decided not to use ListSnapshots is that it is optional. CreateSnapshot is idempotent so it gives us the same output as GetSnapshot when calling it repeatedly. I remember we did discuss about this during the review and decided to go with this approach. CC @yuxiangqian |
@daresheep Which CSI driver are you using? CreateSnapshot must be idempotent. This means if CreateSnapshot is called multiple times for the same create snapshot request, the storage system should only create 1 snapshot, not multiple snapshots. This looks like a problem with the CSI driver and the storage system. |
thank you so much for your replay. The csi driver is https://github.com/kubernetes-csi/csi-driver-host-path and the version is V1.5.0 relase 4 days ago. I'll try lower version for this later. Thanks again. |
@daresheep can you open an issue for the csi hostpath driver here? https://github.com/kubernetes-csi/csi-driver-host-path/issues |
Ok, The issue created here: |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Rotten issues close after 30d of inactivity. Send feedback to sig-contributor-experience at kubernetes/community. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I am testing the csi-snapshotter metrics. And I had this little experiment in my env. Basically I just created one VolumeSnapshot. And the snapshot was created successfully.
When I check my snapshotter metrics, it seems that it has recorded a lot of CreateVolume event. And I checked my driver log, it also has a lot of CreateVolume call like 20ish times.
I checked with @msau42 and she mentioned this has been discussed here:
#165 (comment)
So this is just a follow-up to discuss what should we do about it.
The text was updated successfully, but these errors were encountered: