Agents log rotation is unstable #10181
ISSUE TYPE
COMPONENT NAMEKVM agent logs CLOUDSTACK VERSIONCONFIGURATIONdefault /etc/logrotate.d/cloudstack-agent and /etc/cloudstack/agent/log4j-cloud.xml OS / ENVIRONMENTUbuntu 22.04.5 LTS SUMMARYRegularly agent log is rotated but cloudstack agent keeps writing to old file. STEPS TO REPRODUCEjust added kvm hosts to cloudstack cluster and used it to run several VMs EXPECTED RESULTSI'd expect that agent writes to the new agent.log after rotation ACTUAL RESULTSBut it keeps writing to the old file Please advise. |
Replies: 5 comments
|
Thanks for opening your first issue here! Be sure to follow the issue template! |
|
Looks like properly rotated files have different naming must be some conflict with my logrotate configuration |
|
Found conflicting entry in logrotate.d |
|
Not CloudStack issue |
|
thanks for providing the question and the answer @akrasnov-drv . I am converting this to a q&a discussion item for future reference. |
Found conflicting entry in logrotate.d