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:
- change date on your laptop to the first of the month (e.g., 2022-11-01)
- 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
- wait 2 mins to make sure the ingestion is complete
- hit http://localhost:8000/api/cost-management/v1/reports/oci/costs/
you will see no data for previous month - check logs - you will "No bill was found for 2022-10-01. Skipping summarization"
- is related to
-
COST-2171 Oracle Cloud Infrastructure API/UI for Cost Management
- Closed