Bug 1642547
Summary: | CRI-O 1.11.7: log_size_max is ignored. Logs always wrap at 12-13MB | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Mike Fiedler <mifiedle> | ||||||
Component: | Containers | Assignee: | Mike Fiedler <mifiedle> | ||||||
Status: | CLOSED NOTABUG | QA Contact: | Mike Fiedler <mifiedle> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 3.11.0 | CC: | aos-bugs, gscrivan, jokerman, mifiedle, mmccomas, mpatel | ||||||
Target Milestone: | --- | ||||||||
Target Release: | 3.11.z | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2019-01-22 18:48:35 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1552304 | ||||||||
Attachments: |
|
Description
Mike Fiedler
2018-10-24 16:06:47 UTC
Could you please share your crio.conf? Did you only tweak log_size_max from the default? Also could you show me the output of "pgrep -fa conmon" while the container is running? Created attachment 1497185 [details]
crio.conf
Created attachment 1497186 [details]
pgrep output
The container that is putting out lots of logs is centos-logtest. I verified immediately after running pgrep that it was exhibiting the behavior described in this bz - wrapping the log ever 12MB or so.
I forgot to mention, log_size_max was the only change in crio.conf. thanks for all the extra information. So it is the kubelet that does the log rotation. If you want to increase the size, from the default 10Mi, you should add something like: container-log-max-size: - 200Mi to your /etc/origin/node/node-config.yaml file then restart atomic-openshift-node.service. Assigning to myself for verification of comment 5 and to ensure docs cover this. Thanks for the info @gscrivan Are there any other crio.conf flags/params that are overridden by the kubelet? I'd like to get them documented. I found no mention of container-log-max-size in OpenShift or Kube docs. @Mike, no, there are no other params that need to be overriden. |