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

feat(runners): add retry logic to default install and start script for dnf operations #3787

Merged
merged 3 commits into from
Mar 14, 2024

Conversation

jkruse14
Copy link
Contributor

Background


This is a continuation of work done in #3748

There seems to be a race condition some where with the user-data script and the EC2 starting up and locking RPM. This issue is seen elsewhere, not necessarily with this repo's user-data, see the following:

Amazon Linux 2023 - issue with installing packages with cloud-init

dnf/yum both fails while being executed on instance bootstrap on Amazon Linux 2023

Also, #3741

Changes Made


Added a loop to retry if the rpm lock file is found which sleeps for 5 seconds then retries again with a total of 5 iterations. This logic is now added to the user-data.sh for the upgrade-minimal operation and installation of docker, cloudwatch-agent, and curl.

Testing Done


In progress. I'd like to open this up to review while testing.

@jkruse14
Copy link
Contributor Author

@npalm another one for you. Same logic as the previous pr with retry logic

@jkruse14
Copy link
Contributor Author

jkruse14 commented Mar 5, 2024

@npalm @ScottGuymer - need some help here please

Copy link
Member

@npalm npalm left a comment

Choose a reason for hiding this comment

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

Looks good, need some time to test.

@npalm npalm changed the title feat: add retry logic for dnf operations feat(runners): add retry logic to default install and start script for dnf operations Mar 13, 2024
@npalm npalm merged commit 6a8e1f0 into philips-labs:main Mar 14, 2024
3 checks passed
npalm pushed a commit that referenced this pull request Mar 14, 2024
🤖 I have created a release *beep* *boop*
---


##
[5.9.0](v5.8.0...v5.9.0)
(2024-03-14)


### Features

* **runners:** add retry logic to default install and start script for
dnf operations
([#3787](#3787))
([6a8e1f0](6a8e1f0))
@jkruse14
* Update default runtime from nodejs18.x to nodejs20.x
([#3791](#3791))
([11ace32](11ace32))


### Bug Fixes

* **lambda:** bump the aws group in /lambdas with 6 updates
([#3803](#3803))
([eedbf52](eedbf52))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: forest-releaser[bot] <80285352+forest-releaser[bot]@users.noreply.github.com>
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.

None yet

2 participants