You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
default /etc/logrotate.d/cloudstack-agent and /etc/cloudstack/agent/log4j-cloud.xml
OS / ENVIRONMENT
Ubuntu 22.04.5 LTS
SUMMARY
Regularly agent log is rotated but cloudstack agent keeps writing to old file.
STEPS TO REPRODUCE
just added kvm hosts to cloudstack cluster and used it to run several VMs
I believe at rotation time (0:17) there were several VMs running but no new tasks were executed
EXPECTED RESULTS
I'd expect that agent writes to the new agent.log after rotation
ACTUAL RESULTS
But it keeps writing to the old file
-rw-r--r-- 1 root root 0 Jan 13 00:17 agent.log
-rw-r--r-- 1 root root 319990 Jan 13 09:28 agent.log.1
Activity
boring-cyborg commentedon Jan 13, 2025
Thanks for opening your first issue here! Be sure to follow the issue template!
akrasnov-drv commentedon Jan 13, 2025
Looks like properly rotated files have different naming
must be some conflict with my logrotate configuration
akrasnov-drv commentedon Jan 13, 2025
Found conflicting entry in logrotate.d
akrasnov-drv commentedon Jan 13, 2025
Not CloudStack issue
DaanHoogland commentedon Jan 13, 2025
thanks for providing the question and the answer @akrasnov-drv . I am converting this to a q&a discussion item for future reference.