lxd no longer works with 2.21

Bug #1657252 reported by Sergio Schvezov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Invalid
Undecided
Zygmunt Krynicki

Bug Description

I updated to 2.21 and lxd no longer works.

sergiusens@lindon:~$ snap --version
snap 2.21
snapd 2.21
series 16
ubuntu 16.04

sergiusens@lindon:~$ snap info lxd
name: lxd
summary: "LXD - the container lightervisor"
publisher: canonical
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.lxc (lxc)
  - lxd
tracking: stable
installed: 2.7 (887) 12MB -
refreshed: 2017-01-12 13:07:24 -0300 ART
channels:
  stable: 2.7 (887) 12MB -
  candidate: 2.7 (887) 12MB -
  beta: 2.7 (887) 12MB -
  edge: git-08e2d82 (923) 12MB -

sergiusens@lindon:~$ snap change 347
Status Spawn Ready Summary
Done 2017-01-17T20:29:27Z 2017-01-17T20:30:08Z Download snap "lxd" (887) from channel "stable"
Done 2017-01-17T20:29:27Z 2017-01-17T20:30:10Z Fetch and check assertions for snap "lxd" (887)
Done 2017-01-17T20:29:27Z 2017-01-17T20:30:10Z Mount snap "lxd" (887)
Done 2017-01-17T20:29:27Z 2017-01-17T20:30:10Z Copy snap "lxd" data
Done 2017-01-17T20:29:27Z 2017-01-17T20:30:11Z Setup snap "lxd" (887) security profiles
Done 2017-01-17T20:29:27Z 2017-01-17T20:30:11Z Make snap "lxd" (887) available to the system
Done 2017-01-17T20:29:27Z 2017-01-17T20:30:11Z Set automatic aliases for snap "lxd"
Done 2017-01-17T20:29:27Z 2017-01-17T20:30:11Z Setup snap "lxd" aliases
Done 2017-01-17T20:29:27Z 2017-01-17T20:30:12Z Start snap "lxd" (887) services
Done 2017-01-17T20:29:27Z 2017-01-17T20:30:12Z Run configure hook of "lxd" snap if present

sergiusens@lindon:~$ sudo systemctl status snap.lxd.daemon.service
● snap.lxd.daemon.service - Service for snap application lxd.daemon
   Loaded: loaded (/etc/systemd/system/snap.lxd.daemon.service; enabled; vendor preset: enabled)
   Active: inactive (dead) (Result: exit-code) since mar 2017-01-17 17:34:38 ART; 36min ago
  Process: 4889 ExecStop=/usr/bin/snap run --command=stop lxd.daemon (code=exited, status=126)
  Process: 4879 ExecStart=/usr/bin/snap run lxd.daemon (code=exited, status=126)
 Main PID: 4879 (code=exited, status=126)

ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:34:38 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Start request repeated too quickly.
ene 17 17:34:38 lindon systemd[1]: Failed to start Service for snap application lxd.daemon.

sergiusens@lindon:~$ sudo journalctl --no-pager -u snap.lxd.daemon.service
-- Logs begin at mar 2017-01-17 17:27:35 ART, end at mar 2017-01-17 18:10:57 ART. --
ene 17 17:27:43 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:27:43 lindon /usr/bin/snap[2651]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:27:43 lindon snap[2651]: cat: /proc/self/attr/current: Permission denied
ene 17 17:27:43 lindon snap[2651]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:27:43 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:27:43 lindon /usr/bin/snap[2703]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:27:43 lindon snap[2703]: cat: /proc/self/attr/current: Permission denied
ene 17 17:27:43 lindon snap[2703]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:27:43 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:27:43 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:27:43 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:27:44 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:27:44 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:27:44 lindon /usr/bin/snap[2796]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:27:44 lindon snap[2796]: cat: /proc/self/attr/current: Permission denied
ene 17 17:27:44 lindon snap[2796]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:27:44 lindon /usr/bin/snap[2816]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:27:44 lindon snap[2816]: cat: /proc/self/attr/current: Permission denied
ene 17 17:27:44 lindon snap[2816]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:27:44 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:27:44 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:27:44 lindon /usr/bin/snap[2876]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:27:44 lindon snap[2876]: cat: /proc/self/attr/current: Permission denied
ene 17 17:27:44 lindon snap[2876]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:27:44 lindon /usr/bin/snap[2912]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:27:44 lindon snap[2912]: cat: /proc/self/attr/current: Permission denied
ene 17 17:27:44 lindon snap[2912]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:27:44 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:27:44 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:27:44 lindon /usr/bin/snap[2961]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:27:45 lindon snap[2961]: cat: /proc/self/attr/current: Permission denied
ene 17 17:27:45 lindon snap[2961]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:27:44 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:27:45 lindon /usr/bin/snap[2993]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:27:45 lindon snap[2993]: cat: /proc/self/attr/current: Permission denied
ene 17 17:27:45 lindon snap[2993]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:27:45 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:27:45 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:27:45 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:27:45 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:27:45 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:27:45 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:27:45 lindon /usr/bin/snap[3055]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:27:45 lindon snap[3055]: cat: /proc/self/attr/current: Permission denied
ene 17 17:27:45 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:27:45 lindon snap[3055]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:27:45 lindon /usr/bin/snap[3082]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:27:45 lindon snap[3082]: cat: /proc/self/attr/current: Permission denied
ene 17 17:27:45 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:27:45 lindon snap[3082]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:27:45 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:27:45 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:27:45 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:27:45 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:27:45 lindon systemd[1]: snap.lxd.daemon.service: Start request repeated too quickly.
ene 17 17:27:45 lindon systemd[1]: Failed to start Service for snap application lxd.daemon.
ene 17 17:29:17 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:30:11 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:30:11 lindon /usr/bin/snap[4017]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:30:12 lindon snap[4017]: cat: /proc/self/attr/current: Permission denied
ene 17 17:30:12 lindon snap[4017]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:30:12 lindon /usr/bin/snap[4028]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:30:12 lindon snap[4028]: cat: /proc/self/attr/current: Permission denied
ene 17 17:30:12 lindon snap[4028]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:30:12 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:30:12 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:30:12 lindon /usr/bin/snap[4041]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:30:12 lindon snap[4041]: cat: /proc/self/attr/current: Permission denied
ene 17 17:30:12 lindon snap[4041]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:30:12 lindon /usr/bin/snap[4052]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:30:12 lindon snap[4052]: cat: /proc/self/attr/current: Permission denied
ene 17 17:30:12 lindon snap[4052]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:30:12 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:30:12 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:30:12 lindon /usr/bin/snap[4063]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:30:12 lindon snap[4063]: cat: /proc/self/attr/current: Permission denied
ene 17 17:30:12 lindon snap[4063]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:30:12 lindon /usr/bin/snap[4074]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:30:12 lindon snap[4074]: cat: /proc/self/attr/current: Permission denied
ene 17 17:30:12 lindon snap[4074]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:30:12 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:30:12 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:30:12 lindon /usr/bin/snap[4086]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:30:12 lindon snap[4086]: cat: /proc/self/attr/current: Permission denied
ene 17 17:30:12 lindon snap[4086]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:30:12 lindon /usr/bin/snap[4096]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:30:12 lindon snap[4096]: cat: /proc/self/attr/current: Permission denied
ene 17 17:30:12 lindon snap[4096]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:30:12 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:30:13 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:30:13 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:30:13 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:30:13 lindon /usr/bin/snap[4107]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:30:13 lindon snap[4107]: cat: /proc/self/attr/current: Permission denied
ene 17 17:30:13 lindon snap[4107]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:30:13 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:30:13 lindon /usr/bin/snap[4117]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:30:13 lindon snap[4117]: cat: /proc/self/attr/current: Permission denied
ene 17 17:30:13 lindon snap[4117]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:30:13 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:30:13 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:30:13 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:30:13 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:30:13 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:30:13 lindon systemd[1]: snap.lxd.daemon.service: Start request repeated too quickly.
ene 17 17:30:13 lindon systemd[1]: Failed to start Service for snap application lxd.daemon.
ene 17 17:34:37 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:34:37 lindon /usr/bin/snap[4790]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:34:37 lindon snap[4790]: cat: /proc/self/attr/current: Permission denied
ene 17 17:34:37 lindon snap[4790]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:34:37 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:34:37 lindon /usr/bin/snap[4800]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:34:37 lindon snap[4800]: cat: /proc/self/attr/current: Permission denied
ene 17 17:34:37 lindon snap[4800]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:34:37 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:34:37 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:34:37 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:34:37 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:34:37 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:34:37 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:34:37 lindon /usr/bin/snap[4812]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:34:37 lindon snap[4812]: cat: /proc/self/attr/current: Permission denied
ene 17 17:34:37 lindon snap[4812]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:34:37 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:34:37 lindon /usr/bin/snap[4824]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:34:37 lindon snap[4824]: cat: /proc/self/attr/current: Permission denied
ene 17 17:34:37 lindon snap[4824]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:34:37 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:34:37 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:34:37 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:34:38 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:34:38 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:34:38 lindon /usr/bin/snap[4835]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:34:38 lindon snap[4835]: cat: /proc/self/attr/current: Permission denied
ene 17 17:34:38 lindon snap[4835]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:34:38 lindon /usr/bin/snap[4846]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:34:38 lindon snap[4846]: cat: /proc/self/attr/current: Permission denied
ene 17 17:34:38 lindon snap[4846]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:34:38 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:34:38 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:34:38 lindon /usr/bin/snap[4857]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:34:38 lindon snap[4857]: cat: /proc/self/attr/current: Permission denied
ene 17 17:34:38 lindon snap[4857]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:34:38 lindon /usr/bin/snap[4868]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:34:38 lindon snap[4868]: cat: /proc/self/attr/current: Permission denied
ene 17 17:34:38 lindon snap[4868]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:34:38 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:34:38 lindon systemd[1]: Started Service for snap application lxd.daemon.
ene 17 17:34:38 lindon /usr/bin/snap[4879]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:34:38 lindon snap[4879]: cat: /proc/self/attr/current: Permission denied
ene 17 17:34:38 lindon snap[4879]: /snap/lxd/887/wrappers/daemon.start: 5: exec: aa-exec: Permission denied
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=126/n/a
ene 17 17:34:38 lindon /usr/bin/snap[4889]: cmd.go:82: DEBUG: not restarting into "/snap/core/current/usr/bin/snap" (no version info): older than "/usr/bin/snap" (2.21)
ene 17 17:34:38 lindon snap[4889]: cat: /proc/self/attr/current: Permission denied
ene 17 17:34:38 lindon snap[4889]: /snap/lxd/887/wrappers/daemon.stop: 5: exec: aa-exec: Permission denied
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Control process exited, code=exited status=126
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Unit entered failed state.
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
ene 17 17:34:38 lindon systemd[1]: Stopped Service for snap application lxd.daemon.
ene 17 17:34:38 lindon systemd[1]: snap.lxd.daemon.service: Start request repeated too quickly.
ene 17 17:34:38 lindon systemd[1]: Failed to start Service for snap application lxd.daemon.

