lxc / python3-lxc

Python 3.x binding for liblxc
https://linuxcontainers.org/lxc
GNU Lesser General Public License v2.1
57 stars 38 forks source link

Insufficiently detailed error messages #26

Open pevogam opened 3 years ago

pevogam commented 3 years ago

Hi,

After hundreds of container startups using the python3 bindings sometimes I get a sporadic error like:

    c = lxc.Container(container_id)

  File "/usr/lib64/python3.9/site-packages/lxc/__init__.py", line 157, in __init__
    _lxc.Container.__init__(self, name)

RuntimeError: Container_init:lxc.c:542: error during init for container 'c1'.

My problem with this is that there is no detail whatsoever on the reason behind the RuntimeError. I know that these are generated bindings but is there any easy way to debug this like make it possible to output debug information via some DEBUG enabling env variable or perhaps a log file?

Thanks in advance,