Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1773847

Summary: Got `sed: couldn't open temporary file /etc/fluent/configs.d/user/sedBZf21K: Read-only file system` when LOGGING_FILE_PATH=console
Product: OpenShift Container Platform Reporter: Qiaoling Tang <qitang>
Component: LoggingAssignee: IgorKarpukhin <ikarpukh>
Status: CLOSED ERRATA QA Contact: Anping Li <anli>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, jcantril, rmeggins
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1780480 (view as bug list) Environment:
Last Closed: 2020-01-23 11:13:16 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:

Description Qiaoling Tang 2019-11-19 05:45:42 UTC
Description of problem:
Deploying clusterlogging, set managementState to Unmanaged in the clusterlogging instance, then change LOGGING_FILE_PATH to console in ds/fluentd, check fluentd pods log by executing `oc logs $fluentd-pod-name`, couldn't view fluentd pod logs, get error message:

$ oc logs fluentd-ldrvs
sed: couldn't open temporary file /etc/fluent/configs.d/user/sedBZf21K: Read-only file system

$ oc exec fluentd-ldrvs env |grep LOGGING_FILE_PATH
LOGGING_FILE_PATH=console


Version-Release number of selected component (if applicable):
ose-logging-fluentd-v4.3.0-201911151317
ose-cluster-logging-operator-v4.3.0-201911161914


How reproducible:
Always

Steps to Reproduce:
1.deploy clusterlogging
2.change managementState to Unmanaged in the clusterlogging instance
3.oc set env ds/fluentd LOGGING_FILE_PATH=console
4.check fluentd pod logs by executing: oc logs $fluentd_pod_name

Actual results:


Expected results:


Additional info:

Comment 1 IgorKarpukhin 2019-12-05 15:14:55 UTC
Fixed with this PR: https://github.com/openshift/cluster-logging-operator/pull/309

Comment 3 Qiaoling Tang 2019-12-09 00:50:49 UTC
Verified with ose-cluster-logging-operator-v4.3.0-201912061517

Comment 5 errata-xmlrpc 2020-01-23 11:13:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0062