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

Method create_pool

src/pybind/mgr/mgr_module.py:1199–1209  ·  view source on GitHub ↗
(self, pool: str)

Source from the content-addressed store, hash-verified

1197 @API.perm('w')
1198 @API.expose
1199 def create_pool(self, pool: str) -> None:
1200 c = {
1201 'prefix': 'osd pool create',
1202 'format': 'json',
1203 'pool': pool,
1204 'pg_num': 1,
1205 'pg_num_min': 1,
1206 'pg_num_max': 32,
1207 'yes_i_really_mean_it': True
1208 }
1209 self.check_mon_command(c)
1210
1211 @API.perm('w')
1212 @API.expose

Callers 2

create_mgr_poolMethod · 0.95
_create_poolMethod · 0.45

Calls 1

check_mon_commandMethod · 0.95

Tested by

no test coverage detected