Unable to remove snap with content interface (with robust namespace update)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Medium
|
Zygmunt Krynicki |
Bug Description
I've been testing the maas snap with robust-
I'm now getting the following error, when trying to remove the snap.
(this is from a fresh bionic container)
root@b:~# snap install core core18
2020-03-
core 16-2.43.3 from Canonical✓ installed
core18 20200124 from Canonical✓ installed
root@b:~# snap set core experimental.
root@b:~# snap get -d core
{
"cloud": {
},
},
"refresh": {
},
"seed": {
}
}
root@b:~# snap install maas --channel=2.7/edge
maas (2.7/edge) 2.7.0-8235-
root@b:~# snap remove maas
error: cannot perform the following tasks:
- Disconnect maas:network-bind from core:network-bind (cannot update mount namespace of snap "maas": cannot update preserved namespace of snap "maas": cannot update snap namespace: read-only file system)
root@b:~# snap list
Name Version Rev Tracking Publisher Notes
core 16-2.43.3 8689 stable canonical✓ core
core18 20200124 1668 stable canonical✓ base
maas 2.7.0-8235-
maas-cli 0.6.5 13 stable canonical✓ -
summary: |
- Unable to remove snap with content interface (with robust namespace on) + Unable to remove snap with content interface (with robust namespace + update) |
Changed in snapd: | |
assignee: | nobody → Zygmunt Krynicki (zyga) |
status: | New → In Progress |
Changed in snapd: | |
milestone: | none → 2.45 |
importance: | Undecided → Medium |
Changed in snapd: | |
milestone: | 2.45 → 2.44.1 |
Changed in snapd: | |
status: | In Progress → Fix Committed |
ubuntu@ bionic- clean:~ $ snap changes
ID Status Spawn Ready Summary
28 Done today at 10:28 UTC today at 10:28 UTC Change configuration of "core" snap
29 Done today at 10:28 UTC today at 10:29 UTC Install "maas" snap from "edge" channel
30 Done today at 10:28 UTC today at 10:28 UTC Running service command for snap "maas"
31 Error today at 10:29 UTC today at 10:29 UTC Remove "maas" snap
ubuntu@ bionic- clean:~ $ snap change 31 observe from snapd:hardware- observe observe module- observe from snapd:kernel- module- observe control from snapd:network- control observe from snapd:network- observe
Status Spawn Ready Summary
Undone today at 10:29 UTC today at 10:29 UTC Stop snap "maas" services
Undone today at 10:29 UTC today at 10:29 UTC Run remove hook of "maas" snap if present
Done today at 10:29 UTC today at 10:29 UTC Disconnect interfaces of snap "maas"
Hold today at 10:29 UTC today at 10:29 UTC Save data of snap "maas" in automatic snapshot set #1
Hold today at 10:29 UTC today at 10:29 UTC Remove aliases for snap "maas"
Hold today at 10:29 UTC today at 10:29 UTC Make snap "maas" unavailable to the system
Hold today at 10:29 UTC today at 10:29 UTC Remove security profile for snap "maas" (5171)
Hold today at 10:29 UTC today at 10:29 UTC Remove data for snap "maas" (5171)
Hold today at 10:29 UTC today at 10:29 UTC Remove snap "maas" (5171) from the system
Hold today at 10:29 UTC today at 10:29 UTC Disconnect maas:time-control from snapd:time-control
Error today at 10:29 UTC today at 10:29 UTC Disconnect maas:network-bind from snapd:network-bind
Hold today at 10:29 UTC today at 10:29 UTC Disconnect maas:maas-cli from maas-cli:maas-cli
Hold today at 10:29 UTC today at 10:29 UTC Disconnect maas:mount-observe from snapd:mount-observe
Hold today at 10:29 UTC today at 10:29 UTC Disconnect maas:network from snapd:network
Hold today at 10:29 UTC today at 10:29 UTC Disconnect maas:hardware-
Hold today at 10:29 UTC today at 10:29 UTC Disconnect maas:system-observe from snapd:system-
Hold today at 10:29 UTC today at 10:29 UTC Disconnect maas:avahi-observe from snapd:avahi-observe
Hold today at 10:29 UTC today at 10:29 UTC Disconnect maas:kernel-
Hold today at 10:29 UTC today at 10:29 UTC Disconnect maas:network-
Hold today at 10:29 UTC today at 10:29 UTC Disconnect maas:home from snapd:home
Hold today at 10:29 UTC today at 10:29 UTC Disconnect maas:network-
....... ....... ....... ....... ....... ....... ....... ....... ....... .......
Disconnect maas:network-bind from snapd:network-bind
2020-03- 17T10:29: 49Z ERROR cannot update mount namespace of snap "maas": cannot update preserved namespace of snap "maas": cannot update snap namespace: read-only file system