Lesstep
GitHub Actions · ansible-test · Checked November 4, 2026

ansible-test 2.22 and devel: "mount -o remount,rw /sys/fs/cgroup/ && pkill sleep" returned exit status 1 on GitHub's Ubuntu runners

ansible-test runs sanity, unit and integration tests of a collection in its default test container. It starts that container with env sleep 60 ; exec /sbin/init, and a privileged helper container then remounts the cgroup filesystem inside it and wakes it with pkill sleep. On GitHub's ubuntu-24.04 and ubuntu-26.04 runners, now on kernel 7.0.0-1017-azure, that helper often exits 1, and ansible-test stops before any test runs (ansible/ansible #87731, open).

What it looks like

Starting new "ansible-test-controller-ENwvCcfN" container.
Run command: docker run ... --cgroupns private -dt ... quay.io/ansible/default-test-container:v2.23-2 sh -c 'env sleep 60 ; exec /sbin/init'
Run command: docker run --pid host --privileged --name ansible-test-init-controller-ENwvCcfN --rm quay.io/ansible/ansible-test-utility-container:3.6.0 nsenter -t 2937 -m -p sh -c 'mount -o remount,rw /sys/fs/cgroup/ && pkill sleep'
FATAL: Host job(s) failed. See previous error(s) for details.
ERROR: Host DockerConfig(...) job failed:
Command "docker run --pid host --privileged ... 'mount -o remount,rw /sys/fs/cgroup/ && pkill sleep'" returned exit status 1.

The log is from a run of the SAP collections (ansible-test-gh-action #138), shortened. The random suffix of the container names and the process ID after nsenter -t change from run to run.

Who it hits

Why the kernel is the suspect

The failing jobs all ran on 7.0.0-1017-azure. The issue opened on October 21, after the 24.04 image moved from 6.17.0-1022-azure to that kernel. For a few days in late October the jobs passed again on images with the 6.17 kernel, and they started failing again when the 20261026 image brought 7.0 back. A maintainer of ansible-test saw the same errors on the project's own Azure Pipelines VMs after moving them to that kernel, and moved them back.

What in the kernel causes it is not known yet. One explanation in the issue is a race: pkill sleep runs before env has started sleep, finds nothing to wake and returns 1. A pull request that retries the wake for up to 30 seconds (ansible/ansible #87864) was closed without being merged, after a maintainer asked for the cause instead of a retry.

Fixes until there is a real one

Run the 2.22 and devel jobs on ubuntu-22.04, whose kernel is 6.8.0-1070-azure, and keep the others on ubuntu-latest. Use the name of your own matrix variable:

jobs:
  sanity:
    runs-on: ${{ contains(fromJSON('["stable-2.22", "devel"]'), matrix.ansible) && 'ubuntu-22.04' || 'ubuntu-latest' }}

A pull request in amazon.ai does this for its devel jobs (amazon.ai #90). Pinning ubuntu-24.04 does not help: that image has the new kernel too.

Or let the devel jobs fail without failing the workflow, as community.sonic and vmware.vmware did (continue-on-error: ${{ matrix.ansible == 'devel' }} on the job). That keeps the stable jobs, which still gate merges, but hides real devel failures until the issue is fixed.

Telling it apart

Other 26.04 failures

See failed jobs from IntelliJ IDEA

Pipeline Inbox for GitHub Actions Workflows, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the runs of all your repositories in an IDE tool window, with their jobs and steps, so a matrix where only the 2.22 and devel jobs went red stands out, and your current branch's runs are in the status bar. Reading is free; re-running failed jobs, cancelling, running workflows and reviewing deployments are Pro (US$1.50 a month, with a 30-day trial).

Get it on JetBrains Marketplace

GitHub and GitHub Actions are trademarks of GitHub, Inc.; Ansible is a registered trademark of Red Hat, Inc.; Ubuntu is a trademark of Canonical Ltd.; Linux is the registered trademark of Linus Torvalds; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with, sponsored or endorsed by GitHub, Inc., Red Hat, Canonical, the Linux Foundation or JetBrains.

More: "The ubuntu-latest label will migrate to Ubuntu 26" · MongoDB on kernel 7.0.0-1017-azure · GitHub Actions plugins for IntelliJ IDEA compared · 日本語