-
Notifications
You must be signed in to change notification settings - Fork 336
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
Migrated PVs are provisioned when migration is off #340
Comments
/assign @ddebroy @davidz627 I see a few ways to fix this:
|
/kind bug |
PV controller would need to remove the annotation when user switches the flag off. Feasible, but perhaps racy, external provisioner may be already provisioning a PV. |
Hmm, what about reusing And the race between in-tree and external provisioners when user disables the migration can be fixed as part of kubernetes-sigs/sig-storage-lib-external-provisioner#55 (there IMO always be some race). |
When the migration is enabled in the PV controller, we already set So why does the provisioner checks for |
I don't think it checks for that. It needs to "know" the in-tree plugin name so that it can pick up the in-tree PVC's and process them in the queue (since it always needs to look at the PVCs to check whether they are migrated or not). The one thing that was missing IMO was ignoring the volume if |
This bug was introduced in https://github.com/kubernetes-sigs/sig-storage-lib-external-provisioner/pull/34/files . Instead of loosening/replacing the |
Add CHANGELOG for v3.4
In AWS cluster with all alpha features off and AWS EBS CSI driver installed, the CSI driver provisions also PVs for in-tree storage class.
The CSI driver should provision only volumes for the driver (ebs.csi.aws.com) and not for
kubernetes.io/aws-ebs
, because Kubernetes in-tree volume plugin provisions a volume too.Storage class:
Claim:
CSI provisioner log:
Provisioner version: v1.3.0-0-g27750ab1
Kubernetes: 1.16 RC1 (but IMO it's not related)
@ddebroy @msau42 @davidz627, IMO this is pretty serious.
/priority important-soon
The text was updated successfully, but these errors were encountered: