distrax.pools.ceph_pool class#

This holds the CephPool Class, that allows for the creation and removal of ceph pools.

class distrax.pools.ceph_pool.CephPool[source]#

CephPool class this allows for the creation and removal of the Ceph Pools.

To read more about the Ceph Pools please see: https://docs.ceph.com/en/latest/rados/operations/pools/

Examples

>>> pool = CephPool()
static create_pool(name='distrax', percentage=1.0)[source]#

Create the Pool to store objects.

Parameters:
  • name (str) – The name of the pool

  • percentage (float) – The percentage of the cluster to allocate to the pool.

Return type:

None

Examples

>>> pool.create_pool(name="distrax", percentage=1.0)
    pool 'distrax' created
static remove_pools()[source]#

Remove and purge pools.

Return type:

None

Examples

>>> ceph.remove_pools()
Warning: using slow linear search
Removed 2 objects
successfully purged pool .mgr
pool '.mgr' removed