Description of problem: pvc from azuredisk taking time to attach to the node. Version-Release number of selected component (if applicable): OpenShift Container Platform Version 4.7 How reproducible: It is happening for newly created pvc volume. From kubelet logs saw following repetitave logs for ~4 min --- operationExecutor.VerifyControllerAttachedVolume started for volume "pvc-xxxxx" Error: "Volume has not been added to the list of VolumesInUse in the node's volume status for volume \"pvc-xxxxx\" --- Saw once volume attach to the node it mounted immediately. --- Controller attach succeeded for volume pvc-xxxx operationExecutor.MountVolume started for volume pvc-xxx MountVolume.WaitForAttach succeeded for volume Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: ~ ~ ~
Idea: in VolumeManager reconciler, add an informer for Node object and check the informer Node object volumesAttached (every 100 ms) *before* trying the first VerifyControllerAttachedVolume. This way, we start the exp. backoff when there is a good chance the volume is already attached.
This is already tracked as 2023500, let's continue there. *** This bug has been marked as a duplicate of bug 2023500 ***