projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d80b93
)
20188: Handle InsufficientVolumeCapacity as quota error.
author
Tom Clegg <tom@curii.com>
Fri, 10 Mar 2023 16:06:25 +0000
(11:06 -0500)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/lib/cloud/ec2/ec2.go
b/lib/cloud/ec2/ec2.go
index aa190a055ac57b6a2ca72d5721326665f55470f4..a74f12561003a6f8763311be4170c3e38e12d8ad 100644
(file)
--- a/
lib/cloud/ec2/ec2.go
+++ b/
lib/cloud/ec2/ec2.go
@@
-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.