lxc container service logs filling syslog

Bug #1621612 reported by Surajit Roy
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Low
Unassigned

Bug Description

We have seen a scenario in Liberty where if we have a network glitch between the compute nodes and the rabbitmq, and few nodes does not recover well - the rabbitmq container syslog starts filling with rabbitmq errors and the container disk run out of disk space and eventually the container goes down.

The workaround to that is restart all the services and cleanup syslog in the container.

description: updated
description: updated
summary: - lxc container service logs filling syslogd
+ lxc container service logs filling syslog
description: updated
Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :
Revision history for this message
Surajit Roy (beasurajitroy) wrote :

On the re-direction of logs I have been looking at rsyslog setting and one of the theories derived by me(still under more research) is
Default rsyslogd conf
*.* ;auth,authpriv.none -/var/log/syslog
*.* means log all facilities and all priorities.
auth,authpriv.none means don't log the auth and authpriv facilities.
-/var/log/syslog means log to the file /var/log/syslog. The preceding dash tells syslogd not to call fsync(), i.e. do not flush the kernel buffer to disk after every write to the file.

It could be possible that due to this setting , for a burst of messages logs are getting queued and eventually written to syslog. I looking more into the rsyslog internals to prove the theory.

We are testing it at our end.
One of the behaviors we saw was if logging is aggressive all the logs get redirected.
If we remove this option we dont see the behavior.

Logrotate is the last option if we are not able to figure out the reason of re-direction.
I would say we go with size based rotation in that case. And we can decide with the size that we want to retain.

Revision history for this message
Surajit Roy (beasurajitroy) wrote :
Changed in openstack-ansible:
status: Confirmed → Fix Committed
Changed in openstack-ansible:
status: Fix Committed → Fix Released
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.