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}) -- bash
East Control Pod
kubectl exec -it -n rook-east $(kubectl get pods -n rook-east --selector=app=rook-ceph-tools --output=jsonpath={.items..metadata.name}) -- bash
Central Control Pod
kubectl exec -it -n rook-central $(kubectl get pods -n rook-central --selector=app=rook-ceph-tools --output=jsonpath={.items..metadata.name}) -- bash
Adding 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 "<email>"
East Pool
radosgw-admin --rgw-realm=easts3 --rgw-zone=easts3 --rgw-zonegroup=easts3 user create --uid <uid> --display-name "<email>"
Central Pool
radosgw-admin --rgw-realm=centrals3 --rgw-zone=centrals3 --rgw-zonegroup=centrals3 user create --uid <uid> --display-name "<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>
, and the email address as <email>
.
Deleting Users' Buckets
Step 1: Link the User's Bucket
First, you need to link the user's bucket to your uid. Run the following command after logging into the Ceph control pod in the correct region of the bucket:
- Replace
<USER>
with the admin’s ID. - Replace
<BUCKET>
with the name of the user's bucket.
Step 2: List the Contents of the Bucket
Next, confirm the contents of the user's bucket using the following command:
Step 3: Delete All Objects
If there are objects listed, delete them with the following command:
Step 4: Force Delete the Bucket
Once you have confirmed that all objects are deleted, remove the bucket with: