Skip to content

Wait for RODISK to be attached

Aaron Graubert requested to merge retry-mount into master

Created by: julianhess

When attaching the same disk concurrently to many instances, there can be a lag between gcloud compute instances attach-disk and the block device actually appearing.

Here, we explicitly check for /dev/disks/by-id/<disk name> every 10 seconds up to 12 retries before proceeding with the mount.

Merge request reports