PXB-3798: Register qemu-x86_64 binfmt on Graviton fleet workers#256
Open
nogueiraanderson wants to merge 1 commit into
Open
PXB-3798: Register qemu-x86_64 binfmt on Graviton fleet workers#256nogueiraanderson wants to merge 1 commit into
nogueiraanderson wants to merge 1 commit into
Conversation
The PXB ARM64 backup tests run x86_64 helper containers (Minio, Vault, KMIP) on the docker-32gb-aarch64 label, served by the ec2-fleet Graviton pool. The worker bootstrap installs and starts docker but no x86 emulation, so those containers fail with exec format error. - Extract the static qemu-x86_64 from a digest-pinned image in Percona's ECR Public mirror (no EPEL dependency on Amazon Linux 2) and register a binfmt_misc handler in the shared arm fleet launch-template user-data. - Authenticated ECR Public pull (worker role grants the token); bounded retry so a pull failure degrades to no-emulation instead of hanging boot. - printf (not echo) emits the binfmt magic verbatim under any shell; magic, mask, and POF flags match the canonical qemu-x86_64 registration; the F flag opens the interpreter for container mount namespaces. - Mount/modprobe binfmt_misc before writing the register node. - Replace find | xargs with find -exec in the awscli cleanup (shellcheck). Applies fleet-wide via the shared jenkins-arm-fleet module. Consumer PXB-3613.
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.
Feature
qemu-x86_64binfmt handler so x86_64 helper containers (Minio, Vault, KMIP) run under emulation on thedocker-32gb-aarch64label.Why
exec format error.ec2FleetCloud.groovy), whose workers boot from this shared launch-template user-data, so the qemu setup belongs here, not the classicinit.groovy.dcloud.qemu-x86_64is extracted from a digest-pinned image in Percona's ECR Public mirror (no EPEL dependency on Amazon Linux 2); pull is authenticated and bounded, registration usesprintfwith canonical magic/mask and thePOFflags.jenkins-arm-fleetmodule.Tickets