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

First of the month issue - OCI previous month's data not ingested locally

XMLWordPrintable

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

      When ingesting OCI data in local env on the first of the month, the data for previous month doesn't show up.

      I believe it is because summarizaiton is skipped:

      koku-worker_1                 | [2022-11-01 16:40:27,921] INFO a3a5a4ad-0808-49ca-8ec5-0d0e10e6dd37 No bill was found for 2022-10-01. Skipping summarization 

      I tried to ingest data after setting my laptop to tomorrow's date (2022-11-02) and it worked fine.

       

      Steps to reproduce:

      1. change date on your laptop to the first of the month (e.g., 2022-11-01)
      2. ingest two month OCI data (for example place breakpoint() in the beginning of the  test_api_oci_ingest_single_source test and run the test
      3. wait 2 mins to make sure the ingestion is complete
      4. hit http://localhost:8000/api/cost-management/v1/reports/oci/costs/
        you will see no data for previous month
      5. check logs - you will "No bill was found for 2022-10-01. Skipping summarization"

       

       

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

                Created:
                Updated:
                Resolved: