Stopping lxd-containers.service hangs

Bug #1566253 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Run a fresh xenial amd64 cloud image, install lxd, and then purge lxd or just do "sudo systemctl stop lxd-containers". This hangs for a long time on

root 2221 0.0 0.6 132820 13484 ? Ssl 11:02 0:00 /usr/bin/lxd shutdown

and eventually fails:

● lxd-containers.service - LXD - container startup/shutdown
   Loaded: loaded (/lib/systemd/system/lxd-containers.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Tue 2016-04-05 11:03:07 UTC; 13s ago
  Process: 2221 ExecStop=/usr/bin/lxd shutdown (code=exited, status=1/FAILURE)
 Main PID: 1866 (code=exited, status=0/SUCCESS)

Apr 05 11:01:26 autopkgtest systemd[1]: Starting LXD - container startup/shutdown...
Apr 05 11:01:26 autopkgtest systemd[1]: Started LXD - container startup/shutdown.
Apr 05 11:02:07 autopkgtest systemd[1]: Stopping LXD - container startup/shutdown...
Apr 05 11:03:07 autopkgtest lxd[2221]: error: LXD still running after 60s timeout.
Apr 05 11:03:07 autopkgtest systemd[1]: lxd-containers.service: Control process exited, code=exited status=1
Apr 05 11:03:07 autopkgtest systemd[1]: Stopped LXD - container startup/shutdown.
Apr 05 11:03:07 autopkgtest systemd[1]: lxd-containers.service: Unit entered failed state.
Apr 05 11:03:07 autopkgtest systemd[1]: lxd-containers.service: Failed with result 'exit-code'.

Note that there are no running/defined containers there, "lxc list" is empty.

This affects both 2.0.0~rc8-0ubuntu2 and the brand new 2.0.0~rc8-0ubuntu3 in xenial.

Tags: xenial
Martin Pitt (pitti)
description: updated
tags: added: xenial
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxd - 2.0.0~rc8-0ubuntu5

---------------
lxd (2.0.0~rc8-0ubuntu5) xenial; urgency=medium

  * Update dependencies:
    - Depend on dnsmasq-base for lxd-bridge
    - Depend on iptables for lxd-bridge
    - Drop dependency on python3 (lxd-images is no more)
    - Drop dependency on gnupg (lxd-images is no more)
  * Recommend "lxd init" at installation time rather than dpkg-reconfigure.

 -- Stéphane Graber <email address hidden> Tue, 05 Apr 2016 17:31:07 -0400

Changed in lxd (Ubuntu):
status: New → Fix Released
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.