Closed charlienegri closed 9 months ago
update 22 Jan:
I could delete and re-ingest correctly for example the file with UUID 8a6928df-0644-4e2a-b023-af7cbdb7c567
curl -X POST https://dmci.s-enda-staging.k8s.met.no/v1/delete/no.met.staging:8a6928df-0644-4e2a-b023-af7cbdb7c567
(--> Everything is OK
)
curl --data-binary @arch_f/arch_d/arch_8/8a6928df-0644-4e2a-b023-af7cbdb7c567.xml https://dmci.s-enda-staging.k8s.met.no/v1/insert
(--> Everything is OK
)
but when I try for example curl -X POST https://dmci.s-enda-staging.k8s.met.no/v1/delete/no.met.staging:ddb4c5d1-70b5-4d09-98a8-fadbf5e2d2ba
it still fails with
The following distributors failed: file
- file: File not found: ddb4c5d1-70b5-4d09-98a8-fadbf5e2d2ba.xml
the file is in the repo as arch_1/arch_d/arch_5/ddb4c5d1-70b5-4d09-98a8-fadbf5e2d2ba.xml
It turns out this is most likely related to the changes in git-periodic-pusher. We will revert those changes, so then I hope this issue should be solved.
solved!
in principle it needs to be tested at least an hour after rebuilding the catalog (in dev)
it seems to work now
commands like
curl -X POST https://dmci.s-enda-staging.k8s.met.no/v1/delete/no.met.staging:ddb4c5d1-70b5-4d09-98a8-fadbf5e2d2ba
fail withwhen trying to delete existing files
on the top of this, some files that are in the mmd-xml-staging repo appear not to be ingested (this might be fixed by a rebuild but no idea why it happened) e.g.
curl -X POST https://dmci.s-enda-staging.k8s.met.no/v1/delete/no.met.staging:043aa5eb-d0ac-4dde-8da2-33e318e8dd65
gives