Marc and Ken, Thanks for the tips! I will try to work through this asap. -- Patrick Dowler Canadian Astronomy Data Centre Victoria, BC, Canada On Tue, 28 Apr 2020 at 16:04, Ken Dreyer <kdreyer@redhat.com> wrote:
On Mon, Apr 27, 2020 at 11:21 AM Patrick Dowler <pdowler.cadc@gmail.com> wrote:
I am trying to manually create a radosgw instance for a small development installation. I was able to muddle through and get a working mon, mgr,
and
osd (x2), but the docs for radosgw are based on ceph-deploy which is not part of the octopus release.
Here are the steps I did two weeks ago on CentOS 7 for Nautilus. I have not tried Octopus manually yet.
# Install RGW: yum -y install ceph-radosgw mkdir -p /var/lib/ceph/radosgw/ceph-rgw.ceph1
# My /etc/ceph/ceph.conf file: ------- [global] fsid = cbc2b0e2-ed16-4f09-8578-f8c962b1a0ef mon initial members = ceph1 mon host = 192.168.2.101 public network = 192.168.2.0/24 cluster network = 192.168.2.0/24
[client.rgw.ceph1] host = ceph1 rgw frontends = "civetweb port=80" # Uncomment this to write RGW logs: # log file = /var/log/ceph/ceph-rgw.log
# Note: set up wildcard DNS for "*.ceph.example.com" this to work: rgw resolve cname = true rgw dns name = ceph.example.com
---------
# Create RGW keyring: ceph auth get-or-create client.rgw.ceph1 osd 'allow rwx' mon 'allow rw' -o /var/lib/ceph/radosgw/ceph-rgw.ceph1/keyring
# Ensure permissions are correct: chown -R ceph:ceph /var/lib/ceph/radosgw/
# Configure RGW as "done": sudo -u ceph touch /var/lib/ceph/radosgw/ceph-rgw.ceph1/done
# Start the service: systemctl enable --now ceph-radosgw@rgw.ceph1
# Create a RGW user: radosgw-admin user create --uid=kdreyer --display-name="Ken Dreyer" --email=kdreyer@example.com
------
Then, on the s3 client:
# Write our config file: s3cmd --no-ssl --access_key=ASDF123456 --secret_key=FOOBAR123 --host=ceph.example.com --host-bucket="%(bucket)s.ceph.example.com" --dump-config > $HOME/.s3cfg
# Make a "kdreyer" bucket s3cmd mb s3://kdreyer
# Make the whole bucket public: s3cmd setacl s3://kdreyer/ --acl-public
# Upload a test file: echo "Hello World" > /tmp/hello.txt s3cmd put /tmp/hello.txt s3://kdreyer
# Fetch file: curl http://kdreyer.ceph.example.com/hello.txt