20188: Handle InsufficientVolumeCapacity as quota error.
authorTom Clegg <tom@curii.com>
Fri, 10 Mar 2023 16:06:25 +0000 (11:06 -0500)
committerTom Clegg <tom@curii.com>
Fri, 10 Mar 2023 16:06:25 +0000 (11:06 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

lib/cloud/ec2/ec2.go

index aa190a055ac57b6a2ca72d5721326665f55470f4..a74f12561003a6f8763311be4170c3e38e12d8ad 100644 (file)
@@ -541,10 +541,11 @@ func (err rateLimitError) EarliestRetry() time.Time {
 }
 
 var isCodeCapacity = map[string]bool{
+       "InsufficientFreeAddressesInSubnet": true,
        "InsufficientInstanceCapacity":      true,
-       "VcpuLimitExceeded":                 true,
+       "InsufficientVolumeCapacity":        true,
        "MaxSpotInstanceCountExceeded":      true,
-       "InsufficientFreeAddressesInSubnet": true,
+       "VcpuLimitExceeded":                 true,
 }
 
 // isErrorCapacity returns whether the error is to be throttled based on its code.