support for parallel instances on classic breaks all snap remove in lxd

Bug #1873701 reported by Zygmunt Krynicki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
Medium
Unassigned

Bug Description

# On Ubuntu 20.04 with LXD
lxc launch images:debian/sid sid
test -n "$PKG_PROXY" && lxc exec sid -- sh -c "echo \"Acquire::HTTP::Proxy \\\"$PKG_PROXY\\\";\" >/etc/apt/apt.conf.d/00proxy"
lxc exec sid -- apt-get update
lxc exec sid -- apt-get install -y snapd squashfuse fuse
lxc exec sid -- snap install core
lxc exec sid -- snap install --beta open-watcom
lxc exec sid -- snap run open-watcom.owcc-linux -v
lxc exec sid -- snap refresh --channel=edge core
lxc exec sid -- snap run open-watcom.owcc-linux -v
lxc exec sid -- snap remove --purge open-watcom # this fails because umount.ext4 fails

# Debugging with findmnt shows what's going on:
lxc exec sid -- findmnt

# We only umount one "instance" of open-watcom/2 - the other one is there.

├─/snap/core/8935 squashfuse fuse.squashfuse ro,nodev,relatime,user_id=0,group_id=0,allow_other
├─/snap/core18/1705 squashfuse fuse.squashfuse ro,nodev,relatime,user_id=0,group_id=0,allow_other
├─/snap/open-watcom/2 squashfuse fuse.squashfuse ro,nodev,relatime,user_id=0,group_id=0,allow_other
├─/snap /dev/sda5[/var/snap/lxd/common/lxd/storage-pools/default/containers/sid/rootfs/snap]
│ ext4 rw,relatime,errors=remount-ro
│ ├─/snap/core/8935 squashfuse fuse.squashfuse ro,nodev,relatime,user_id=0,group_id=0,allow_other
│ ├─/snap/core18/1705 squashfuse fuse.squashfuse ro,nodev,relatime,user_id=0,group_id=0,allow_other
│ └─/snap/core/9119 squashfuse fuse.squashfuse ro,nodev,relatime,user_id=0,group_id=0,allow_other

Zygmunt Krynicki (zyga)
summary: - support for parallel installs on classic breaks all snap remove in lxd
+ support for parallel instances on classic breaks all snap remove in lxd
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Discussion with Maciek indicates that the key is /snap MS_SHARED mode we try to establish in LXD, not instances.

Changed in snapd:
status: New → Triaged
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.