Latest snapd in Trusty is broken after reboot because of systemd units start ordering
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Rafael David Tinoco | ||
snapd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
Linux systemdlivetnew 4.4.0-96-generic #119~14.04.1-Ubuntu SMP Wed Sep 13 08:40:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
snap-confine 2.27.5~14.04
snapd 2.27.5~14.04
--------------
root@systemdliv
error: no interfaces found
root@systemdliv
core 16-2.27.6 from 'canonical' installed
root@systemdliv
Slot Plug
:account-control -
:alsa -
:autopilot-
:avahi-observe -
:bluetooth-control -
:broadcom-
:browser-support -
...
---- reboot ----
root@systemdliv
Name Version Rev Developer Notes
core 16-2.27.6 2898 canonical core
root@systemdliv
Slot Plug
:account-control -
:alsa -
:autopilot-
:avahi-observe -
:bluetooth-control -
:broadcom-
:browser-support -
...
root@systemdliv
hello-world 6.3 from 'canonical' installed
root@systemdliv
Slot Plug
:account-control -
:alsa -
:autopilot-
:avahi-observe -
:bluetooth-control -
:broadcom-
:browser-support -
---- reboot ----
root@systemdliv
Name Version Rev Developer Notes
core 16-2.27.6 2898 canonical core
hello-world 6.3 27 canonical -
root@systemdliv
error: no interfaces found
root@systemdliv
root@systemdliv
Slot Plug
:account-control -
:alsa -
:autopilot-
:avahi-observe -
:bluetooth-control -
:broadcom-
:browser-support -
This also happens with other snaps like canonical-
Changed in snapd: | |
status: | New → In Progress |
assignee: | nobody → Rafael David Tinoco (inaddy) |
Changed in snapd: | |
status: | In Progress → Fix Committed |
Looks to me that the interface inter-dependencies should be also reflected in the start order in systemd unit files that are created per every installed snap:
After installing hello-world, if I add the needed relationships:
[Unit] 2898.mount snapd.service snap-core- 2898.mount
Description=Mount unit for hello-world
After=snapd.service snap-core-
Requires=
[Mount] lib/snapd/ snaps/hello- world_27. snap snap/hello- world/27
What=/var/
Where=/
Type=squashfs
Options=nodev,ro
[Install] multi-user. target
WantedBy=
(note After/Requires being added to the default one)
I get no problems on every reboot:
root@systemdliv etnew:system$ snap list
Name Version Rev Developer Notes
core 16-2.27.6 2898 canonical core
hello-world 6.3 27 canonical -
root@systemdliv etnew:system$ snap interfaces introspection - asic-control -
Slot Plug
:account-control -
:alsa -
:autopilot-
:avahi-observe -
:bluetooth-control -
:broadcom-
:browser-support -
I'll test adding a second snap now, and then adding the relationship.