[Bug 905419] Re: cloud-init messages going to syslog, not cloud-init.log

2011-12-19 Thread Scott Moser
I strace with that of: logger "[FOO] bar" And found that logger writes 16 bytes before the message, an example with apostrophe added to show trailing white space: 'Dec 19 13:18:44 ' If I modify the above test case to as: format=0123456789012345[CLOUDINIT] %(filename)s[%(levelname)s]: %(mes

[Bug 905419] Re: cloud-init messages going to syslog, not cloud-init.log

2011-12-19 Thread Scott Moser
This is a simple test case that shows the problem using python logging.config. Just run it with: ./python-logging-syslog.py my message It will output to console the same string it should be writing to syslog. However, the one to syslog is messed up. (tail -f /var/log/syslog). ** Attachment ad

[Bug 905419] Re: cloud-init messages going to syslog, not cloud-init.log

2011-12-19 Thread Scott Moser
I'm moving this to package rsyslog, I've verified that this is a regression caused by using rsyslog from precise (5.8.6-1ubuntu3). The issue is fixed and demonstrable by: $ url="https://launchpad.net/ubuntu/+archive/primary/+files/rsyslog_5.8.1-1ubuntu2_amd64.deb"; $ wget "$url" -O "${url##*/

[Bug 905419] Re: cloud-init messages going to syslog, not cloud-init.log

2011-12-16 Thread Scott Moser
You can compare the output above, with what i found in /var/log/syslog after running he same on precise: Dec 16 21:14:02 server-3393 d-init-cfg[INFO]: cloud-init-cfg ['apt-update-upgrade', 'always'] Dec 16 21:14:02 server-3393 it__.py[DEBUG]: handling apt-update-upgrade with freq=always and args

[Bug 905419] Re: cloud-init messages going to syslog, not cloud-init.log

2011-12-16 Thread Scott Moser
It seems this is possibly rsyslog or python logging related, because cloud-init did not change between oneiric and precise,. In oneiric, it works: Dec 16 17:36:04 server-3395 [CLOUDINIT] __init__.py[DEBUG]: handling final-message with freq=None and args=[] Dec 16 21:11:30 server-3395 [CLOUDINIT]

[Bug 905419] Re: cloud-init messages going to syslog, not cloud-init.log

2011-12-16 Thread Scott Moser
** Changed in: cloud-init (Ubuntu) Importance: Undecided => Medium ** Changed in: cloud-init (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/905419 Title: