config: launch ifmap-server with append to log for logrotate to work right
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Juniper Openstack |
Fix Committed
|
Medium
|
Hampapur Ajay | ||
R2.0 |
Fix Committed
|
Medium
|
Hampapur Ajay | ||
R2.1 |
Fix Committed
|
Medium
|
Hampapur Ajay | ||
OpenContrail |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
Logrotation of ifmap-server-
does not truncate even though it has below directives. Instead new file has leading zeros (see hexdump)
followed by new messages at the old offset. To fix we need to do below(append instead of write) in
/usr/bin/
java -cp ./lib/ -jar ./irond.jar >> /var/log/
instead of
java -cp ./lib/ -jar ./irond.jar > /var/log/
root@contrail-
/var/log/
/var/log/
/var/log/
{
daily
missingok
compress
delaycompress
notifempty
copytruncate
}
root@contrail-
root@contrail-
<snip>
-rw-r--r-- 1 contrail contrail 15758455 Mar 30 22:48 ifmap-server-
-rw-r--r-- 1 contrail contrail 15866265 Mar 30 22:48 ifmap-server-
root@contrail-
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00f07470 00 00 00 00 00 00 00 32 30 31 35 2d 30 33 2d 33 |.......2015-03-3|
00f07480 30 20 32 32 3a 34 38 3a 35 33 2c 36 38 35 20 5b |0 22:48:53,685 [|
tags: | added: config |
Changed in juniperopenstack: | |
importance: | Undecided → Medium |
Changed in opencontrail: | |
importance: | Undecided → Medium |
Review in progress for https:/ /review. opencontrail. org/8742
Submitter: Hampapur Ajay (<email address hidden>)