[chore] Upgrade CI workers for ansible tests #5737
Merged
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.
Migrating CI runners from Ubuntu 20.04 to Ubuntu 24.04 means that the host VM for Ansible tests is switched from cgroups v1 to cgroups v2. This is a significant difference because we use docker containers to run Ansible Molecule tests connected to cgroups on the host VM. Making cgroups v1 OSs work in docker containers on a host with groups v2 appeared to be not possible based on my trials.
I also tried to migrate to the full VM virtualization, from Docker to Vagrant. This made some particular VM boxes fail and increased test run time by 50%.
Eventually, I kept the old Ubuntu 20.04 workers to test OSs with groups v1 and the latest Ubuntu 24.04 to test OSs with groups v2. Once the old VMs are EOL'd, we can drop Ubuntu 20.04 workers.