vSphere unable to detachVolume if node VM has been deleted #61707
We had a pod with persistent storage. We drained the node. The node VM was deleted. The PV was not attached to the node that the Pod migrated too. The kube-controller-manager logs contained the following.
What you expected to happen:
The PV can be attached to the node it was migrated to.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
The issue seems to be in the call to getVSphereInstance. This will return an error if the Node doesn't exist. Precluding the logic on line 804-813 from being executed.
A restart of the kube-controller-manager resolved the issue.
The following e2e test is not triggered in vSphere environments -