lxc-list crashes when passed --nesting with a running nested container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Fix Released
|
Medium
|
Stéphane Graber | ||
Raring |
Won't Fix
|
Medium
|
Stéphane Graber |
Bug Description
== Rationale ==
lxc-list is a compatibility wrapper for lxc-ls printing a deprecation warning before showing its output.
As lxc-ls calls itself to deal with nested containers, that deprecation warning is causing invalid json to be generated and causes a crash.
The solution is to update the distro patch to only show the warning when lxc-ls isn't calling itself.
== Test case ==
1) Create a first container
2) Create a sub-container (switch to the nesting apparmor profile, install lxc in the container, create a sub-container)
3) Run: lxc-list --nesting on the host
4) lxc-list shouldn't crash anymore
== Regression potential ==
The only difference is the addition of a condition for the deprecation warning, so I'm not seeing any room for regression there.
Changed in lxc (Ubuntu): | |
status: | New → Triaged |
Changed in lxc (Ubuntu Raring): | |
status: | New → Triaged |
Changed in lxc (Ubuntu): | |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in lxc (Ubuntu Raring): | |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in lxc (Ubuntu): | |
importance: | Undecided → Medium |
Changed in lxc (Ubuntu Raring): | |
importance: | Undecided → Medium |
This bug was fixed in the package lxc - 0.9.0-0ubuntu4
---------------
lxc (0.9.0-0ubuntu4) saucy; urgency=low
* Fix lxc-list crashing when passed --nesting with nested containers.
(LP: #1177408)
* Fix lxc-ls to show nested containers when using alternate lxcpath.
(LP: #1177412)
* Fix python3 API bug leading to parameter corruption in create and start.
(LP: #1177400)
-- Stephane Graber <email address hidden> Tue, 07 May 2013 10:48:40 -0400