Pod logs (stdout) no longer being written to the Nodes /var/log/messages after 3.10 upgrade
[Pod logs (stdout) no longer being written to the Nodes /var/log/messages after 3.10 upgrade]
Version
[$ oc version oc v3.9.0+191fece kubernetes v1.9.1+a0ce1bc657 features: Basic-Auth
Server https://master.apps.shared.openshift.local:443 openshift v3.10.0+456651d-57 kubernetes v1.10.0+b81c8f8d]
Steps To Reproduce
- [Create and run a batch job pod that writes to stdout]
- [Verify oc get logs batch_job_pod output can be found in the /var/log/messages file on the Node that the job executed on]
- [Upgrade from Openshift Origin 3.9 to Openshift Origin 3.10 using ansible-playbooks]
- [Verify oc get logs batch_job_pod output is no longer found in the /var/log/messages file on the Node that the job executed on]
Current Result
oc get logs batch_job_pod output is no longer found in the /var/log/messages file on the Node that the job executed on
Expected Result
oc get logs batch_job_pod output can be found in the /var/log/messages file on the Node that the job executed on
Additional Information
[try to run $ oc adm diagnostics (or oadm diagnostics) command if possible]
[if you are reporting issue related to builds, provide build logs with BUILD_LOGLEVEL=5]
[consider attaching output of the $ oc get all -o json -n <namespace> command to the issue]
[visit https://docs.openshift.org/latest/welcome/index.html]
I have not been able to determine what caused this behavior change at version 3.10. I'm guessing it is the fluentd version or configuration. Our use case is we are sending /var/log/messages to AWS Cloudwatch, then have AWS Metric Filters and Alarms that evaluate and act on our monitoring Pod output. As a work around, we found that if we enable UDP syslog reception on our Openshift Nodes, then we can use logger from within our Monitoring pod to write output to /var/log messages on the Node that the pod is running on. echo "this is a test to /var/log/mesagers over udp" | logger -n NodeIPAddress
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
@openshift-bot: Closing this issue.
In response to this:
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen. Mark the issue as fresh by commenting/remove-lifecycle rotten. Exclude this issue from closing again by commenting/lifecycle frozen./close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.