MCPcopy Create free account
hub / github.com/ceph/ceph / __init__

Method __init__

qa/tasks/ec_parity_consistency.py:155–163  ·  view source on GitHub ↗
(self, manager: ceph_manager.CephManager,
                 config: Dict[str, Any])

Source from the content-addressed store, hash-verified

153 objects not on the list will not be checked
154 """
155 def __init__(self, manager: ceph_manager.CephManager,
156 config: Dict[str, Any]):
157 self.manager = manager
158 self.os_tool = ObjectStoreTool(manager)
159 self.pools_json = self.manager.get_osd_dump_json()["pools"]
160 self.objects_to_include = config.get('object_list', None)
161 self.pools_to_check = config.get('pools_to_check', None)
162 self.ec_profiles: Dict[int, Any] = {}
163 self.objects: List[ErasureCodeObject] = []
164
165 def has_object_with_uid(self, object_id: str) -> bool:
166 """

Callers

nothing calls this directly

Calls 3

get_osd_dump_jsonMethod · 0.80
ObjectStoreToolClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected