[lxc-devel] lsc-ls listing containers twice...
Michel Normand
normand at fr.ibm.com
Mon Jan 18 09:16:10 UTC 2010
Le samedi 16 janvier 2010 à 16:12 -0500, Michael H. Warfield a écrit :
> Hey all,
>
> I noticed that lxc-ls in git is listing active containers twice. Why is
> that?
I did the change,
It was basically required to be able to list the containers
that are started with a configuration file not created via lxc-create.
I agree that the consequence is that created containers
that are running are listed two times.
Today lxc-ls is listing created and active containers
(so with some of them duplicated).
We may change the default and give only the active ones
and add two new options: --created and --active to give the choice to
user.
---
Michel
> I can look at the script and see, sure, it's listing what's in
> $lxpath and then listing the active ones, based on the output of
> netstat, over in the cgroups mount point. So, I see the technical
> reason why it's doing that. What I'm really looking for is what is the
> reasoning behind this change (the 0.6.3 version in the Fedora repos does
> not do this). Seems strange for an "ls" type behavior.
>
> Mike
> --
> Michael H. Warfield (AI4NB) | (770) 985-6132 | mhw at WittsEnd.com
> /\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/
> NIC whois: MHW9 | An optimist believes we live in the best of all
> PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!
More information about the lxc-devel
mailing list