[Merge] ~dbungert/livecd-rootfs:adt-hang-vagrant into livecd-rootfs:ubuntu/master

Dan Bungert mp+449308 at code.launchpad.net
Tue Aug 22 14:20:26 UTC 2023


The proposal to merge ~dbungert/livecd-rootfs:adt-hang-vagrant into livecd-rootfs:ubuntu/master has been updated.

Commit message changed to:

cpc/hooks: fix hang when running adt locally

While attempting to run autopkgtest locally, the test stops at the
following command:
ssh-keygen -t ed25519 -C ubuntu_vagrant_insecure_key -b 4096 -f
/tmp/tmp.VuAfnsBv1G/vagrant_insecure_key

This is found in live-build/ubuntu-cpc/hooks.d/base/vagrant.binary

It appears to be waiting for a passphrase, as running that outside of
adt gives a more helpful "Enter passphrase" prompt.

Explicitly set the passphrase to empty with the `-N` argument.

An example invocation of autopkgtest, which produces a hang without this fix or successful build with this fix:

autopkgtest --no-built-binaries --test-name=default-bootstraps --shell --apt-upgrade livecd-rootfs -- qemu autopkgtest-mantic-amd64.img --ram-size=8192 --cpus=16

the .img file was created with autopkgtest-buildvm-ubuntu-cloud

For more details, see:
https://code.launchpad.net/~dbungert/livecd-rootfs/+git/livecd-rootfs/+merge/449308
-- 
Your team Ubuntu Core Development Team is subscribed to branch livecd-rootfs:ubuntu/master.




More information about the Ubuntu-reviews mailing list