
- 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>
27 lines
445 B
Python
27 lines
445 B
Python
class CephClusterObject:
|
|
"""
|
|
Object to hold the values of Ceph Cluster Object
|
|
"""
|
|
|
|
def __init__(self):
|
|
self.id: str = ""
|
|
self.health: str = ""
|
|
|
|
def get_id(self) -> str:
|
|
"""
|
|
Getter for id
|
|
|
|
Returns: id
|
|
|
|
"""
|
|
return self.id
|
|
|
|
def get_health(self) -> str:
|
|
"""
|
|
Getter for ceph health status
|
|
|
|
Returns: health
|
|
|
|
"""
|
|
return self.health
|