• Kubernetes Submit Queue's avatar
    Merge pull request #40118 from vmware/FixdetachVolumeOnNodeOff · 052f3b9d
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 41037, 40118, 40959, 41084, 41092)
    
    Fix for detach volume when node is not present/ powered off
    
    Fixes #33061 
    When a vm is reported as no longer present in cloud provider and is deleted by node controller, there are no attempts to detach respective volumes. For example, if a VM is powered off or paused, and pods are migrated to other nodes. In the case of vSphere, the VM cannot be started again because the VM still holds mount points to volumes that are now mounted to other VMs.
    
    In order to re-join this node again, you will have to manually detach these volumes from the powered off vm before starting it.
    
    The current fix will make sure the mount points are deleted when the VM is powered off. Since all the mount points are deleted, the VM can be powered on again.
    
    This is a workaround proposal only. I still don't see the kubernetes issuing a detach request to the vsphere cloud provider which should be the case. (Details in original issue #33061 )
    
    @luomiao @kerneltime @pdhamdhere @jingxu97 @saad-ali
    052f3b9d
Name
Last commit
Last update
..
providers Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
cloud.go Loading commit data...
doc.go Loading commit data...
plugins.go Loading commit data...