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

Method create_erasure_code_profile

qa/tasks/ceph_manager.py:2183–2194  ·  view source on GitHub ↗

Create an erasure code profile name that can be used as a parameter when creating an erasure coded pool.

(self, profile_name, profile)

Source from the content-addressed store, hash-verified

2181 return status['pgmap']['num_pgs']
2182
2183 def create_erasure_code_profile(self, profile_name, profile):
2184 """
2185 Create an erasure code profile name that can be used as a parameter
2186 when creating an erasure coded pool.
2187 """
2188 with self.lock:
2189 # msr rules require at least squid
2190 if 'crush-osds-per-failure-domain' in profile:
2191 self.raw_cluster_cmd(
2192 'osd', 'set-require-min-compat-client', 'squid')
2193 args = cmd_erasure_code_profile(profile_name, profile)
2194 self.raw_cluster_cmd(*args)
2195
2196 def create_erasure_code_crush_rule(self, rule_name, profile):
2197 """

Callers 5

taskFunction · 0.95
taskFunction · 0.95
taskFunction · 0.95
taskFunction · 0.80
threadFunction · 0.80

Calls 2

raw_cluster_cmdMethod · 0.95
cmd_erasure_code_profileFunction · 0.90

Tested by

no test coverage detected