-
Notifications
You must be signed in to change notification settings - Fork 808
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
Persistent Volumes being created twice #455
Comments
This issue is fixed by this: kubernetes-csi/external-provisioner@3184db6 And we are picking up 1.5.0 external provisioner in the next release |
Perfect, thank you @leakingtapan for the prompt response! When do you plan to do the next release? And is there any work-around in the meantime? |
It looks like the bug-fix for this was back-ported to the external-provisioner version 1.3.1 so I assume I can update to use that in the meantime: |
I am getting this issue with with K8S 1.15.11 on EKS, how does one change the external provisioner version to one with the fix? Edit: my mistake! I had the |
Kustomization file on your master branch is still referencing to version 1.3.0 of csi-provisioner (https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/deploy/kubernetes/overlays/stable/kustomization.yaml). |
/kind bug
What happened?
I am running a cluster using kops version 1.15.2 on AWS. The default storageclass is
gp2
. Last week we enabled the EBS CSI driver per the docs in this repository. We did not enable theCSIMigration
orCSIMigrationAWS
feature gates as we are not yet ready to migrate over the "in-tree" storageclass (gp2
). While the driver itself works when we create a PVC referencing a StorageClass similar to this where theprovisioner
is set toebs.csi.aws.com
we also are seeing an unintended side-effect of duplicate persistent volumes being created whenever we create a PVC referencing the "in tree" (gp2
) storage class. Specifically, the "in tree" storage class creates on PV and the AWS EBS CSI driver creates another. I can see in the logs that the AWS EBS CSI driver is creating the PV, even though we have not migrated the "in-tree" StorageClass to use the CSI driver:What you expected to happen?
Not create duplicate volumes when using in-tree storage class (
gp2
).How to reproduce it (as minimally and precisely as possible)?
Deploy a cluster via kops to AWS using version
1.15.2
. Deploy the AWS EBS CSI driver to this cluster following the instructions on the README.md in this repository.Create a new PVC similar to this:
Log into the AWS console and view the EBS volumes. Notice there are two volumes created at almost the exact same time - both have tags referencing the Kubernetes PersistentVolume.
Anything else we need to know?:
When this situation occurs, it seems that the majority of the time, the EBS volume provisioned by the "in-tree" storage class is the one that actually gets attached to the Kubernetes persistent volume. However, there have been situations where the volume provisioned by the EBS CSI driver is the one that is attached.
Also, here is what the
gp2
storage class looks like on this cluster, for reference:Environment
Kubernetes version (use
kubectl version
):$ kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.3", GitCommit:"b3cbbae08ec52a7fc73d334838e18d17e8512749", GitTreeState:"clean", BuildDate:"2019-11-14T04:24:34Z", GoVersion:"go1.12.13", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.2", GitCommit:"f6278300bebbb750328ac16ee6dd3aa7d3549568", GitTreeState:"clean", BuildDate:"2019-08-05T09:15:22Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
Driver version:
amazon/aws-ebs-csi-driver:v0.4.0
The text was updated successfully, but these errors were encountered: