snap auto-import causes part-probe to hang while running in a VMware VM

Bug #1834723 reported by Lee Trager on 2019-06-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

A customer is trying to setup a Jenkins job running on Ubuntu 18.04 in VMware ESXi 6.7 to build the VMware ESXi 6.7 MAAS image with packer-maas[1]. I have not been able to reproduce this issue on metal.

packer-maas is a Packer[2] template which uses QEMU to install VMware ESXi onto a disk image. After the installation is complete a post-processing script[3] is run which mounts the disk image and injects Curtin hooks. The post install script uses qemu-nbd to load the disk image and partprobe to ensure device entries are created for all partitions before mounting.

When partprobe is run it calls udevadm settle which hangs causing the build to fail. While partprobe is running /usr/bin/snap auto-import --mount=/dev/nbd4pX keeps spawning for the various partitions. Because udevadm settle never becomes unstuck the build fails.

If I remove snapd from the system I can successfully build the image with udevadm blocking. I can only produce this on a fresh install, apt purge snapd; apt install snapd seems to fix this as well. The install I reproduced on was from MAAS so this may be an issue with how the cloud-image is being generated.


Zygmunt Krynicki (zyga) on 2019-10-01
affects: snappy → snapd
Changed in snapd:
status: New → Triaged
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers