Project

General

Profile

Actions

Feature #16681

open

Creating EC pool using replicated ruleset should perhaps require a force flag

Added by Rohith Radhakrishnan almost 8 years ago. Updated over 7 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Issue description:-

While creating a EC pool if we use the ruleset "replicated_ruleset" with type "replicated", there is no error thrown and the pool creation proceeds successfully. This shouldn't be allowed, as EC pools should be created only with "ruleset type erasure"

example:-
rule replicated_ruleset {
ruleset 0
type replicated
min_size 1
max_size 10
step take default
step chooseleaf firstn 0 type host
step emit

ceph osd pool create ecpooltest1 100 erasure default replicated_ruleset

ceph osd pool  get ecpooltest1 crush_ruleset
crush_ruleset: 0
Actions #1

Updated by Rohith Radhakrishnan over 7 years ago

any update on this? Is this behavior expected?

Actions #2

Updated by Samuel Just over 7 years ago

  • Tracker changed from Bug to Feature
  • Subject changed from Creating EC pool using replicated ruleset should not be allowed to Creating EC pool using replicated ruleset should perhaps require a force flag

Well, it'll work, it'll just cause a ton of data movement. By default, I think the normal way of creating an ec pool creates the rule too. Not sure how important this is.

Actions

Also available in: Atom PDF