-
Notifications
You must be signed in to change notification settings - Fork 617
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
[manila-csi-plugin] Cannot extend the same volume twice #1666
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Comments
/assign |
m-k8s
pushed a commit
to m-k8s/cloud-provider-openstack
that referenced
this issue
Oct 12, 2021
…Volumes.Delete /closes kubernetes#1666
Thanks for reporting this and for working on a fix, @alexisries - we'll get the patch reviewed. |
jingczhang
pushed a commit
to nokia/cloud-provider-openstack
that referenced
this issue
Oct 18, 2021
…from pendingVolumes (kubernetes#1667) * [manila-csi-plugin] in ControllerExpandVolume fix bad key for pendingVolumes.Delete /closes kubernetes#1666 * [manila-csi-plugin] use share.Name to identify volumes in pendingVolumes.Delete
gman0
pushed a commit
to gman0/cloud-provider-openstack
that referenced
this issue
Oct 26, 2021
…from pendingVolumes (kubernetes#1667) * [manila-csi-plugin] in ControllerExpandVolume fix bad key for pendingVolumes.Delete /closes kubernetes#1666 * [manila-csi-plugin] use share.Name to identify volumes in pendingVolumes.Delete
powellchristoph
pushed a commit
to powellchristoph/cloud-provider-openstack
that referenced
this issue
Jan 19, 2022
…from pendingVolumes (kubernetes#1667) * [manila-csi-plugin] in ControllerExpandVolume fix bad key for pendingVolumes.Delete /closes kubernetes#1666 * [manila-csi-plugin] use share.Name to identify volumes in pendingVolumes.Delete
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a BUG REPORT or FEATURE REQUEST?:
/kind bug
What happened:
When I extend the volume a second time I get this error message:
What you expected to happen:
Resize volume succeeded
How to reproduce it:
kubectl -n test-csi-nfs patch pvc client-pvc -p '{"spec":{"resources":{"requests":{"storage":"2Gi"}}}}'
kubectl -n test-csi-nfs patch pvc client-pvc -p '{"spec":{"resources":{"requests":{"storage":"3Gi"}}}}'
There is an error :
Anything else we need to know?:
At line 451 of the controllerserver.go file, I think we should use the value of
req.GetName()
as the key to remove the volume from the pendingVolumes list instead of the value ofshare.Name
So when we extended the volume the first time, this volume always stayed in the pendingVolumes list while the volume is ready
https://github.com/kubernetes/cloud-provider-openstack/blob/master/pkg/csi/manila/controllerserver.go#L448-L451
Environment:
The text was updated successfully, but these errors were encountered: