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

Retry os_updates tasks prone to failure #46

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Conversation

tobiasmcnulty
Copy link
Member

Some apt tasks in the os_updates role are prone to failure on some VMs. I think the apt process from the previous task sticks around for a few seconds even after the success is received by Ansible. This seems to work around it, for example:

TASK [caktus.hosting_services.os_updates : Remove dependencies that are no longer required] ***
Thursday 09 January 2025  14:08:18 -0500 (0:00:07.784)       0:00:25.391 ****** 
<snip>
FAILED - RETRYING: [db1_testing]: Remove dependencies that are no longer required (5 retries left).
<snip>
ok: [db1_testing]

Also, we might as well make os_updates_apt_cache_valid_time configurable.

@tobiasmcnulty tobiasmcnulty requested a review from copelco January 9, 2025 19:12
@tobiasmcnulty tobiasmcnulty merged commit ef43482 into main Jan 9, 2025
2 checks passed
@tobiasmcnulty tobiasmcnulty deleted the apt-retries branch January 9, 2025 21:30
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.

2 participants