Create an erasure code profile name that can be used as a parameter when creating an erasure coded pool.
(self, profile_name, profile)
| 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 | """ |