Uploaded image for project: 'Cost Management'
  1. Cost Management
  2. COST-2993

OCI cache not invalidated - local testing issue

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 2023Q1
    • None
    • Data Pipeline
    • False
    • None
    • False

      It seems that OCI cache is not invalidated during local testing

       

      Steps to reproduce:

      1. start OCI data ingestion
      2. request /reports/oci/costs/ report during the ingestion process - report contains no data [expected]
      3. wait for the ingestion to finish
      4. hit /reports/oci/costs/  again - the report still contains no data [unexpeted]
      5. hit /reports/oci/costs/?limit=1001 to invalidate the cache/make sure the data are already loaded - the report contains data
      1. hit /reports/oci/costs/  again to proof it was not a timing issue before - the report still contains no data [unexpeted] 

      Also the logs contains only this kind of information about cache:

      2022-09-09 07:24:45,700: INFO/ForkPoolWorker-12] Invalidated request cache for
      koku-worker_1     |     tenant: public
      koku-worker_1     |     cache_key_prefix: None

      while, for example for GCP we see also this kind of logs:

      koku-worker_1     | [2022-09-09 06:42:22,691] INFO efd9e076-9379-41ab-ba61-8b40bcded870 Invalidated request cache for
      koku-worker_1     |     tenant: org1234567
      koku-worker_1     |     cache_key_prefix: gcp-view 

       

      Note: it seems to work fine in stage ... I didn't try it in other envs..

              rh-ee-dnakabaa David Nakabaale
              rhn-support-esebesto Eva Šebestová
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: