...
- nodei sees invalid files in ACEi
- nodei gathers invalid files and issues a repair request to the ingest server
- POST /api/repair
- Handled manually
- Consider having multiple requests in the event many files are corrupt
- nodev sees the repair request
- Handled manually, likely from discussion in the chron group
- nodev checks ACEv to see if the files are valid
- POST /api/repair/<id>/fulfill if valid
- nodev stages content for nodei
- P2P: make a link (or links) to the files in a directory for nodei
- Ingest: rsync the files up to the ingest server
- ACE: create a token for nodei and make that available
- P2P: make a link (or links) to the files in a directory for nodei
- nodev notifies ingest server that content is ready for nodei
- POST /api/repair/fulfillment/<id>/ready
- nodei replicates staged content
- GET /api/repair/fulfillment?to=nodei&status=ready
- nodei validates staged content
- communicates with ACE compare API
- if not valid, end here
- nodei copies staged content to preservation storage
- nodei issues an audit of the corrupt files
- nodei responds with the result of the audit
- if the audit is not successful a new replication request will need to be made, but we might want to do that by hand
- POST /api/repair/fulfillment/<id>/complete
...