Agents log rotation is unstable #10181
-
ISSUE TYPE
COMPONENT NAMEKVM agent logs CLOUDSTACK VERSION
CONFIGURATIONdefault /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. |
Beta Was this translation helpful? Give feedback.
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.
Found conflicting entry in logrotate.d