Distributed Cloud: ansible.log in /root is not rotated
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Tee Ngo |
Bug Description
Brief Description
-----------------
In distributed cloud lab that has been up for 2 months with many subcloud adds, observe the file /root/ansible.log on the system controller is 170M. Logs in the file correspond with subcloud adds done over the last 2 months. If this file keep growing unbounded, it will contribute to disk space exhaust of rootfs.
Severity
--------
Minor
Steps to Reproduce
------------------
Set up distributed cloud system and add many subclouds
Expected Behavior
------------------
Log files should limit disk usage periodically via log rotation/
Actual Behavior
----------------
ansible.log appears to be growing without bound
Reproducibility
---------------
Reproducible
System Configuration
-------
Distributed Cloud - system controller
Branch/Pull Time/Commit
-------
2020-06-27_18-35-20
Last Pass
---------
none
Timestamp/Logs
--------------
n/a
Test Activity
-------------
Distributed Cloud system testing
Workaround
----------
Manual cleanup of file by root user
tags: | added: stx.distcloud |
Changed in starlingx: | |
assignee: | nobody → Tee Ngo (teewrs) |
Changed in starlingx: | |
importance: | Undecided → Medium |
tags: | added: stx.5.0 |
This could be a separate bug but observed subcloud bootstrap and deploy log files accumulating in /var/log/dcmanager without compression or purging over time so the same issue exists for /var/log filesystem.
/var/log/dcmanager does have log rotation enabled but since the bootstrap and deploy files all have timestamps embedded in the filename, they are all unique per subcloud add and won't trigger any rotation.