snap refresh of core and other snaps fails

Bug #1871591 reported by Ondrej Kubik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Incomplete
Undecided
Zygmunt Krynicki

Bug Description

snap version
snap 2.44.2+git1700.0aba8dd~ubuntu16.04.1
snapd 2.44.2+git1700.0aba8dd~ubuntu16.04.1
series 16
ubuntu 18.04
kernel 4.15.0-88-generic

More info about failed change and snap causing it
https://paste.ubuntu.com/p/n9kvmtMDgp/

Revision history for this message
Ondrej Kubik (ondrak) wrote :

snap remove also fails:
snap remove dragonboard-builder
error: cannot perform the following tasks:
- Disconnect dragonboard-builder:ssh-public-keys from core:ssh-public-keys (cannot update mount namespace of snap "dragonboard-builder": cannot update preserved namespace of snap "dragonboard-builder": cannot update snap namespace: no such file or directory)

snap disconnect dragonboard-builder:home
error: cannot perform the following tasks:
- Disconnect dragonboard-builder:home from core:home (cannot update mount namespace of snap "dragonboard-builder": cannot update preserved namespace of snap "dragonboard-builder": cannot update snap namespace: no such file or directory)

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

In case the pastebin goes away, the principal factor is:

base: core18
confinement: strict
layout:
  /etc/mke2fs.conf:
    bind-file: $SNAP_COMMON/etc/mke2fs.conf
  /etc/mtools.conf:
    bind-file: $SNAP_COMMON/etc/mtools.conf

Changed in snapd:
status: New → In Progress
assignee: nobody → Zygmunt Krynicki (zyga)
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I cannot reproduce the issue with the following snap (attached).

Ondra, can you check if the test snap reproduces the issue on your system?

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

I've attempted to expand the reproducer but failed to see any problems:

I've pushed my code as https://github.com/zyga/snapd/commit/fd7033d86c0237ee887084554205f20a1014d3cc

Changed in snapd:
status: In Progress → Incomplete
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.