lxc-ls with ephemeral containers reports too many containers
Bug #1060550 reported by
Robert Collins
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-
jenkins@
$ lxc-ls Wed Oct 3 lptests
lptests-
lptests-
lptests-
lptests-
lptests-
lptests-
lptests-
lptests-
To post a comment you must log in.
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.