support for parallel instances on classic breaks all snap remove in lxd
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:
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.
lxc exec sid -- snap refresh --channel=edge core
lxc exec sid -- snap run open-watcom.
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,
├─/snap/core18/1705 squashfuse fuse.squashfuse ro,nodev,
├─/snap/
├─/snap /dev/sda5[
│ ext4 rw,relatime,
│ ├─/snap/core/8935 squashfuse fuse.squashfuse ro,nodev,
│ ├─/snap/core18/1705 squashfuse fuse.squashfuse ro,nodev,
│ └─/snap/core/9119 squashfuse fuse.squashfuse ro,nodev,
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 |
Changed in snapd: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Discussion with Maciek indicates that the key is /snap MS_SHARED mode we try to establish in LXD, not instances.