summary: - snapd no longer works with 2.21
+ lxd no longer works with 2.21
Zygmunt Krynicki (zyga)
Changed in snapd:
assignee: nobody → Zygmunt Krynicki (zyga)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

seems this happens on 2.20 as well

I added the following to the apparmor generated profile:

sergiusens@lindon:~$ tail -5 /var/lib/snapd/apparmor/profiles/snap.lxd.daemon
  @{PROC}/@{pid}/attr/current r,
  @{PROC}/self/attr/current r,
  /usr/sbin/aa-exec ixr,

}

reset the profile (apparmor_parser -r) and now get a different error in the service logs:

Jan 18 11:31:38 lindon snap[6404]: aa-exec: ERROR: profile 'unconfined' does not exist

Revision history for this message
Stéphane Graber (stgraber) wrote :

Hmm, what?

On Ubuntu 16.04 with a cleanly installed snapd 2.20:

root@djanet:~# snap install lxd
lxd 2.7 from 'canonical' installed

root@djanet:~# snap version
snap 2.20.1ubuntu1
snapd 2.20.1ubuntu1
series 16
ubuntu 16.04

root@djanet:~# lxc list
+------+-------+------+------+------+-----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
+------+-------+------+------+------+-----------+
root@djanet:~#

Revision history for this message
Stéphane Graber (stgraber) wrote :

