-
Notifications
You must be signed in to change notification settings - Fork 122
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
machine-controller-manager is not waiting for detach of CSI PVs #508
Comments
/area storage |
/assign @ialidzhikov |
Great catch, thanks for pointing out @ialidzhikov. This should essentially mean, with 1.18+ k8s versions, the serialized eviction will not be effective anymore. cc @ggaurav10 @amshuman-kr /priority blocker |
/milestone v0.35.0 |
Something to be kept in mind - gardener/gardener-extension-provider-gcp#172 (comment). |
Btw the interface method
The root cause could be a little more than that, the dangling volumeAttachments are probably because machines are force-deleted during hibernation[no-drain], but this needs investigation as mentioned by @prashanth26 above. |
Also, I think the machine could be force deleted due to multiple reasons, and the |
Likely related: kubernetes-csi/external-attacher#215 |
What happened:
Currently machine-controller-manager Driver interface has a func
GetVolNames
which for given slice of PVs, returns the provider volume id. For example this func looks like this for the aws driver:https://github.com/gardener/machine-controller-manager/blob/2177dc7df83197c70624f243463d4f2c58c14017/pkg/driver/driver_aws.go#L492_L505
Note that this funcs relies on
.spec.awsElasticBlockStore.volumeID
to be present.This func only works for in-tree PVs where the the volume spec looks:
A CSI PV looks like:
Currently
GetVolNames
won't return any CSI PV volumeID and machine-controller-manager won't wait any CSI PV to be detached during machine deletion.What you expected to happen:
machine-controller-manager to wait for detach of CSI PVs.
How to reproduce it (as minimally and precisely as possible):
Create a v1.18 or v1.19 Shoot.
Create a PVC
Ensure that drain of Machine is not waiting for detach
Anything else we need to know:
Environment:
The text was updated successfully, but these errors were encountered: