In this lab, you will configure Ceph to provide object storage to clients.
Outcomes
You should be able to deploy and configure the Ceph RADOS Storage service.
As the student user on the workstation machine, use the lab command to prepare your system for this lab.
[student@workstation ~]$ lab start object-review
This command ensures that the lab environment is created and ready for the lab exercise.
Procedure 8.3. Instructions
Log in to serverc as the admin user.
Create a realm called prod and set it as the default.
Create a master zone group called us-west with the endpoint set to http://serverc:8080. Set the zone group as the default.
Log in to serverc as the admin user and use sudo to run the cephadm shell.
[student@workstation ~]$ssh admin@serverc[admin@serverc ~]$sudo cephadm shell[ceph: root@serverc /]#
Create a realm called prod and set it as the default.
[ceph: root@serverc /]# radosgw-admin realm create --rgw-realm=prod --defaultCreate a master zone group called us-west.
[ceph: root@serverc /]# radosgw-admin zonegroup create --rgw-zonegroup=us-west \
--endpoints=http://serverc:8080 --master --defaultCreate a master zone called us-west-1 and set the endpoint to http://serverc:8080. Set the zone as the default.
Use admin as the access key and secure as the secret key.
Create a system user called admin.user with admin as the access key and secure as the secret key.
Commit the configuration.
Save the period ID value in the /home/admin/period-id.txt file on the serverc node.
Do not include quotes, double quotes, or characters other than the period ID in UUID format.
Deploy a RADOS Gateway service called prod-object with two instances running on port 8080, one on the serverc node and the second on the servere node.
Return to workstation as the student user.
This concludes the lab.