<div dir="ltr"><div><div>Hello,<br></div>(resurrecting this old thread because I think I found the root cause)<br><br>The problem affects all OpenStack environments using Syslog, not only Fuel-based installations: when use_syslog is true, the logging_context_format_string and logging_default_format_string parameters aren't taken into account (see  [1] for details).<br>The issue is fixed in oslo.log but not in oslo-incubator/log (See [2]). Depending on when the different projects synchronized with oslo-incubator during the Juno timeframe, some of them are immune to the bug (from the Fuel bug report: heat, glance and neutron). As such the bug will affect all projects that don't switch to oslo.log during the Kilo cycle.<br></div><div><br>BR,<br></div>Simon<br><div><br> [1] <a href="https://bugs.launchpad.net/oslo.log/+bug/1399088">https://bugs.launchpad.net/oslo.log/+bug/1399088</a><br>[2] <a href="https://review.openstack.org/#/c/151157/">https://review.openstack.org/#/c/151157/</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 12, 2014 at 7:35 PM, Dmitry Pyzhov <span dir="ltr"><<a href="mailto:dpyzhov@mirantis.com" target="_blank">dpyzhov@mirantis.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>We have a high priority bug in 6.0: <a href="https://bugs.launchpad.net/fuel/+bug/1401852" target="_blank">https://bugs.launchpad.net/fuel/+bug/1401852</a>. Here is the story.</div><div><br></div>Our openstack services use to send logs in strange format with extra copy of timestamp and loglevel:<div><div>==> ./neutron-metadata-agent.log <==</div><div>2014-12-12T11:00:30.098105+00:00 info: 2014-12-12 11:00:30.003 14349 INFO neutron.common.config [-] Logging enabled!</div></div><div><br></div><div>And we have a workaround for this. We hide extra timestamp and use second loglevel.</div><div><br></div><div>In Juno some of services have updated oslo.logging and now send logs in simple format:</div><div><div>==> ./nova-api.log <==</div><div>2014-12-12T10:57:15.437488+00:00 debug: Loading app ec2 from /etc/nova/api-paste.ini</div><div><br></div></div><div>In order to keep backward compatibility and deal with both formats we have a dirty workaround for our workaround: <a href="https://review.openstack.org/#/c/141450/" target="_blank">https://review.openstack.org/#/c/141450/</a></div><div><br></div><div>As I see, our best choice here is to throw away all workarounds and show logs on UI as is. If service sends duplicated data - we should show duplicated data.</div><div><br></div><div>Long term fix here is to update oslo.logging in all packages. We can do it in 6.1.</div></div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>