distrax.utils.ceph.osd_status#
- distrax.utils.ceph.osd_status()[source]#
Get the status of the OSDs.
- Return type:
- Returns:
Where the int is a number
>>> {'epoch': int, ... 'num_osds': int, ... 'num_up_osds': int, ... 'osd_up_since': int, ... 'num_in_osds': int, ... 'osd_in_since': int, ... 'num_remapped_pgs': int}
Examples
>>> import distrax.utils.ceph as ceph >>> ceph.osd_status() {'epoch': 1, 'num_osds': 5, 'num_up_osds': 5, 'osd_up_since': 1, 'num_in_osds': 5, 'osd_in_since': 1, 'num_remapped_pgs': 0}