[Bug 1177412] [NEW] lxc-ls doesn't show nested containers when using an alternate lxc path

Stéphane Graber stgraber at stgraber.org
Tue May 7 14:47:30 UTC 2013


Public bug reported:

== 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.

** Affects: lxc (Ubuntu)
     Importance: Medium
     Assignee: Stéphane Graber (stgraber)
         Status: Triaged

** Affects: lxc (Ubuntu Raring)
     Importance: Medium
     Assignee: Stéphane Graber (stgraber)
         Status: Triaged

** Changed in: lxc (Ubuntu)
       Status: New => Triaged

** Also affects: lxc (Ubuntu Raring)
   Importance: Undecided
       Status: New

** Changed in: lxc (Ubuntu Raring)
       Status: New => Triaged

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

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

** Changed in: lxc (Ubuntu Raring)
     Assignee: (unassigned) => Stéphane Graber (stgraber)

** Changed in: lxc (Ubuntu)
     Assignee: (unassigned) => Stéphane Graber (stgraber)

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1177412

Title:
  lxc-ls doesn't show nested containers when using an alternate lxc path

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1177412/+subscriptions



More information about the Ubuntu-server-bugs mailing list