With 2.20, we get the following chunk of apparmor generated for the lxd interface:

# Description: Can change to any apparmor profile (including unconfined) thus
# giving access to all resources of the system so LXD may manage what to give
# to its containers. This gives device ownership to connected snaps.
@{PROC}/**/attr/current r,
/usr/sbin/aa-exec ux,

This allows our scripts to check /proc/self/attr/current and then calls to aa-exec without confinement (ux). Your bit of apparmor above is incorrect as it uses (ixr) instead of (ux) and so runs aa-exec under confinement which will obviously have it fail.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Sergio, is the lxd-support interface connected?

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

I didn't see
@{PROC}/**/attr/current r,
/usr/sbin/aa-exec ux,

in the list of rules I got

@jdstrand, this is the result of snap interfaces:

$ snap interfaces |grep lxd
:lxd-support -
lxd:lxd -
:lxd-support -
- lxd:home
- lxd:lxd-support
- lxd:network

$ snap info lxd
name: lxd
summary: "LXD - the container lightervisor"
publisher: canonical
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.lxc (lxc)
  - lxd
tracking: stable
installed: 2.7 (887) 12MB -
refreshed: 2017-01-12 13:07:24 -0300 ART
channels:
  stable: 2.7 (887) 12MB -
  candidate: 2.7 (887) 12MB -
  beta: 2.7 (887) 12MB -
  edge: git-08e2d82 (923) 12MB -
sergiusens@lindon:~$

This all started after I did this:

$ sudo apt autoremove --purge lxd
$ snap remove lxd
$ sudo apt install snapd=2.21 snap-confine=2.21 ubuntu-core-launch=2.21
$ snap install lxd

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

@Sergio, that paste isn't great (lost all column formatting) but it looks none of the interfaces are connected. It should be auto-connected as there is a snap declaration in the store:

{ "lxd-support": { "allow-auto-connection": "true", "allow-installation": "true" } }

You can manually connect with:

$ sudo connect lxd:lxd-support
$ sudo connect lxd:home
$ sudo connect lxd:network

It sounds like there is a bug in 2.21 regarding auto-connecting?

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

Yeah

$ sudo snap connect lxd:lxd-support
$ sudo snap connect lxd:home
$ sudo snap connect lxd:network

did the trick, thanks.

Not sure what to do with this bug, was still surprised by this!

Revision history for this message
Sergio Schvezov (sergiusens) wrote :

this might be related to the fact that I have `core` and `ubuntu-core` installed on my system and looking at http://paste.ubuntu.com/23827545/ it seems that every snap I installed since then has failed to connect

Revision history for this message
Zygmunt Krynicki (zyga) wrote : Re: [Bug 1657252] Re: lxd no longer works with 2.21

Samuele just figured out that lack of auto-connection is indeed caused
by having two core snaps around.

On Thu, Jan 19, 2017 at 1:38 PM, Sergio Schvezov
<email address hidden> wrote:
> this might be related to the fact that I have `core` and `ubuntu-core`
> installed on my system and looking at http://paste.ubuntu.com/23827545/
> it seems that every snap I installed since then has failed to connect
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1657252
>
> Title:
> lxd no longer works with 2.21
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/snapd/+bug/1657252/+subscriptions

Changed in snapd:
status: New → Triaged
Revision history for this message
Adam Stokes (adam-stokes) wrote :

I also had a bug report similar to this issue filed for conjure-up:

https://github.com/conjure-up/conjure-up/issues/691

Also an askubuntu question showing similar errors:

https://askubuntu.com/questions/884568/ubuntu-16-04-1-snap-install-conjure-up-error

Revision history for this message
Michael Vogt (mvo) wrote :

We auto-transition ubuntu-core to core now and our snapd is at a much more recent version - is this still an issue?

Changed in snapd:
status: Triaged → Incomplete
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Closing due to old snapd version where this was a problem, ongoing automatic testing of lxd and snapd and no activity from the reporter.

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