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

Delete by query doesn't delete all the projects' logs defined in retentionPolicy

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • Logging 5.4.0
    • Logging 5.4.0
    • Log Storage
    • None
    • False
    • False
    • NEW
    • VERIFIED
    • Logging (LogExp) - Sprint 214

    Description

      Description of problem:

      Creating a clusterlogging/instance, set 2 or more namespaces in retentionPolicy.application.namespaceSpec, then check the logs in ES, only the first project's logs are removed per the minAge.

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

      elasticsearch-operator.5.4.0-68

      How reproducible:

      Always

      Steps to Reproduce:
      1. create some projects to generate logs
      2. create cl/instance with:

          logStore:
            elasticsearch:
              nodeCount: 3
              redundancyPolicy: SingleRedundancy
              resources:
                requests:
                  cpu: 1
                  memory: 2Gi
              storage:
                size: 20Gi
                storageClassName: standard
            retentionPolicy:
              application:
                maxAge: 3h
                namespaceSpec:
                - minAge: 10m
                  namespace: project-1
                - minAge: 20m
                  namespace: project-2
                - minAge: 20m
                  namespace: qitang
                pruneNamespacesInterval: 10m
              audit:
                maxAge: 1d
              infra:
                maxAge: 3h
            type: elasticsearch

      3. wait for 1 hour, check the logs in app* indices

      Actual results:

      Only the first project's logs are removed following the minAge, other projects' logs are not removed  

      Expected results:

      Additional info: 

      Attachments

        1. project-1.png
          project-1.png
          160 kB
        2. project-2.png
          project-2.png
          172 kB
        3. qitang.png
          qitang.png
          205 kB

        Issue Links

          Activity

            People

              sasagarw@redhat.com Sashank Agarwal (Inactive)
              qitang@redhat.com Qiaoling Tang
              Qiaoling Tang Qiaoling Tang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: