Agents log rotation is unstable #10181
Replies: 5 comments
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
Looks like properly rotated files have different naming
must be some conflict with my logrotate configuration |
Beta Was this translation helpful? Give feedback.
-
Found conflicting entry in logrotate.d |
Beta Was this translation helpful? Give feedback.
-
Not CloudStack issue |
Beta Was this translation helpful? Give feedback.
-
thanks for providing the question and the answer @akrasnov-drv . I am converting this to a q&a discussion item for future reference. |
Beta Was this translation helpful? Give feedback.
-
ISSUE TYPE
COMPONENT NAME
KVM agent logs
CLOUDSTACK VERSION
CONFIGURATION
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
Please advise.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions