Distributed Cloud - dcorch.logs only capturing four days history with 10 subclouds
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Jessica Castelino |
Bug Description
Brief Description
-----------------
When testing distributed cloud system with 10 subclouds noticed that /var/log/dcorch was rotating logs out after 4+ days. As the number of logs scale with number of subclouds either the syslog size/rotate parameters have to be increased or the content of the logs need to be reduced if more subclouds are added.
Seems like a lot of debuggish info logs.
Severity
--------
Minor
Steps to Reproduce
------------------
Set up DC system with 10 subclouds. Observe /var/log/dcorch
Expected Behavior
------------------
Not sure if there's a specific requirement but we should be not filling logs unnecessarily.
Actual Behavior
----------------
dcorch logs are rotated out after 4-5 days
Reproducibility
---------------
Reproducible
System Configuration
-------
All-in-one duplex plus worker, DC system controller with 10 subclouds
Branch/Pull Time/Commit
-------
2019-12-09_20-00-00
Last Pass
---------
n/a
Timestamp/Logs
--------------
-rw-r--r-- 1 root root 712681 Dec 12 04:09 dcorch.log.19.gz
-rw-r--r-- 1 root root 650633 Dec 12 10:17 dcorch.log.18.gz
-rw-r--r-- 1 root root 654417 Dec 12 16:27 dcorch.log.17.gz
-rw-r--r-- 1 root root 659792 Dec 12 23:20 dcorch.log.16.gz
-rw-r--r-- 1 root root 665438 Dec 13 06:35 dcorch.log.15.gz
-rw-r--r-- 1 root root 666915 Dec 13 13:59 dcorch.log.14.gz
-rw-r--r-- 1 root root 663523 Dec 13 20:21 dcorch.log.13.gz
-rw-r--r-- 1 root root 658569 Dec 14 02:33 dcorch.log.12.gz
-rw-r--r-- 1 root root 655500 Dec 14 08:44 dcorch.log.11.gz
-rw-r--r-- 1 root root 656587 Dec 14 14:53 dcorch.log.10.gz
-rw-r--r-- 1 root root 653580 Dec 14 21:02 dcorch.log.9.gz
-rw-r--r-- 1 root root 666141 Dec 15 03:21 dcorch.log.8.gz
-rw-r--r-- 1 root root 666080 Dec 15 09:38 dcorch.log.7.gz
-rw-r--r-- 1 root root 657471 Dec 15 15:47 dcorch.log.6.gz
-rw-r--r-- 1 root root 656949 Dec 15 21:59 dcorch.log.5.gz
-rw-r--r-- 1 root root 656141 Dec 16 04:08 dcorch.log.4.gz
-rw-r--r-- 1 root root 655956 Dec 16 10:14 dcorch.log.3.gz
-rw-r--r-- 1 root root 654930 Dec 16 16:27 dcorch.log.2.gz
-rw-r--r-- 1 root root 662068 Dec 16 22:26 dcorch.log.1.gz
dcorch logs are set to size 10M, rotate 20 in /etc/logrotate.
Also dcorch openstack logs are duplicated in /var/log/
Test Activity
-------------
DC
Workaround
----------
n/a
Changed in starlingx: | |
assignee: | nobody → Gerry Kopec (gerry-kopec) |
Changed in starlingx: | |
assignee: | Gerry Kopec (gerry-kopec) → Jessica Castelino (jcasteli) |
Changed in starlingx: | |
status: | Triaged → In Progress |
stx.4.0 / medium priority - should look into reducing the logs or increasing the log size as suggested by the reporter.