ceph.ceph_admin.typing_ module

Custom typing objects to avoid circular imports.

class ceph.ceph_admin.typing_.CephAdmProtocol(*args, **kwds)

Bases: Protocol

CephAdm static duck typing hint to be used with mixin.

cluster: Ceph
config: Dict
distribute_cephadm_gen_pub_key(ssh_key_path=None, nodes=None)
install(**kwargs: Dict) None
installer: CephInstaller
read_cephadm_gen_pub_key(ssh_key_path=None)
set_tool_repo(repo=None)
shell(args: List[str], base_cmd_args: Optional[Dict] = None, check_status: bool = True, timeout: int = 600, long_running: bool = False)
class ceph.ceph_admin.typing_.DaemonProtocol(*args, **kwds)

Bases: OrchProtocol, Protocol

Daemon protocol object for supporting static duck typing hints.

direct_calls: List[str]
class ceph.ceph_admin.typing_.OrchProtocol(*args, **kwds)

Bases: CephAdmProtocol, Protocol

Orch protocol object for supporting static duck typing hints.

check_service(service_name: str, timeout: int = 300, interval: int = 5, exist: bool = True) bool
check_service_exists(service_name: Optional[str] = None, service_type: Optional[str] = None, timeout: int = 300, interval: int = 5) bool
direct_calls: List[str]
get_hosts_by_label(label: str) List
get_role_service(service_name: str) str
op(op: str, config: Dict)
shell(args: List[str], base_cmd_args: Optional[Dict] = None, check_status: bool = True, timeout: int = 600, long_running: bool = False)
validate_spec_services(steps)
verify_status(op: str) None
class ceph.ceph_admin.typing_.ServiceProtocol(*args, **kwds)

Bases: OrchProtocol, Protocol

Base service protocol for supporting static duck typing hints.

SERVICE_NAME: str