Comment 8 for bug 1797218

Revision history for this message
Scott Moser (smoser) wrote : Re: boot hangs in curtin vmtest

I noticed that the seeding of snaps in the cloud image also caused regression
of the open-iscsi test [1] as seen from [2].

If anyone wants to debug this the open-iscsi test case provides doc on
how to run it at [3] and I have a gist on it at [4].

Alternatively you can use uvt-kvm or multipass or any openstack or cloud
instance to reproduce fairly easily.
Here's how:

## Start a multipass guest.

$ name=cosmic1
$ multipass launch daily:cosmic "--name=$name"

## write overlayroot.local.conf to enable overlayroot=tmpfs
$ multipass exec $name sudo mv /etc/overlayroot.local.conf /etc/overlayroot.local.conf.dist
$ multipass exec $name sudo sh -c 'echo overlayroot=tmpfs > /etc/overlayroot.local.conf'

## reboot
$ multipass exec $name sudo reboot
..
$ multipass shell $name

## To switch back to non-overlayroot, do
$ multipass exec $name -- sudo overlayroot-chroot rm -f /etc/overlayroot.local.conf
$ multipass exec $name sudo reboot

--
[1] https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-cosmic/cosmic/amd64/o/open-iscsi/20181010_213729_f6165@/log.gz
[2] http://autopkgtest.ubuntu.com/packages/o/open-iscsi/cosmic/amd64
[3] https://git.launchpad.net/~usd-import-team/ubuntu/+source/open-iscsi/tree/debian/tests/README-boot-test.md
[4] https://gist.github.com/smoser/ffb519d00bafd2105abbc180c3410e76