• Kubernetes Submit Queue's avatar
    Merge pull request #67140 from NetApp/multipath-race-fix · 1dfe2e8b
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue (batch tested with PRs 67017, 67190, 67110, 67140, 66873). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.
    
    Add wait loop for multipath devices to appear
    
    It takes a variable amount of time for the multipath daemon
    to create /dev/dm-XX in response to new LUNs being discovered.
    The old iscsi_util code only discovered the multipath device
    if it was created quickly enough, but in a significant number
    of cases, kubelet would grab one of the individual paths and
    put a filesystem it on before multipathd could construct a
    multipath device.
    
    This change waits for the multipath device to get created for
    up to 10 seconds, but only if the PV actually had more than
    one portal.
    
    fixes #60894
    
    ```release-note
    Dynamic provisions that create iSCSI PVs can ensure that multipath is used by specifying 2 or more target portals in the PV, which will cause kubelet to wait up to 10 seconds for the multipath device. PVs with just one portal continue to work as before, with kubelet not waiting for the multipath device and just using the first disk it finds.
    ```
    1dfe2e8b
Name
Last commit
Last update
..
api Loading commit data...
apis Loading commit data...
auth Loading commit data...
capabilities Loading commit data...
client Loading commit data...
cloudprovider Loading commit data...
controller Loading commit data...
credentialprovider Loading commit data...
features Loading commit data...
fieldpath Loading commit data...
generated Loading commit data...
kubeapiserver Loading commit data...
kubectl Loading commit data...
kubelet Loading commit data...
kubemark Loading commit data...
master Loading commit data...
printers Loading commit data...
probe Loading commit data...
proxy Loading commit data...
quota Loading commit data...
registry Loading commit data...
routes Loading commit data...
scheduler Loading commit data...
security Loading commit data...
securitycontext Loading commit data...
serviceaccount Loading commit data...
ssh Loading commit data...
util Loading commit data...
version Loading commit data...
volume Loading commit data...
watch/json Loading commit data...
windows/service Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...