Okay, I've spend the last 24h digging into that issue, and here are my findings:
* I confirm I can only reproduce the issue with 6.8 kernels, not with 6.5. Just 
to be sure, I've also tested 6.8.0-32.32 in kernel team's PPA, and it has the 
issue too.
* Changing `--cpus` or `--ram-size` in `autopkgtest-virt-qemu` doesn't change 
anything.
* The code responsible for this in autopkgtest is a wonderful piece of black 
magic: most lives in `virt/autopkgtest-virt-qemu`, and the main part is the 
`runcmd` script being crafted in the `make_auxverb` function. The hanging is 
the `# wait until command has exited` loop, that never exits.

The most funny part is the new workaround that I found.
Run the following from your host that runs `autopkgtest`. Obvious change the 
port number depending on which free port was available for `autopkgtest`.
```
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 10022 
ubuntu@localhost stat /run/autopkgtest/shared/job\*/stdin
```
For some reason, `stat`ing that file in the testbed makes the loop exit and 
everything continues as normal, meaning you can use the test results normally.
I've seen this work at least 20 times on my machine, but I'd like someone else 
to confirm that this workaround indeed works.

This bug is becoming more and more interesting, stay tuned for more
adventures!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2056461

Title:
  autopkgtest-virt-qemu on noble images sometimes hangs doing copydown

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/2056461/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to