lxc-ls with ephemeral containers reports too many containers

Bug #1060550 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Expired
Medium
Unassigned

Bug Description

use lxc-start-ephemeral to start four ephemeral containers
then lxc-ls reports twice as many as it should:

$ ls /var/lib/lxc/
lptests lptests-temp-1FaKWwb lptests-temp-c8jcW0W lptests-temp-qoZ6ncr lptests-temp-wbvIQLE
jenkins@ip-10-218-67-147:~$ watch lxc-ls

$ lxc-ls Wed Oct 3 lptests
lptests-temp-1FaKWwb
lptests-temp-c8jcW0W
lptests-temp-qoZ6ncr
lptests-temp-wbvIQLE
lptests-temp-1FaKWwb
lptests-temp-c8jcW0W
lptests-temp-qoZ6ncr
lptests-temp-wbvIQLE

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

Thanks for reporting this bug.

Is this on quantal, precise, or something else?

lxc-ls reports two rows of results - the first containing all containers, the second the active ones. It looks as though your output got squashed into one column containing all results. What happens when you do "lxc-ls | tail -1" ?

lxc-list is generally a nicer looking (but more tedious to script around) interface for viewing lists of containers. The actual format of lxc-ls output will be discussed at the upcoming UDS, and probably changed.

Changed in lxc (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for lxc (Ubuntu) because there has been no activity for 60 days.]

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

Other bug subscribers

Remote bug watches

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