- 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>
47 lines
729 B
Python
47 lines
729 B
Python
class CephServicesObject:
|
|
"""
|
|
Object to hold the values of Ceph Services Object
|
|
"""
|
|
|
|
def __init__(self):
|
|
self.mon: str = ""
|
|
self.mgr: str = ""
|
|
self.mds: str = ""
|
|
self.osd: str = ""
|
|
|
|
def get_mon(self) -> str:
|
|
"""
|
|
Getter for mon
|
|
|
|
Returns: mon
|
|
|
|
"""
|
|
return self.mon
|
|
|
|
def get_mgr(self) -> str:
|
|
"""
|
|
Getter for mgr
|
|
|
|
Returns: mgr
|
|
|
|
"""
|
|
return self.mgr
|
|
|
|
def get_mds(self) -> str:
|
|
"""
|
|
Getter for mds
|
|
|
|
Returns: mds
|
|
|
|
"""
|
|
return self.mds
|
|
|
|
def get_osd(self) -> str:
|
|
"""
|
|
Getter for osd
|
|
|
|
Returns: osd
|
|
|
|
"""
|
|
return self.osd
|