Support ansible-test integration tests for arm64 #906
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.
SUMMARY
The
ansible-test integration
tests are currently failing when run with the--docker
environment on a Debian-based OS running onarm64
architecture.This is because the step that adds the Docker repository to
apt
is currently hardcoded to add only theamd64
repository.So, in later steps when we try to use
apt
to find and install thedocker-ce-cli
package, this step fails onarm64
hosts with this error message:No package matching 'docker-ce-cli' is available
.This PR updates the test setup steps for Debian-based hosts to detect the host's architecture and add a repository that supports this architecture.
ISSUE TYPE
COMPONENT NAME
tests/integration/targets/setup_docker/tasks/Debian.yml
ADDITIONAL INFORMATION
How to reproduce the issue:
ansible-test integration --docker
on a Debian-based host witharm64
architectureBEHAVIOR BEFORE/AFTER THIS FIX
Before:
After: