O'Reilly logo

Learning Ceph - Second Edition by Karan Singh, Vaibhav Bhembre, Anthony D'Atri

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Enabling the Swift API

Ceph's RGW also offers a RESTful API that is compatible with OpenStack's Swift. However, unlike S3, we need to create a separate user for Swift. In Ceph's nomenclature, such a user is a subuser. The new subuser we create for our original RGW user will give us access to the same objects and buckets that we have created via S3 but using the Swift interface.

Creation of the subuser will be done from the RGW virtual machine itself, the same node we used to run all the above commands. We will use the familiar radosgw-admin utility to create a subuser for making calls through the Swift API:

root@ceph-rgw0:~# radosgw-admin subuser create --uid=harshita --subuser=harshita:swift --key-type=swift{    "user_id": "harshita", "display_name": ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required