no log with the python bindings (when started in daemon mode?)

Bug #1182498 reported by Didier Roche-Tolomelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
New
Undecided
Unassigned

Bug Description

No log at all are written, even with:
lxc.loglevel = debug
lxc.logfile = /tmp/foo

the file is created, but remains empty.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1182498] [NEW] no log with the python bindings (when started in daemon mode?)

Quoting Didier Roche (<email address hidden>):
> Public bug reported:
>
> No log at all are written, even with:
> lxc.loglevel = debug
> lxc.logfile = /tmp/foo

When I add

lxc.loglevel=1
lxc.logfile=/tmp/foo

to my /var/lib/lxc/r0/config, and start the container,
I get 411 lines in /tmp/foo.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

did you try with the python bindings (hence why I duplicated it to the other bug report)?

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1182498] Re: no log with the python bindings (when started in daemon mode?)

Do you mean c->start(c) in python bindings, with

lxc.loglevel = debug
lxc.logfile = /tmp/foo

in container config, fails? If so that's very interesting. If not,
then it matches my current expectation.

Thanks.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

sorry, no I meant that it's failing to get logs the content from stderr or stdout (and so, we don't see the logs if something failed), as per the duplicate :)

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.