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

Method init_system

src/ceph-node-proxy/ceph_node_proxy/main.py:97–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

95 return oob_details
96
97 def init_system(self) -> None:
98 try:
99 oob_details = self.fetch_oob_details()
100 self.username = oob_details["username"]
101 self.password = oob_details["password"]
102 except HTTPError:
103 self.log.warning("No oob details could be loaded, exiting...")
104 raise SystemExit(1)
105 try:
106 vendor = self.config.get("system", {}).get("vendor", "generic")
107 system_cls = get_system_class(vendor)
108 self.system = system_cls(
109 host=oob_details["host"],
110 port=oob_details["port"],
111 username=oob_details["username"],
112 password=oob_details["password"],
113 config=self.config,
114 )
115 self.system.start()
116 except RuntimeError:
117 self.log.error("Can't initialize the redfish system.")
118 raise
119
120 def init_reporter(self) -> None:
121 try:

Callers 2

initMethod · 0.95
loopMethod · 0.95

Calls 6

fetch_oob_detailsMethod · 0.95
get_system_classFunction · 0.90
warningMethod · 0.45
getMethod · 0.45
startMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected