ceph/qa/workunits/rgw/run-bucket-check.sh
Cory Snyder 9b2042a075 rgw: add radosgw-admin bucket check olh/unlinked commands
Adds commands to radosgw-admin for checking for and fixing leftover
entries in the bucket index (and associated RADOS objects).

Fixes: https://tracker.ceph.com/issues/62075
Signed-off-by: Cory Snyder <csnyder@1111systems.com>
2023-09-15 18:43:17 +00:00

20 lines
337 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
# assume working ceph environment (radosgw-admin in path) and rgw on localhost:80
# localhost::443 for ssl
mydir=`dirname $0`
python3 -m venv $mydir
source $mydir/bin/activate
pip install pip --upgrade
pip install boto3
## run test
$mydir/bin/python3 $mydir/test_rgw_bucket_check.py
deactivate
echo OK.