You have been subscribed to a public bug:

The delay test in fence-agents fails on stonking/resolute/questing
because the autopkgtest testbed switched from a Nova VM to an LXD
container.

The test runs this first, with set -e:

  sudo sysctl -w net.ipv4.ping_group_range="0 2147483647"

On the VM this worked:

  581s net.ipv4.ping_group_range = 0 2147483647
  delay PASS

On LXD it fails:

  342s sysctl: setting key "net.ipv4.ping_group_range": Invalid argument
  343s delay FAIL non-zero exit status 1

In an unprivileged container, gid 2147483647 is outside the user
namespace mapping, so the write returns EINVAL. With set -e the test
exits before running any fence agent.

Same diff between the two runs is just the backend: -- ssh ... nova
(Apr, pass) vs -- lxd ... (Jun, fail). Not a fence-agents or libvirt
change.

Fix is in the test: add isolation-machine to the delay stanza in
debian/tests/control, or drop set -e for that sysctl / append || true.

Log

run 20260412_003435_5ecb6

  0s autopkgtest [00:14:51]: starting date and time: 2026-04-12 00:14:51+0000
  0s autopkgtest [00:14:51]: git checkout: 4b346b80 nova: make wait_reboot 
return success even when a no-op
  0s autopkgtest [00:14:51]: host 
juju-7f2275-prod-proposed-migration-environment-15; command line: 
/home/ubuntu/autopkgtest/runner/autopkgtest \
       --output-dir /tmp/autopkgtest-work.w3qm0zpe/out \
       --timeout-copy=6000 --needs-internet=try \
       --setup-commands 
/home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh \
       --apt-pocket=proposed=src:python-novaclient \
       --apt-upgrade fence-agents \
       --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 \
       --env=ADT_TEST_TRIGGERS=python-novaclient/2:18.12.0-3 \
       -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- \
          --flavor autopkgtest-cpu2-ram4-disk20-amd64 \
          --security-groups 
autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@sto01-3.secgroup 
\
          --name 
adt-resolute-amd64-fence-agents-20260412-001451-juju-7f2275-prod-proposed-migration-environment-15-f7c96c69-5005-4ab4-a933-955a5d3ef3b0
 \
          --image adt/ubuntu-resolute-amd64-server \
          --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 \
          --net-id=net_prod-autopkgtest-workers-amd64 \
          -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/
  4s Creating nova instance adt-resolute-amd64-fence-agents-...-f7c96c69-... 
from image adt/ubuntu-resolute-amd64-server-20260411.img (UUID 
b2a979ac-5e61-4955-81d1-e8561f0939f0)...
  93s autopkgtest [00:16:24]: testbed dpkg architecture: amd64
  93s autopkgtest [00:16:24]: testbed apt version: 3.1.16
  93s autopkgtest [00:16:24]: @@@@@@@@@@@@@@@@@@@@ test bed setup
  94s autopkgtest [00:16:25]: testbed release detected to be: None
  94s autopkgtest [00:16:25]: updating testbed package index (apt update)

  ...

  4485:581s net.ipv4.ping_group_range = 0 2147483647

run 20260605_132841_717af

  0s autopkgtest [13:21:25]: starting date and time: 2026-06-05 13:21:25+0000
  0s autopkgtest [13:21:25]: git checkout: 86153c41 build-lxd: increase boot 
timeouts to help image builds in emulation
  0s autopkgtest [13:21:25]: host 
juju-bc7b8f-prod-autopkgtest-orchestrator-ps7-29; command line: 
/home/ubuntu/autopkgtest/runner/autopkgtest \
       --output-dir /tmp/autopkgtest-work.82wxiv3x/out \
       --timeout-copy=6000 --needs-internet=try \
       --env http_proxy=http://egress.ps7.internal:3128 \
       --env https_proxy=http://egress.ps7.internal:3128 \
       --env 
no_proxy=127.0.0.1,localhost,::1,10.151.0.0/16,10.152.0.0/16,10.156.0.0/16 \
       --apt-pocket=proposed=src:libvirt-hwe,src:libvirt \
       --apt-upgrade fence-agents \
       --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 \
       '--env=ADT_TEST_TRIGGERS=libvirt-hwe/12.0.0-1ubuntu5.1 
libvirt/12.0.0-1ubuntu5.1' \
       -- lxd --delete-existing --name dispatcher-8-remote-amd64-26-3 \
          -r remote-amd64-26 \
          remote-amd64-26:autopkgtest/ubuntu/resolute/amd64 \
          -c limits.cpu=2 -c limits.memory=4GiB -d root,size=20GiB
  6s autopkgtest [13:21:31]: testbed dpkg architecture: amd64
  6s autopkgtest [13:21:31]: testbed apt version: 3.2.0
  6s autopkgtest [13:21:31]: @@@@@@@@@@@@@@@@@@@@ test bed setup
  6s autopkgtest [13:21:31]: updating testbed package index (apt update)

  ...
  4611:342s sysctl: setting key "net.ipv4.ping_group_range": Invalid argument
  4613:343s delay                FAIL non-zero exit status 1

** Affects: fence-agents (Ubuntu)
     Importance: Undecided
         Status: New

-- 
fence-agents test fails with lxd
https://bugs.launchpad.net/bugs/2156416
You received this bug notification because you are a member of Ubuntu Bugs, 
which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to