Bug 1477909 - Prevent /tmp from filling with openshift-sdn-debug logs. Is there a way to change the openshift-sdn-debug log path to /var/log and not /tmp?
Summary: Prevent /tmp from filling with openshift-sdn-debug logs. Is there a way to c...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 3.4.1
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ---
: ---
Assignee: Ravi Sankar
QA Contact: Meng Bo
URL:
Whiteboard:
Depends On:
Blocks: 1485742
TreeView+ depends on / blocked
 
Reported: 2017-08-03 07:54 UTC by Miheer Salunke
Modified: 2017-08-31 17:16 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1485742 (view as bug list)
Environment:
Last Closed: 2017-08-31 17:16:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Ravi Sankar 2017-08-07 19:49:59 UTC
By default 'oc adm diagnostics NetworkCheck' logs errors under '/tmp/openshift' and this can be configured with '--network-logdir' flag.

Looking at the filename format under /tmp (openshift-sdn-debug-<XXXXXXXXX>), this seems to be generated by unsupported sdn script 'https://github.com/openshift/openshift-sdn/blob/master/hack/debug.sh' and not 'oc adm diagnostics'. If the user still want to use this script, they can change the logdir to desired path in debug.sh (logdir is initialized to /tmp/openshift-sdn-debug-xxx on line 569).

Comment 2 Phil Cameron 2017-08-07 20:31:47 UTC
"oc adm diagnostics NetworkCheck" does not seem to be documented. Maybe it could be added to admin_guide/diagnostics_tool.adoc?

Comment 3 Ben Bennett 2017-08-31 17:16:03 UTC
As Ravi said, it looks like the large directories are from https://github.com/openshift/openshift-sdn/blob/master/hack/debug.sh

You can change the directory the temp files are written to by setting TMPDIR in the environment.


Note You need to log in before you can comment on or make changes to this bug.