Upgrading from 2.26.14 to 2.27.1 (currently in the beta channel) is failing for me, looks to be related to the lxd snap?
⟫ snap version
snap 2.26.14
snapd 2.26.14
series 16
ubuntu 17.04
kernel 4.10.0-32-generic
⟫ snap refresh --beta core
INFO cannot auto connect core:network-bind (slot auto-connection), candidates found: "canonical-livepatch:network-bind, redacted:network-bind"
error: cannot perform the following tasks:
- Setup snap "core" (2660) security profiles (cannot setup mount for snap "lxd": cannot update mount namespace of snap "lxd": cannot update preserved namespace of snap "lxd": cannot update snap namespace: cannot save current mount profile of snap "lxd": open /run/snapd/ns: no such file or directory)
- Setup snap "core" (2660) security profiles (cannot update mount namespace of snap "lxd": cannot update preserved namespace of snap "lxd": cannot update snap namespace: cannot save current mount profile of snap "lxd": open /run/snapd/ns: no such file or directory)
- Setup snap "core" (2660) security profiles (phase 2) (cannot setup mount for snap "lxd": cannot update mount namespace of snap "lxd": cannot update preserved namespace of snap "lxd": cannot update snap namespace: cannot save current mount profile of snap "lxd": open /run/snapd/ns: no such file or directory)
- Setup snap "core" (2660) security profiles (phase 2) (cannot update mount namespace of snap "lxd": cannot update preserved namespace of snap "lxd": cannot update snap namespace: cannot save current mount profile of snap "lxd": open /run/snapd/ns: no such file or directory)
⟫ snap info lxd
name: lxd
summary: "System container manager and API"
publisher: canonical
contact: https://github.com/lxc/lxd/issues
description: |
LXD is a container manager for system containers.
It offers a REST API to remotely manage containers over the network, using an
image based workflow and with support for live migration.
Images are available for all Ubuntu releases and architectures as well as for
a wide number of other Linux distributions.
LXD containers are lightweight, secure by default and a great alternative to
virtual machines.
commands:
- lxd.benchmark
- lxd.check-kernel
- lxd.lxc
- lxd
tracking: stable
installed: 2.16 (3346) 36MB -
refreshed: 2017-08-12 01:30:43 +0100 BST
channels:
stable: 2.16 (3346) 36MB -
candidate: 2.16 (3346) 36MB -
beta: ↑
edge: git-9855c7b (3361) 37MB -
2.0/stable: 2.0.10 (2943) 12MB -
2.0/candidate: 2.0.10 (2943) 12MB -
2.0/beta: ↑
2.0/edge: git-c4b7c8d (2951) 12MB -
⟫ snap change 892
Status Spawn Ready Summary
Undone 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Download snap "core" (2660) from channel "beta"
Done 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Fetch and check assertions for snap "core" (2660)
Undone 2017-08-16T12:24:03Z 2017-08-16T12:24:19Z Mount snap "core" (2660)
Undone 2017-08-16T12:24:03Z 2017-08-16T12:24:18Z Stop snap "core" services
Undone 2017-08-16T12:24:03Z 2017-08-16T12:24:18Z Remove aliases for snap "core"
Undone 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Make current revision for snap "core" unavailable
Undone 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Copy snap "core" data
Error 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Setup snap "core" (2660) security profiles
Undone 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Make snap "core" (2660) available to the system
Error 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Setup snap "core" (2660) security profiles (phase 2)
Hold 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Set automatic aliases for snap "core"
Hold 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Setup snap "core" aliases
Hold 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Start snap "core" (2660) services
Hold 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Remove data for snap "core" (2312)
Hold 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Remove snap "core" (2312) from the system
Hold 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Clean up "core" (2660) install
Hold 2017-08-16T12:24:03Z 2017-08-16T12:24:17Z Run configure hook of "core" snap if present
......................................................................
Make current revision for snap "core" unavailable
2017-08-16T13:24:17+01:00 INFO Requested daemon restart.
......................................................................
Setup snap "core" (2660) security profiles
2017-08-16T13:24:14+01:00 INFO cannot auto connect core:home (slot auto-connection), candidates found: "lxd:home, redacted2:home"
2017-08-16T13:24:14+01:00 INFO cannot auto connect core:network (slot auto-connection), candidates found: "lxd:network, emoj:network, redacted:network, redacted2:network"
2017-08-16T13:24:14+01:00 INFO cannot auto connect core:network-bind (slot auto-connection), candidates found: "canonical-livepatch:network-bind, redacted:network-bind"
2017-08-16T13:24:17+01:00 ERROR cannot setup mount for snap "lxd": cannot update mount namespace of snap "lxd": cannot update preserved namespace of snap "lxd": cannot update snap namespace: cannot save current mount profile of snap "lxd": open /run/snapd/ns: no such file or directory
2017-08-16T13:24:17+01:00 ERROR cannot update mount namespace of snap "lxd": cannot update preserved namespace of snap "lxd": cannot update snap namespace: cannot save current mount profile of snap "lxd": open /run/snapd/ns: no such file or directory
......................................................................
Make snap "core" (2660) available to the system
2017-08-16T13:24:14+01:00 INFO Requested daemon restart.
......................................................................
Setup snap "core" (2660) security profiles (phase 2)
2017-08-16T13:24:17+01:00 ERROR cannot setup mount for snap "lxd": cannot update mount namespace of snap "lxd": cannot update preserved namespace of snap "lxd": cannot update snap namespace: cannot save current mount profile of snap "lxd": open /run/snapd/ns: no such file or directory
2017-08-16T13:24:17+01:00 ERROR cannot update mount namespace of snap "lxd": cannot update preserved namespace of snap "lxd": cannot update snap namespace: cannot save current mount profile of snap "lxd": open /run/snapd/ns: no such file or directory