Repository navigation
Closed
Labels
Description
Problem
AlmaLinux 10 x86_64 test tasks fail intermittently at initial_provision with:
fatal: [alts_docker_almalinux_10_x86_64_...]: UNREACHABLE! =>
msg: 'Failed to create temporary directory. ... exited with result 1'
Within one build, some packages of the same source pass and others fail. The result depends on which worker picks the task up.
The container exits right after start.
start_environmentreports success, but the container started withsleep 21600exits after about 0.2 s with exit code 127 and no Docker error.- The Docker Terraform provider only flips
must_runto false in the state, soterraform applystill succeeds. - Ansible's
docker execthen hits a stopped container, which surfaces as the misleading "Failed to create temporary directory" error.
Cause: the AlmaLinux 10 linux/amd64 image requires x86-64-v3.
- The default
almalinux:10amd64 image is built for x86-64-v3 (AVX2 etc.); older CPUs need the separateamd64/v2variant. - On a CPU without x86-64-v3 support, glibc's dynamic loader refuses to run every binary and exits with 127.
- Some of our x86_64 workers don't support x86-64-v3, so every AlmaLinux 10 x86_64 task they pick up fails.
Fix
Route AlmaLinux 10 x86_64 tasks only to x86-64-v3 capable workers through a separate Celery queue.
alts
- New queue architecture
x86_64_v3, so workers declaredocker-x86_64_v3-*andopennebula-x86_64_v3-*queues. - New scheduler setting
queue_arch_overrides: tasks matchingdist_name,dist_versions(full or major version) and the queue architecturearchthey would normally go to are sent toqueue_archinstead.archandqueue_archare validated against the declared queue architectures, so a typo fails at startup instead of leaving tasks in a queue nobody consumes. - The worker side is unchanged: the task still has
dist_arch: x86_64, so containers keep usinglinux/amd64.
albs-deploy
- The scheduler config template renders
queue_arch_overrides, andgroup_vars/scheduler.ymlenables it for AlmaLinux 10 x86_64 →x86_64_v3. - x86-64-v3 capable workers add
docker-x86_64_v3-0to theircelery_queues; the others keepdocker-x86_64-0(anddocker-x86_64_v2-0where applicable), so they keep running AlmaLinux 8/9 and AlmaLinux 10 x86_64_v2 tests. - Related fixes found while deploying:
- The scheduler gets its own
scheduler_rabbitmq_host/scheduler_redis_host. It usedrabbitmq_host/alts_redis_host, which carry the worker-facing addresses when set as extra vars, overriding the scheduler's group_vars. alts_schedulerfailed on ansible-core 2.19 because awhen:condition evaluated a string as a boolean.
- The scheduler gets its own
Rollout
- Release alts and deploy it to the workers, adding
docker-x86_64_v3-0to the x86-64-v3 capable ones. - Check that the new queue has at least one consumer.
- Deploy the scheduler with the override.
If the scheduler goes first, AlmaLinux 10 x86_64 tasks wait in a queue without consumers. A scheduler running old code ignores the unknown queue_arch_overrides setting.
Follow-ups
- ALTS should check after
start_environmentthat the container is actually running and fail with its exit code and logs, instead of failing later in Ansible with an unrelated error. - AlmaLinux 10 i686 tasks map to the x86_64 queue and now go to the v3 queue too, but there is no AlmaLinux 10 i686 image, so they still fail. They should be filtered out before scheduling.
- With a single x86-64-v3 capable worker, AlmaLinux 10 x86_64 tests wait whenever that worker is down.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
anfimovdm commentedon Oct 27, 2026
Implemented in AlmaLinux/alts#236 and AlmaLinux/albs-deploy#44 (deploy after the alts change, see rollout in the issue).