[Lxc-users] python api

Papp Tamas tompos at martos.bme.hu
Mon Mar 4 18:44:19 UTC 2013


hi,

How does python api works what does it look for?
Or maybe there is an issue only in lxc-ls:

If I see correctly, it checks if /var/lib/lxc/$container/config file exists.
I tried without the lxcpath setting as well.
Than I see, it want's to connect to /var/lib/lxc/$container/command file and close the session.



# lxc-ls --fancy
NAME        STATE    IPV4  IPV6
-------------------------------
af          STOPPED  -     -
[ and all of the container ]

Containers are running fine.



thanks,
tamas


ps.: I also suggest this small change:

--- lxc-ls.ORIG	2013-03-04 19:41:41.923080356 +0100
+++ lxc-ls	2013-03-04 19:42:57.812013651 +0100
@@ -132,7 +132,7 @@
                      help=_("use fancy output"))

  parser.add_argument("--fancy-format", type=str, default="name,state,ipv4,ipv6",
-                    help=_("comma separated list of fields to show"))
+                    help=_("comma separated list of fields to show (default: name,state,ipv4,ipv6)"))

  parser.add_argument("--nesting", dest="nesting", action="store_true",
                      help=_("show nested containers"))




More information about the lxc-users mailing list