add sleep 5 before exponential backoff in waitUntilVolumeAvailable

This commit is contained in:
Ruslan Gustomiasov 2019-06-24 19:58:46 +02:00
parent ee5d623fe6
commit 2eeb863da8

View File

@ -225,8 +225,7 @@ const (
createTagFactor = 2.0
createTagSteps = 9
// volumeCreate* is configuration of exponential backoff for created volume to check
// it has not been silently removed by AWS.
// volumeCreate* is configuration of exponential backoff for created volume.
// On a random AWS account (shared among several developers) it took 4s on
// average, 8s max.
volumeCreateInitialDelay = 5 * time.Second
@ -2420,6 +2419,7 @@ func (c *Cloud) waitUntilVolumeAvailable(volumeName KubernetesVolumeID) error {
// Unreachable code
return err
}
time.Sleep(5 * time.Second)
backoff := wait.Backoff{
Duration: volumeCreateInitialDelay,
Factor: volumeCreateBackoffFactor,