debian-forge-composer/internal/cloud/awscloud
Sanne Raymaekers d5912259a0 cloud/awscloud: rework create fleet retry logic
The current path sometimes launches two instances, which is problematic
because the rest of the secure instance code expects exactly one
instance. A security group could be attached to both instances, and
would block the worker from launching any more SIs, as it tries to
delete the old security group first, which is still held by one of the
surplus SIs which didn't get terminated.

Only retry if:
- on "UnfulfillableCapacity" or "InsufficientInstanceCapacity" error codes;
- there wasn't an instance launched anyway.

If either of these checks fail, do not try to launch another one, and
just fail the job.
2024-10-24 10:29:26 +02:00
..
autoscaling.go osbuild-worker: use aws sdk v2 for asg scale-in protection 2024-08-20 15:32:40 +02:00
awscloud.go cloud/aws: move maintenance calls to separate file 2024-10-23 10:32:57 +02:00
awscloud_test.go cloud/aws: move maintenance calls to separate file 2024-10-23 10:32:57 +02:00
client-interfaces.go osbuild-worker: use aws sdk v2 for asg scale-in protection 2024-08-20 15:32:40 +02:00
export_test.go cloud/awscloud: rework create fleet retry logic 2024-10-24 10:29:26 +02:00
maintenance.go cloud/aws: add maintenance functions for secure instance cleanup 2024-10-23 10:32:57 +02:00
maintenance_test.go cloud/aws: move maintenance calls to separate file 2024-10-23 10:32:57 +02:00
mocks_test.go cloud: fixed typo UnfulfillableCapacity 2024-09-26 18:09:45 +02:00
secure-instance.go cloud/awscloud: rework create fleet retry logic 2024-10-24 10:29:26 +02:00
secure-instance_test.go cloud/awscloud: rework create fleet retry logic 2024-10-24 10:29:26 +02:00