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

Method create_mgr_pool

src/pybind/mgr/mgr_module.py:1225–1237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1223 @API.perm('w')
1224 @API.expose
1225 def create_mgr_pool(self) -> None:
1226 self.log.info("creating mgr pool")
1227
1228 ov = self.get_module_option_ex('devicehealth', 'pool_name', 'device_health_metrics')
1229 devhealth = cast(str, ov)
1230 if devhealth is not None and self.pool_exists(devhealth):
1231 self.log.debug("reusing devicehealth pool")
1232 self.rename_pool(devhealth, self.MGR_POOL_NAME)
1233 self.appify_pool(self.MGR_POOL_NAME, 'mgr')
1234 else:
1235 self.log.debug("creating new mgr pool")
1236 self.create_pool(self.MGR_POOL_NAME)
1237 self.appify_pool(self.MGR_POOL_NAME, 'mgr')
1238
1239 def create_skeleton_schema(self, db: sqlite3.Connection) -> None:
1240 SQL = [

Callers 1

open_dbMethod · 0.95

Calls 7

get_module_option_exMethod · 0.95
pool_existsMethod · 0.95
rename_poolMethod · 0.95
appify_poolMethod · 0.95
create_poolMethod · 0.95
infoMethod · 0.45
debugMethod · 0.45

Tested by

no test coverage detected