Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-5035

Collector pods are not being removed when you delete the CLF

XMLWordPrintable

    • 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:

      1. install vector only CL instance (no logstore)
      2. create clf instance and observe pods created
      3. 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.

              vparfono Vitalii Parfonov
              cahartma@redhat.com Casey Hartman
              Kabir Bharti Kabir Bharti
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: