distrax.gateways.ceph_gateway class#

This holds the CephGateway Class, that allows for the creation and removal of ceph rados gateway.

class distrax.gateways.ceph_gateway.CephGateway(folder='ceph', timeout=60)[source]#

Ceph Gateway Class.

This class contains all the methods required to create and remove a Ceph Gateway

To read more about the Ceph Gateway please see: https://docs.ceph.com/en/latest/glossary/#term-RGW

Examples

>>> gateway = CephGateway()
>>> gateway = CephGateway(folder="ceph")
create_gateway()[source]#

Create the Ceph Rados Gateway Daemon.

This Daemon operates with the monitor to provide additional monitoring and interfacing to external tools.

Return type:

None

Examples

>>> gateway.create_gateway()
create_s3_user()[source]#

Create s3 user, along with a credentials_file.

Examples

>>> gateway.create_s3_user()
Returns:

[default] user = distrax access_key = xxxx secret_key = xxxx endpoint = http://xxxx:7480:/

Return type:

credentials_file in the form

remove_gateway()[source]#

Remove the Ceph RadosGateway Daemon.

Return type:

None

Examples

>>> gateway.remove_gateway()