root@node03:~# radosgw-admin user info --uid=rgw
{
"user_id": "rgw",
"display_name": "rgw",
"email": "",
"suspended": 0,
"max_buckets": 1000,
"subusers": [],
"keys": [
{
"user": "rgw",
"access_key": "OZ2T5HEVSR2EM0XNMLVZ",
"secret_key": "rZDGLyyLE8mtQXRbAuMrhyGYSNNY33GSDMl9jVp8"
}
],
"swift_keys": [],
"caps": [],
"op_mask": "read, write, delete",
"system": "true",
"default_placement": "",
"default_storage_class": "",
"placement_tags": [],
"bucket_quota": {
"enabled": false,
"check_on_raw": false,
"max_size": -1,
"max_size_kb": 0,
"max_objects": -1
},
"user_quota": {
"enabled": false,
"check_on_raw": false,
"max_size": -1,
"max_size_kb": 0,
"max_objects": -1
},
"temp_url_keys": [],
"type": "rgw",
"mfa_ids": []
}
root@node03:~#
root@node03:~# s3cmd --configure
Enter new values or accept defaults in brackets with Enter.
Refer to user manual for detailed description of all options.
Access key and Secret key are your identifiers for Amazon S3. Leave them empty for using the env variables.
Access Key: OZ2T5HEVSR2EM0XNMLVZ
Secret Key: rZDGLyyLE8mtQXRbAuMrhyGYSNNY33GSDMl9jVp8
Default Region [US]:
Use "s3.amazonaws.com" for S3 Endpoint and not modify it to the target Amazon S3.
S3 Endpoint [s3.amazonaws.com]:
Use "%(bucket)s.s3.amazonaws.com" to the target Amazon S3. "%(bucket)s" and "%(location)s" vars can be used
if the target S3 system supports dns based buckets.
DNS-style bucket+hostname:port template for accessing a bucket [%(bucket)s.s3.amazonaws.com]:
Encryption password is used to protect your files from reading
by unauthorized persons while in transfer to S3
Encryption password:
Path to GPG program [/usr/bin/gpg]:
When using secure HTTPS protocol all communication with Amazon S3
servers is protected from 3rd party eavesdropping. This method is
slower than plain HTTP, and can only be proxied with Python 2.7 or newer
Use HTTPS protocol [Yes]:
On some networks all internet access must go through a HTTP proxy.
Try setting it here if you can't connect to S3 directly
HTTP Proxy server name:
New settings:
Access Key: OZ2T5HEVSR2EM0XNMLVZ
Secret Key: rZDGLyyLE8mtQXRbAuMrhyGYSNNY33GSDMl9jVp8
Default Region: US
S3 Endpoint: s3.amazonaws.com
DNS-style bucket+hostname:port template for accessing a bucket: %(bucket)s.s3.amazonaws.com
Encryption password:
Path to GPG program: /usr/bin/gpg
Use HTTPS protocol: True
HTTP Proxy server name:
HTTP Proxy server port: 0
Test access with supplied credentials? [Y/n]
Please wait, attempting to list all buckets...
ERROR: Test failed: 403 (InvalidAccessKeyId): The AWS Access Key Id you provided does not exist in our records.
Retry configuration? [Y/n] n
Save settings? [y/N] y
Configuration saved to '/root/.s3cfg'
root@node03:~#
root@node03:~# cat .s3cfg
[default]
access_key = OZ2T5HEVSR2EM0XNMLVZ
access_token =
add_encoding_exts =
add_headers =
bucket_location = US
ca_certs_file =
cache_file =
check_ssl_certificate = True
check_ssl_hostname = True
cloudfront_host = node03
default_mime_type = binary/octet-stream
delay_updates = False
delete_after = False
delete_after_fetch = False
delete_removed = False
dry_run = False
enable_multipart = True
encoding = UTF-8
encrypt = False
expiry_date =
expiry_days =
expiry_prefix =
follow_symlinks = False
force = False
get_continue = False
gpg_command = /usr/bin/gpg
gpg_decrypt = %(gpg_command)s -d --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
gpg_encrypt = %(gpg_command)s -c --verbose --no-use-agent --batch --yes --passphrase-fd %(passphrase_fd)s -o %(output_file)s %(input_file)s
gpg_passphrase =
guess_mime_type = True
host_base = node03
host_bucket = %(*)s.node03
human_readable_sizes = False
invalidate_default_index_on_cf = False
invalidate_default_index_root_on_cf = True
invalidate_on_cf = False
kms_key =
limitrate = 0
list_md5 = False
log_target_prefix =
long_listing = False
max_delete = -1
mime_type =
multipart_chunk_size_mb = 15
preserve_attrs = True
progress_meter = True
proxy_host =
proxy_port = 0
put_continue = False
recursive = False
recv_chunk = 65536
reduced_redundancy = False
requester_pays = False
send_chunk = 65536
server_side_encryption = False
signature_v2 = False
simpledb_host = node03
skip_existing = False
socket_timeout = 10
stop_on_error = False
storage_class =
urlencoding_mode = normal
use_https = False
use_mime_magic = True
verbosity = WARNING
website_endpoint = http://rgw.node03/
website_error =
website_index = index.html
root@node03:~#
root@node03:/etc/ceph# ls
ceph.client.admin.keyring ceph.conf
root@node03:/etc/ceph# s3cmd put ceph.conf ceph.c
ceph.client.admin.keyring ceph.conf
root@node03:/etc/ceph# s3cmd put ceph.conf s3://20220619
upload: 'ceph.conf' -> 's3://20220619/ceph.conf' [1 of 1]
277 of 277 100% in 2s 95.33 B/s done
root@node03:/etc/ceph# s3cmd ls s3://20220619/
2022-06-19 14:36 277 s3://20220619/ceph.conf
root@node03:/etc/ceph#
root@node03:/etc/ceph# ls
ceph.client.admin.keyring ceph.conf
root@node03:/etc/ceph# s3cmd put ceph.conf ceph.c
ceph.client.admin.keyring ceph.conf
root@node03:/etc/ceph# s3cmd put ceph.conf s3://20220619
upload: 'ceph.conf' -> 's3://20220619/ceph.conf' [1 of 1]
277 of 277 100% in 2s 95.33 B/s done
root@node03:/etc/ceph# s3cmd ls s3://20220619/
2022-06-19 14:36 277 s3://20220619/ceph.conf
root@node03:/etc/ceph#
root@node03:/etc/ceph# rados -p default.rgw.buckets.data ls
b5d13f3d-a09a-466d-b14a-7890b42fb7bd.114247.2_ceph.conf
root@node03:/etc/ceph#