-
Notifications
You must be signed in to change notification settings - Fork 807
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
CreateVolume API continues to be requested even after related objects are deleted on v1.2.0 #1022
Comments
Did you mean to link #982 ? The logs are coming from the external provisioner controller library. However the version of external-provisioner/csi-provisioner sidecar is the same (v2.1.1) for driver versions 1.1-1.2. For the time the driver is printing these errors, is it provisioning volumes for any other PVCs? (trying to understand if the cache is stale somehow) Also, based on my understanding of the error the driver is not actually sending CreateVolume API requests since the context deadline exceeded, but it is sending some pointless kubernetes API requests, plus of course being noisy |
yes, I could see the new pvc was provisioning while the driver was printing this error, so as the test progressed, the number of By the way, I tried to reproduce this issue again to check verbose log today, but the issue was not reproduced. Looking at the CloudTrail events, when When the issue was reproduced, it seems like the cache data related to pvc was handled differently because of the error code from |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close |
@k8s-triage-robot: 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. |
/kind bug
What happened?
Tried to create PV encrypted by KMS key with PVC and it got failed because of the permission issue. After the first attempt at CreateVolume failed, I could see the controller retrying to create the volume and failing over and over again.
From the second try, CreateVolume failed with InternalError, I have checked the internal log that the error occurred because the client token is associated with a resource that is already deleted.
So I deleted the pod and pvc via kubectl (checked with kube-apiserver-audit log that the pvc deleted successfully), however, 'Createvolume' API continues to be requested even after related objects are deleted.
. controller log - first/second attempt
. Delete the pod and pvc - the request of pvc deletion has made audit log
Still seeing
Retrying syncing claim "1bef4ab2-2ee9-4a25-89af-c8d85675d6db"
I was able to end this by restarting ebs-csi-controller.
Also I have tested with v1.1.3/v1.1.2, the issue not happened. Looks like this issue has appeared after adding the feature 'utilize latest go sdk to ensure createVolume idempotency' #982.
What you expected to happen?
'Createvolume' should not be requested after pvc deleted.
How to reproduce it (as minimally and precisely as possible)?
Create SC with kmsKeyId, which is not provided enough permission to noderole
encrypted: 'true'
kmsKeyId: arn:aws:kms:ap-northeast-2:xxxxxxxxx:key/xxxxxxxxxx
volumeBindingMode: WaitForFirstConsumer
Create PVC/Pod -> failed to create PV, PVC is still pending
Delete PVC/Pod
You can see ebs-csi-controller keep retrying.
Anything else we need to know?:
Environment
kubectl version
): 1.17, 1.20The text was updated successfully, but these errors were encountered: