Modify nfv and mtce-guest log rotation config files
This updates make the following setting changes to the nfv log rotation configuration files - add 'create' with permissions to guest conf files - add 'delaycompress' option - remove all global settings - remove the nodateext setting Test Plan: PASS: Verify log rotation file naming convention PASS: Verify delaycompress option PASS: Verify log permissions after rotate are 0640 Change-Id: I033ee0585aedd7c70ff55f2ce3eb70867b78097c Partial-Bug: 1918979 Depends-On: https://review.opendev.org/c/starlingx/config-files/+/784943 Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
This commit is contained in:
parent
19b3a3f385
commit
454c71ddc0
@ -1,16 +1,18 @@
|
|||||||
#daily
|
## Copyright (c) 2015-2021 Wind River Systems, Inc.
|
||||||
|
##
|
||||||
|
## SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/var/log/guestAgent.log
|
/var/log/guestAgent.log
|
||||||
{
|
{
|
||||||
nodateext
|
create 0640 root root
|
||||||
size 10M
|
|
||||||
rotate 5
|
|
||||||
start 1
|
start 1
|
||||||
missingok
|
rotate 5
|
||||||
notifempty
|
size 10M
|
||||||
compress
|
compress
|
||||||
sharedscripts
|
notifempty
|
||||||
|
missingok
|
||||||
postrotate
|
postrotate
|
||||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||||
endscript
|
endscript
|
||||||
|
delaycompress
|
||||||
}
|
}
|
||||||
|
@ -1,17 +1,18 @@
|
|||||||
#daily
|
## Copyright (c) 2015-2021 Wind River Systems, Inc.
|
||||||
nodateext
|
##
|
||||||
|
## SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
/var/log/guestServer.log
|
/var/log/guestServer.log
|
||||||
{
|
{
|
||||||
nodateext
|
create 0640 root root
|
||||||
size 10M
|
|
||||||
rotate 5
|
|
||||||
start 1
|
start 1
|
||||||
missingok
|
rotate 5
|
||||||
notifempty
|
size 10M
|
||||||
compress
|
compress
|
||||||
sharedscripts
|
notifempty
|
||||||
|
missingok
|
||||||
postrotate
|
postrotate
|
||||||
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
systemctl reload syslog-ng > /dev/null 2>&1 || true
|
||||||
endscript
|
endscript
|
||||||
|
delaycompress
|
||||||
}
|
}
|
||||||
|
@ -3,11 +3,9 @@
|
|||||||
#
|
#
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
#
|
#
|
||||||
nodateext
|
|
||||||
|
|
||||||
/var/log/nfv-vim-alarms.log
|
/var/log/nfv-vim-alarms.log
|
||||||
{
|
{
|
||||||
nodateext
|
|
||||||
size 10M
|
size 10M
|
||||||
start 1
|
start 1
|
||||||
missingok
|
missingok
|
||||||
@ -18,7 +16,6 @@ nodateext
|
|||||||
|
|
||||||
/var/log/nfv-vim-events.log
|
/var/log/nfv-vim-events.log
|
||||||
{
|
{
|
||||||
nodateext
|
|
||||||
size 10M
|
size 10M
|
||||||
start 1
|
start 1
|
||||||
missingok
|
missingok
|
||||||
@ -29,7 +26,6 @@ nodateext
|
|||||||
|
|
||||||
/var/log/nfvi-openstack.log
|
/var/log/nfvi-openstack.log
|
||||||
{
|
{
|
||||||
nodateext
|
|
||||||
size 10M
|
size 10M
|
||||||
start 1
|
start 1
|
||||||
missingok
|
missingok
|
||||||
|
Loading…
Reference in New Issue
Block a user