Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Fix ec2 instance leak when tagging fails #2502

Merged
merged 1 commit into from
Nov 10, 2021
Merged

Fix ec2 instance leak when tagging fails #2502

merged 1 commit into from
Nov 10, 2021

Conversation

davidvonthenen
Copy link
Contributor

What this PR does / why we need it

This fixes a small ec2 instance leak when using self-hosted runners. This doesn't happen often (like once every day), but it does happen which leads to manual clean up for orphaned ec2 instances. If the tagging fails, delete the instance. Then (like normal) let the outer loop start the create-tag loop all over again.

Details for the Release Notes (PLEASE PROVIDE)

Fix ec2 instance leak when tagging fails

Which issue(s) this PR fixes

NA

Describe testing done for PR

NA

Special notes for your reviewer

NA

@davidvonthenen davidvonthenen requested a review from a team November 10, 2021 22:06
@github-actions github-actions bot added the owner/release-eng Work executed by VMware release engineering team label Nov 10, 2021
Copy link
Contributor

@jpmcb jpmcb left a comment

Choose a reason for hiding this comment

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

Nice! A little delay never hurt!

@davidvonthenen davidvonthenen merged commit b492b1e into vmware-tanzu:main Nov 10, 2021
@davidvonthenen davidvonthenen deleted the fix/leakec2instances branch November 29, 2021 17:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-not-required owner/release-eng Work executed by VMware release engineering team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants