def _ceph_lookup_release_name(self, release: int) -> str: ...
def _ceph_cluster_log(self, channel: str, priority: int, message: str) -> None: ...
def _ceph_get_context(self) -> object: ...
- def _ceph_get(self, data_name: str) -> Dict[str, Any]: ...
+ def _ceph_get(self, data_name: str) -> Any: ...
def _ceph_get_server(self, hostname: Optional[str]) -> Union[ServerInfoT,
List[ServerInfoT]]: ...
def _ceph_get_perf_schema(self, svc_type: str, svc_name: str) -> Dict[str, Any]: ...
return self._pool_raw_used_rate(pool_id)
@classmethod
- def build_simple(cls, epoch: int = 1, uuid: Optional[str] = None, num_osd: int = -1):
+ def build_simple(cls, epoch: int = 1, uuid: Optional[str] = None, num_osd: int = -1) -> 'ceph_module.BasePyOSDMap':
return cls._build_simple(epoch, uuid, num_osd)
def get_ec_profile(self, name: str) -> Optional[List[Dict[str, str]]]:
def CLIRequiresDB(func: HandlerFuncType) -> HandlerFuncType:
@functools.wraps(func)
- def check(self, *args: Any, **kwargs: Any) -> Tuple[int, str, str]:
+ def check(self: MgrModule, *args: Any, **kwargs: Any) -> Tuple[int, str, str]:
if not self.db_ready():
return -errno.EAGAIN, "", "mgr db not yet available"
return func(self, *args, **kwargs)
def get_active_uri(self) -> str:
return self._ceph_get_active_uri()
- def get(self, data_name: str):
+ def get(self, data_name: str) -> Dict[str, Any]:
return self._ceph_get(data_name)
def get_mgr_ip(self) -> str:
self._rados.shutdown()
self._ceph_unregister_client(addrs)
- def get(self, data_name: str):
+ def get(self, data_name: str) -> Any:
"""
Called by the plugin to fetch named cluster-wide objects from ceph-mgr.
return ret
- def get_server(self, hostname) -> ServerInfoT:
+ def get_server(self, hostname: str) -> ServerInfoT:
"""
Called by the plugin to fetch metadata about a particular hostname from
ceph-mgr.