neutron/ovs-agent.log isn't rotated on HA controllers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Confirmed
|
Medium
|
Bogdan Dobrelya |
Bug Description
{"ostf_sha": "83ada35fec2664
Here is the normal logrotate config
/var/log/
daily
missingok
compress
delaycompress
notifempty
}
After logrotate log file change the name from ovs-agent.log to ovs-agent.log.1 and ovs agent continues to write th this file.
On compute nodes this logrotate config works well. Probably the reason is corosync/pacemaker.
I tried using postrotate section
postrotate
/bin/kill `cat /var/run/
endscript
but it cause migration l3-agent dhcp-agent beacuse in 4.0 they depend on ovs-agent and metadata agent.
Changed in fuel: | |
importance: | Undecided → Medium |
assignee: | nobody → Bogdan Dobrelya (bogdando) |
Changed in fuel: | |
milestone: | none → 5.0 |
Changed in fuel: | |
status: | New → Confirmed |
Services should be at least SIGHUP-ed in order to ensure file descriptors updated once logs has been rotated.
This issue is also related to https:/ /bugs.launchpad .net/oslo/ +bug/1276694 - in Fuel<=4.x (with Havana MOS) OS services do not support SIGHUP yet.
According to the mentioned related #1276694 issue, after OS I-3 (Fuel 5.0 and cannot be backported) we should ensure all OS services (except murano*, glance* which do not support SIGHUP yet) must be SIGHUPPed in postrotate sections of 10-fuel.conf & 20-fuel.conf (please note: in Fuel we use these ones to ensure log rotation policy for deployed environments).