-
Bug
-
Resolution: Done
-
Major
-
Logging 5.9.0
-
False
-
None
-
False
-
NEW
-
VERIFIED
-
Release Note Not Required
-
-
-
Log Collection - Sprint 249
Description of problem:
The CL instance only specifies a collector: vector, there is no logstore. When you create a forwarder instance the collector logs are created. When you delete the forwarder the collector pods remain.
Version-Release number of selected component (if applicable):
Only occurs on 5.9 (master) branch. Verified it dDoes not occur in 5.8
How reproducible:
every time
Steps to Reproduce:
- install vector only CL instance (no logstore)
- create clf instance and observe pods created
- delete clf instance and observe pods are not removed
Actual results:
collector pods remain
Expected results:
collector pods are removed since there is no longer a forwarder (or logstore)
Additional info:
I believe the issue is occurring here: https://github.com/openshift/cluster-logging-operator/blob/master/controllers/forwarding/forwarding_controller.go#L92
Since the clf instance is already removed before this method, "instance.Namespace" and "name" are both not found, so it fails to remove DS.
- links to
-
RHBA-2024:128809 Logging Subsystem 5.9.0 - Red Hat OpenShift
- mentioned on