NASA-IMPACT / csdap-cumulus

SmallSat Cumulus Deployment
Other
1 stars 0 forks source link

Migrate collection WV04_MSI_L1B to CBA Prod #314

Closed chuckwondo closed 6 months ago

chuckwondo commented 7 months ago

Migrate granules in collection WV04_MSI_L1B to CBA Prod by discovering/ingesting from existing prod account.

Acceptance criteria

To determine how many granules have been processed, first enter the Docker container:

DOTENV=.env.cba-prod make bash

In the container, run the following:

DEBUG=1 cumulus granules list -? collectionId=WV04_MSI_L1B___1 --limit=0 -? status=completed

(note: due to a Cumulus bug, sometimes the status does not get properly updated. Try running these to match the numbers

DEBUG=1 cumulus granules list -? collectionId=WV04_MSI_L1B___1 --limit=0
DEBUG=1 cumulus granules list -? collectionId=WV04_MSI_L1B___1 --limit=0 -? status=queued
DEBUG=1 cumulus granules list -? collectionId=WV04_MSI_L1B___1 --limit=0 -? status=running
DEBUG=1 cumulus granules list -? collectionId=WV04_MSI_L1B___1 --limit=0 -? status=completed
DEBUG=1 cumulus granules list -? collectionId=WV04_MSI_L1B___1 --limit=0 -? status=failed

You should see output similar to the following:

...
RESPONSE: {
  statusCode: 200,
  body: '{"meta":{"name":"cumulus-api","stack":"cumulus-prod","table":"granule","limit":0,"page":1,"count":8592},"results":[]}',
  headers: {
    'x-powered-by': 'Express',
    'access-control-allow-origin': '*',
    'strict-transport-security': 'max-age=31536000; includeSubDomains',
    'content-type': 'application/json; charset=utf-8',
    'content-length': '114',
    etag: 'W/"72-O2wUXhu+Q9J1hqdDrb0fcsZeFHo"',
    date: 'Fri, 01 Dec 2023 21:29:19 GMT',
    connection: 'close'
  },
  isBase64Encoded: false
}
[]

In particular, look at the value for body and within it, locate the value of "count". In the output above, the count should match the Earthdata Search granule count obtained in the very first step.

krisstanton commented 6 months ago

The count before migration ingest from Earthdata Search is 6753.

krisstanton commented 6 months ago

All granules have been ingested and accounted for. The total count is correct however the cumulus granules list is showing status that is not correct.

DEBUG=1 cumulus granules list -? collectionId=WV04_MSI_L1B___1 --limit=0 -? status=completed
6012
DEBUG=1 cumulus granules list -? collectionId=WV04_MSI_L1B___1 --limit=0 -? status=failed
0
DEBUG=1 cumulus granules list -? collectionId=WV04_MSI_L1B___1 --limit=0 -? status=queued
320
DEBUG=1 cumulus granules list -? collectionId=WV04_MSI_L1B___1 --limit=0 -? status=running
421