lxcfs makes lxc's upstart job hang forever

Bug #1410666 reported by Martin Pitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxcfs (Ubuntu)
Fix Released
High
Stéphane Graber

Bug Description

lxcfs' autopkgtests (https://jenkins.qa.ubuntu.com/job/vivid-adt-lxcfs/) uncover an eternal hang when installing the packages. This can be trivially reproduced in a clean VM with

$ sudo apt install lxcfs lxc
[...]
Setting up lxc (1.1.0~alpha3-0ubuntu1) ...

and then hangs forever.

$ sudo initctl list|grep starting
lxc start/starting
$ sudo initctl status lxcfs
lxcfs start/running, process 3206

upstart doesn't have a lot of logging, but judging from which processes I have the gut feeling that /etc/init/lxcfs.conf actually does start alright:

root 3206 0.0 0.1 22008 2380 ? Ss 08:08 0:00 /usr/bin/lxcfs -s -f -o allow_other /var/lib/lxcfs

Somehow the "start on started cgmanager and starting lxc" seems to cause havoc here.

Martin Pitt (pitti)
Changed in lxcfs (Ubuntu):
assignee: nobody → Stéphane Graber (stgraber)
importance: Undecided → High
tags: added: autopkgtest qa-daily-testing
Revision history for this message
Martin Pitt (pitti) wrote :

For fun I also tried this under systemd, but debian/rules is missing "--with systemd", so the lxcfs job is never enabled. Enabling it manually with

  sudo systemctl enable lxcfs
  sudo systemctl start lxcfs

fails:

$ sudo systemctl status lxcfs -l
● lxcfs.service - FUSE filesystem for LXC
   Loaded: loaded (/lib/systemd/system/lxcfs.service; enabled; vendor preset: enabled)
   Active: failed (Result: start-limit) since Wed 2015-01-14 08:20:10 CET; 8s ago
  Process: 3306 ExecStart=/usr/bin/lxcfs -s -o allow_other /var/lib/lxcfs/ (code=exited, status=255)
 Main PID: 3306 (code=exited, status=255)

Jan 14 08:20:10 autopkgtest systemd[1]: lxcfs.service holdoff time over, scheduling restart.
Jan 14 08:20:10 autopkgtest systemd[1]: Stopping FUSE filesystem for LXC...
Jan 14 08:20:10 autopkgtest systemd[1]: Starting FUSE filesystem for LXC...
Jan 14 08:20:10 autopkgtest systemd[1]: start request repeated too quickly for lxcfs.service
Jan 14 08:20:10 autopkgtest systemd[1]: Failed to start FUSE filesystem for LXC.
Jan 14 08:20:10 autopkgtest systemd[1]: Unit lxcfs.service entered failed state.
Jan 14 08:20:10 autopkgtest systemd[1]: lxcfs.service failed.

"fuse" and "libfuse2" are installed, but perhaps this is missing some other dependency?

Martin Pitt (pitti)
Changed in lxcfs (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxcfs - 0.1-0ubuntu3

---------------
lxcfs (0.1-0ubuntu3) vivid; urgency=medium

  * Fix the upstart and systemd init scripts. (LP: #1410666)
 -- Stephane Graber <email address hidden> Wed, 14 Jan 2015 10:29:28 -0500

Changed in lxcfs (Ubuntu):
status: Fix Committed → 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.