Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions _modules/ceph_cfg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,33 @@ def osd_reweight(**kwargs):
return ceph_cfg.osd_reweight(**kwargs)


def osd_df(**kwargs):
"""
OSD disk space report

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do osd_df and cluster_df differ in what they report? Other then one OSD vs. all OSDs? If not, why not make the docs consistent? Maybe 'Get an OSDs free space'

Or does osd_df report other things too? Then a different name might be appropriate?

CLI Example:

.. code-block:: bash

salt '*' ceph_cfg.osd_df \\
'osd_number'='23' \\
'cluster_name'='ceph' \\
'cluster_uuid'='cluster_uuid'

Notes:

osd_number
OSD number to report space from.

cluster_uuid
Set the deivce to store the osd data on.

cluster_name
Set the cluster name. Defaults to "ceph".
"""
return ceph_cfg.osd_df(**kwargs)


def keyring_create(**kwargs):
'''
Create keyring for cluster
Expand Down Expand Up @@ -1452,6 +1479,34 @@ def cluster_status(**kwargs):
return ceph_cfg.cluster_status(**kwargs)


def cluster_df(**kwargs):
'''
Get the cluster free space

CLI Example:

.. code-block:: bash

salt '*' ceph_cfg.cluster_df \\
'cluster_name'='ceph' \\
'cluster_uuid'='cluster_uuid'
Notes:
Get the cluster free space.

Scope:
Cluster wide

Arguments:

cluster_uuid
Set the cluster UUID. Defaults to value found in ceph config file.

cluster_name
Set the cluster name. Defaults to "ceph".
'''
return ceph_cfg.cluster_df(**kwargs)


def cephfs_list(**kwargs):
'''
list the cephfs filesystems
Expand Down