origin icon indicating copy to clipboard operation
origin copied to clipboard

Pod logs (stdout) no longer being written to the Nodes /var/log/messages after 3.10 upgrade

Open skynardo opened this issue 8 years ago • 5 comments

[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
  1. [Create and run a batch job pod that writes to stdout]
  2. [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]
  3. [Upgrade from Openshift Origin 3.9 to Openshift Origin 3.10 using ansible-playbooks]
  4. [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]

skynardo avatar Oct 19 '18 19:10 skynardo

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

skynardo avatar Nov 02 '18 15:11 skynardo

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

openshift-bot avatar Jan 31 '19 16:01 openshift-bot

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

openshift-bot avatar Mar 02 '19 20:03 openshift-bot

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 avatar Apr 01 '19 22:04 openshift-bot

@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.

openshift-ci-robot avatar Apr 01 '19 22:04 openshift-ci-robot