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

Bug 1884275

Summary: Put the ClusterLogForwarder back into namespace scope
Product: OpenShift Container Platform Reporter: Alan Conway <aconway>
Component: LoggingAssignee: Alan Conway <aconway>
Status: CLOSED ERRATA QA Contact: Anping Li <anli>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.6CC: aos-bugs, mburke, periklis, qitang
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-10-27 15:12:53 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 Alan Conway 2020-10-01 14:12:32 UTC
Description of problem:

The ClusterLogForwarder API is in cluster scope, but the ClusterLogging API is in namespace scope in the openshift-logging namespace. This inconsistency is confusing for users and creates potential problems for future implementation work.

Version-Release number of selected component (if applicable):

Unreleased as yet.

Futher details:

There's no good reason to cluster-scope the CLF (my bad, I thought it made sense at the time) and there are several significant problems:

1. The CL singleton is namespace scoped. It's too late to cluster-scope the CL and having the CL and CLF in different scopes makes no sense, to users or to our implementation internals. It *will* bite us in the ass.

2. Cluster scope gives no benefits. We can still support multiple NamespaceLogForwarder CRs in future, it makes no difference if the CLF is cluster or namespace scoped.

3. Namespace scope gives us useful flexibility: we normally deploy logging as a singleton in a single "openshift-logging" namespace and that won't change. However if CL and CLF are namespace-scoped then we *can* deploy independent logging stacks on the same cluster without inteference.

Example: deploy a raw, untested release of logging to an AppSRE or other live cluster for validation, without disrupting the existing customer logging deployment.

Example: paralellize our e2e tests on a single cluster by deploying independent loggings stacks for each test that needs a different configuration.

Comment 2 Qiaoling Tang 2020-10-09 05:53:53 UTC
@mburke I guess you set this bz to RELEASE_PENDING by mistake, I move it back to ON_QA.

Comment 3 Anping Li 2020-10-09 15:10:34 UTC
Verified on 
$ oc get csv -o name
clusterserviceversion.operators.coreos.com/clusterlogging.4.6.0-202010081538.p0
clusterserviceversion.operators.coreos.com/elasticsearch-operator.4.6.0-202010081538.p0

Comment 6 errata-xmlrpc 2020-10-27 15:12:53 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 (OpenShift Container Platform 4.6.1 extras update), 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:4198