Unprivileged lxc will not start after being stopped

Bug #1552355 reported by Christopher Townsend
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Using lxc package 2.0.0~rc4-0ubuntu1 on a Xenial host, I can start an unprivileged Xenial LXC, but if I stop it, it will not start again without rebooting the host.

I've attached the debug output.

Revision history for this message
Christopher Townsend (townsend) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1552355] [NEW] Unprivileged lxc will not start after being stopped

I can reproduce that here on my laptop.

 status confirmed
 importance high

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Actually in my case it actually segfaults

Changed in lxc (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

There are two problems.

First is that cgfs is not falling back to $container-1 when $container cgroup is not available for reuse.

Second is that cgroups are not being cleaned up on container shutdown. lxcfs will need to prune those by hand either at shutdown or startup. Doing so at shutdown is only problematic if lxc crashes and isn't able to fullfill its duty.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc - 2.0.0~rc5-0ubuntu1

---------------
lxc (2.0.0~rc5-0ubuntu1) xenial; urgency=medium

  * New usptream release (2.0.0~rc5)
    - Fix a number of cgfs issues (LP: #1549363, LP: #1543697, LP: #1552355)
    - Fix attach failing to allocate a tty (LP: #1551960)
    - Fix LXC rebooting the container despite post-stop failure
    - Fix lxc-copy output (LP: #1551935)
    - Documentation, manpagen and manpage translations update
    - Update to the plamo template

 -- Stéphane Graber <email address hidden> Thu, 03 Mar 2016 11:05:25 -0500

Changed in lxc (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.