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

Resources created after enabling receiver.http are not cleaned up after CLF is deleted

XMLWordPrintable

    • False
    • None
    • False
    • NEW
    • NEW
    • Log Collection - Sprint 243
    • Low

      Tester: Dhruv Gautam

      Epic URL: *https://issues.redhat.com/browse/LOG-3965*

      Feature: Collector to act as http server

      DOCS followed: No docs available for the feature yet. Referred to the CLF CRD for understanding.

       

      Steps to Reproduce:

      • Install and configure ClusterLogging using RHOL 5.8 operator.
      • Deploy CLF using below config:

       

      apiVersion: logging.openshift.io/v1
      
      kind: ClusterLogForwarder
      metadata: 
       name: instance
       namespace: openshift-logging
      spec: 
       inputs: 
        - name: http-audit
         receiver: 
          http: 
           format: kubeAPIAudit
           receiverPort: 
            port: 8081
       pipelines: 
        - name: to-default
         inputRefs: 
         - http-audit
         outputRefs: 
         - default
      
      • This creates a service and a secret called http-audit. 
      • Delete the CLF and check if the service and secret gets deleted.

       

      $ oc delete clf instance
      

      clusterlogforwarder.logging.openshift.io "instance" deleted

      — Wait 5 mins -----

      $ oc get svc,secret | grep http-audit
      service/http-audit                         ClusterIP   172.30.211.15    <none>        8081/TCP                     90s
      secret/http-audit                                 kubernetes.io/tls                     2      90s
      

      Actual Results:

      The associated resources (service and secret) are not cleaned up.

       

      Expected Results:

      The resources should get cleaned up after CLF is deleted or if the associated inputs are removed from CLF instance.

            syedriko_sub@redhat.com Sergey Yedrikov
            rhn-support-dgautam Dhruv Gautam
            Anping Li Anping Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: