[Bug 931220] [NEW] lxc.conf upstart job fails to spawn containers at boot time

Stéphane Graber stgraber at stgraber.org
Mon Feb 13 01:46:10 UTC 2012

Public bug reported:

root at vorash:~# cat /var/log/upstart/lxc.log 
+ [ -f /etc/default/lxc ]
+ . /etc/default/lxc
+ LXC_AUTO=true
+ LXC_BRIDGE=lxcbr0
+ [ xtrue = xtrue ]
+ ls /etc/lxc/auto/v6test01.conf
+ basename /etc/lxc/auto/v6test01.conf .conf
+ c=v6test01
+ lxc-info -n v6test01
+ grep state
+ grep -q RUNNING
+ lxc-start -l debug -o /run/debug -n v6test01 -f /etc/lxc/auto/v6test01.conf -d

root at vorash:~# cat /run/debug 
      lxc-start 1329097397.477 ERROR    lxc_start - inherited fd 21 on socket:[17416]

The first listing is the output of lxc.conf running with "set -x" and upstart logging with an added "-l debug -o /run/debug" to the lxc-start command line.
The second is the output in /run/debug

Apparently lxc-start is inheriting an fd from upstart causing lxc to
fail to start.

I'm marking this high against lxc and also adding an upstart task in
case we're inheriting this fd from some upstart issue.

** Affects: lxc (Ubuntu)
     Importance: High
         Status: New

** Affects: upstart (Ubuntu)
     Importance: Undecided
         Status: New

** Changed in: lxc (Ubuntu)
   Importance: Undecided => High

** Also affects: upstart (Ubuntu)
   Importance: Undecided
       Status: New

You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.

  lxc.conf upstart job fails to spawn containers at boot time

To manage notifications about this bug go to:

More information about the Ubuntu-server-bugs mailing list