Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

awscloud/secure-instance: fix cleaning up fleets with creation errors #4489

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

croissanne
Copy link
Member

@croissanne croissanne commented Nov 22, 2024

By surfacing the output even in case of an error, the fleet ID and
instance ID can be extracted if present. Thus the instance can be
terminated before its dependencies are deleted.


We're seeing some behaviour where create fleet is not retried and subsequently the SI cleanup fails due to the security group already being tied to an existing instance. There is no error that an instance was launched anyway.

@croissanne croissanne marked this pull request as draft November 22, 2024 14:56
@croissanne croissanne removed the request for review from schuellerf November 22, 2024 14:56
@croissanne croissanne marked this pull request as ready for review November 22, 2024 15:16
@croissanne croissanne changed the title awscloud/secure-instance: log error code comparisons awscloud/secure-instance: fix cleaning up fleets with creation errors Nov 22, 2024
schuellerf
schuellerf previously approved these changes Nov 22, 2024
Copy link
Contributor

@schuellerf schuellerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just minor things

internal/cloud/awscloud/secure-instance.go Show resolved Hide resolved
internal/cloud/awscloud/secure-instance.go Outdated Show resolved Hide resolved
@croissanne croissanne marked this pull request as draft November 22, 2024 19:54
We're seeing some behaviour where create fleet is not retried and
subsequently the SI cleanup fails due to the security group already
being tied to an existing instance. There is no error that an instance
was launched anyway.
By surfacing the output even in case of an error, the fleet ID and
instance ID can be extracted if present. Thus the instance can be
terminated before its dependencies are deleted.
@croissanne croissanne force-pushed the error-code-comparisons branch from 0583dfa to 4a8773c Compare November 25, 2024 10:56
@croissanne croissanne marked this pull request as ready for review November 25, 2024 10:56
Copy link
Contributor

@schuellerf schuellerf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thanks!

@croissanne croissanne enabled auto-merge (rebase) November 26, 2024 11:51
@ondrejbudai ondrejbudai disabled auto-merge November 26, 2024 11:52
@ondrejbudai ondrejbudai merged commit 54ffc08 into osbuild:main Nov 26, 2024
47 of 50 checks passed
@croissanne croissanne deleted the error-code-comparisons branch November 26, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants