Skip to content

ALTS: schedule AlmaLinux 10 x86_64 tests only on x86-64-v3 capable workers #563

Closed

Description

@anfimovdm

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_environment reports success, but the container started with sleep 21600 exits after about 0.2 s with exit code 127 and no Docker error.
  • The Docker Terraform provider only flips must_run to false in the state, so terraform apply still succeeds.
  • Ansible's docker exec then 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:10 amd64 image is built for x86-64-v3 (AVX2 etc.); older CPUs need the separate amd64/v2 variant.
  • 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 declare docker-x86_64_v3-* and opennebula-x86_64_v3-* queues.
  • New scheduler setting queue_arch_overrides: tasks matching dist_name, dist_versions (full or major version) and the queue architecture arch they would normally go to are sent to queue_arch instead. arch and queue_arch are 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 using linux/amd64.

albs-deploy

  • The scheduler config template renders queue_arch_overrides, and group_vars/scheduler.yml enables it for AlmaLinux 10 x86_64 → x86_64_v3.
  • x86-64-v3 capable workers add docker-x86_64_v3-0 to their celery_queues; the others keep docker-x86_64-0 (and docker-x86_64_v2-0 where 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 used rabbitmq_host/alts_redis_host, which carry the worker-facing addresses when set as extra vars, overriding the scheduler's group_vars.
    • alts_scheduler failed on ansible-core 2.19 because a when: condition evaluated a string as a boolean.

Rollout

  1. Release alts and deploy it to the workers, adding docker-x86_64_v3-0 to the x86-64-v3 capable ones.
  2. Check that the new queue has at least one consumer.
  3. 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_environment that 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.

Activity

  1. added
    bug
    on Oct 27, 2026
  2. self-assigned this
    on Oct 27, 2026
  3. added
    test-system
    on Oct 27, 2026
  4. anfimovdm commented on Oct 27, 2026

    @anfimovdm
    Author

    Implemented in AlmaLinux/alts#236 and AlmaLinux/albs-deploy#44 (deploy after the alts change, see rollout in the issue).

  5. moved this from In progress to Done in AlmaLinux Build Systemon Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugtest-system

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions