
- Add is_ceph_healthy() - Add wait_for_ceph_health_status() - Add get_ceph_osd_count() - Add get_ceph_mon_count() - Add unit_tests ceph_s_table_parser_test.py Change-Id: Ibda00d122a704d8741deb15be0b53afcf2d6654d Signed-off-by: ppeng <peng.peng@windriver.com>
57 lines
933 B
Python
57 lines
933 B
Python
class CephDataObject:
|
|
"""
|
|
Object to hold the values of Ceph Data Object
|
|
"""
|
|
|
|
def __init__(self):
|
|
self.volumes: str = ""
|
|
self.pools: str = ""
|
|
self.objects: str = ""
|
|
self.usage: str = ""
|
|
self.pgs: str = ""
|
|
|
|
def get_volumes(self) -> str:
|
|
"""
|
|
Getter for volumes
|
|
|
|
Returns: volumes
|
|
|
|
"""
|
|
return self.volumes
|
|
|
|
def get_pools(self) -> str:
|
|
"""
|
|
Getter for pools
|
|
|
|
Returns: pools
|
|
|
|
"""
|
|
return self.pools
|
|
|
|
def get_objects(self) -> str:
|
|
"""
|
|
Getter for objects
|
|
|
|
Returns: objects
|
|
|
|
"""
|
|
return self.objects
|
|
|
|
def get_usage(self) -> str:
|
|
"""
|
|
Getter for usage
|
|
|
|
Returns: usage
|
|
|
|
"""
|
|
return self.usage
|
|
|
|
def get_pgs(self) -> str:
|
|
"""
|
|
Getter for pgs
|
|
|
|
Returns: pgs
|
|
|
|
"""
|
|
return self.pgs
|