distrax.utils.ceph.lspools#

distrax.utils.ceph.lspools(timeout='5')[source]#

Get the current pools.

Parameters:

timeout (str) – The length of time to try and connect to the cluster.

Return type:

List[Dict[str, str]]

Returns:

A list of dictionaries containing the keys ‘poolnum’ and ‘poolname’

Examples

>>> import distrax.utils.ceph as ceph
>>> ceph.lspools()
[{'poolnum': 1, 'poolname': '.mgr',
'poolnum': 2, 'poolname': 'test'}]