Find lost objects on Scality
The obox package contains a script scality-find-lost-objects.pl that looks up the objects from Scality by fetching the HEAD using curl --head. If the objects can be found in Scality they are then retrieved from Cassandra with doveadm dict get.
INFO
The default Scality URL to retrieve the objects from is http://localhost:801.
You may have to change this by editing the line my $HOST = "localhost:801"; in the script to your specific setup.
Input
The script expects a list of object IDs via stdin, each one on a separate line.
Output
Depending on its result the following results are possible:
- OK: Scality object exists and matches Cassandra object,
- Mismatch: Scality object exists but does not match Cassandra object,
- Error:
doveadm dict getreturned with a non-zero status code, - Not Found: The scality object was not found in Cassandra.
Additionally the following general errors might occur:
- Scality does not contain the given object ID,
- Scality returned no valid response for the given object ID,
- Scality returned a valid response but it doesn't contain a valid index file in Cassandra.