log_files_count and log_file_size in contrail-vrouter-agent.conf are not parsed correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenContrail |
New
|
Undecided
|
Unassigned |
Bug Description
Steps to reproduce:
1. Add log_files_count = N to /etc/contrail/
2. Start the agent
Expected results:
1. The maximum number of agent log files to keep is set to N
Actual results:
1. The maximum number of agent log files to keep is undetermined. To testify this, one can start /usr/bin/
Possible cause:
AgentParam:
There is a not-so-evident consequence of this bug.
As log_files_count is undetermined, it can be pretty big, which makes log4cplus to rename many non-existent log files.
At least on some kernels we checked, continuously renaming a non-existing file (say, "while true; do mv a$i b$((++i)); done") wastes slab-allocated kernel memory for dentry cache. Under unfavourable conditions, this can lead to RAM starvation on the hypervisor and ultimately loss of the node.