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

Bug 1780480

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: IgorKarpukhin <ikarpukh>
Component: LoggingAssignee: Jeff Cantrill <jcantril>
Status: CLOSED NOTABUG QA Contact: Anping Li <anli>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: anli, aos-bugs, jcantril, qitang, rmeggins
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1773847 Environment:
Last Closed: 2020-01-29 16:37:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description IgorKarpukhin 2019-12-06 06:53:17 UTC
+++ This bug was initially created as a clone of Bug #1773847 +++

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:

--- Additional comment from IgorKarpukhin on 2019-12-05 15:14:55 UTC ---

Fixed with this PR: https://github.com/openshift/cluster-logging-operator/pull/309

Comment 1 Jeff Cantrill 2020-01-29 16:37:54 UTC
This was actually merged into master(4.4) and 4.3