Ceph S3
To log into the Ceph control pod:
West Control Pod:
kubectl exec -it -n rook $(kubectl get pods -n rook --selector=app=rook-ceph-tools --output=jsonpath={.items..metadata.name}) -- bashEast Control Pod:
kubectl exec -it -n rook-east $(kubectl get pods -n rook-east --selector=app=rook-ceph-tools --output=jsonpath={.items..metadata.name}) -- bashCentral Control Pod:
kubectl exec -it -n rook-central $(kubectl get pods -n rook-central --selector=app=rook-ceph-tools --output=jsonpath={.items..metadata.name}) -- bashAdding Users
Once logged into the Ceph control pod, run the command to add a user:
West Pool:
radosgw-admin --rgw-realm=nautiluss3 --rgw-zone=nautiluss3 --rgw-zonegroup=nautiluss3 user create --uid <uid> --display-name "<name>" --email "<email>"East Pool:
radosgw-admin --rgw-realm=easts3 --rgw-zone=easts3 --rgw-zonegroup=easts3 user create --uid <uid> --display-name "<name>" --email "<email>"Central Pool:
radosgw-admin --rgw-realm=centrals3 --rgw-zone=centrals3 --rgw-zonegroup=centrals3 user create --uid <uid> --display-name "<name>" --email "<email>"The access_key and secret_key is in the output from the above command.
If the request is from the Matrix support channel, use the user’s nickname as uid, name as name and the email address as email.
Deleting Users’ Buckets
Step 1: Link the Bucket
radosgw-admin bucket link --uid=USER --bucket=BUCKET- Replace
USERwith the admin’s ID. - Replace
BUCKETwith the name of the user’s bucket.
Step 2: Delete All Objects in the Bucket
rclone delete S3:bucket-name/ --transfers 1000 --checkers 2000 --disable ListR --progress--transfers 1000: Number of parallel file transfers.--checkers 2000: Number of simultaneous checks.--disable ListR: Speeds up deletion by skipping recursive listing.--progress: Shows progress.
Step 3: Remove the Bucket
rclone rmdir S3:bucket-name --progress
This work was supported in part by National Science Foundation (NSF) awards CNS-1730158, ACI-1540112, ACI-1541349, OAC-1826967, OAC-2112167, CNS-2100237, CNS-2120019.