Repository navigation
(maint) wait for systemd before apt-get update on Debian and Ubuntu - #306
Open
albatrossflavour wants to merge 2 commits into
Open
albatrossflavour wants to merge 2 commits into
albatrossflavour wants to merge 2 commits into
Conversation
The docker task only waited for systemd to finish starting on EL containers. On a litmusimage Ubuntu 22.04 container started the way this task starts it, apt-get update during boot fails in about 14 of 15 runs. The errors are "Unknown error executing apt-key" and "jammy-security InRelease is not signed". Once systemd is running it didn't fail in 15. The wait is now a function both branches call. It gives up after a minute, so a container whose systemd never settles doesn't hang the provision.
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## main #306 +/- ##
==========================================
- Coverage 91.42% 81.50% -9.93%
==========================================
Files 7 8 +1
Lines 525 638 +113
==========================================
+ Hits 480 520 +40
- Misses 45 118 +73 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…temd by PID 1's name, with specs for the task Inside [[ ]], > compares strings, so the 20-poll minimum was really 3, and from 100 to 199 the loop couldn't exit. It now uses -gt. PID 1 is matched by /proc/1/comm instead of the binary's path, which differs on images without a merged /usr. The task returns before its main code when it isn't the program being run, as lxd.rb does, so spec/tasks/docker_spec.rb can load it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The docker task now waits for systemd on Debian and Ubuntu as it already did on EL. Started with the task's own docker run flags, Ubuntu 22.04 failed apt-get update with "Unknown error executing apt-key" in 14 of 15 local runs without the wait and none with it.