lxc-ls doesn't show nested containers when using an alternate lxc path
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-ls -P /some/path --fancy --nesting" fails to show nested containers and running container information.
This is caused by the lack of lxcpath awareness in the get_ips() API call and by the NESTED environment variable containing the host's lxcpath and not the container's default lxcpath.
== Test case ==
1) Create a container with a sub-container in it
2) Move the container to an alternate path, let's say /tmp/lxc
3) Start it with: lxc-start -P /tmp/lxc -n container -d
4) List the containers: lxc-ls --fancy --nesting -P /tmp/lxc
Expected output is the main container with the sub-container under it, both of which with their status and IP addresses.
== Regression potential ==
This slightly changes the behaviour of lxc-ls in that in the past it'd successfully list sub-containers if they had the exact same custom lxcpath as the host, however this is very unusual and not something upstream feels should be supported at this time.
Instead it's expected that the container containing sub-containers in the default lxcpath will be much more common.
As the get_ips() call was preventing those containers to show up anyway, it's unlikely anyone will notice the small change in behaviour.
Changed in lxc (Ubuntu): | |
status: | New → Triaged |
Changed in lxc (Ubuntu Raring): | |
status: | New → Triaged |
Changed in lxc (Ubuntu): | |
importance: | Undecided → Medium |
Changed in lxc (Ubuntu Raring): | |
importance: | Undecided → Medium |
assignee: | nobody → Stéphane Graber (stgraber) |
Changed in lxc (Ubuntu): | |
assignee: | nobody → Stéphane Graber (stgraber) |
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