Project

General

Profile

Actions

Bug #54005

closed

Why can wrong parameters be specified when creating erasure-code-profile, and erasure crush rule can be created successfully

Added by wang kevin about 2 years ago. Updated about 2 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

My osd tree is like below:

ceph osd tree
ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF
-7 0.19498 root mytest
-8 0.19498 host test_host
6 hdd 0.19498 osd.6 up 1.00000 1.00000
-1 1.17097 root default
-3 0.58600 host master
0 hdd 0.19499 osd.0 up 1.00000 1.00000
2 hdd 0.19499 osd.2 up 1.00000 1.00000
4 hdd 0.19499 osd.4 up 1.00000 1.00000
-5 0.58498 host node2
1 hdd 0.19499 osd.1 up 1.00000 1.00000
3 hdd 0.19499 osd.3 up 1.00000 1.00000
5 hdd 0.19499 osd.5 up 1.00000 1.00000

But when I created the erasure-code-profile, I specified the device type as ssd, and I can use it to successfully create an erasure crush ruleļ¼š

ceph osd erasure-code-profile set testprofile k=3 m=2 rush-device-class=ssd
ceph osd crush rule create-erasure testerasure testprofile

But when creating the replicated crush rule, specifying the wrong device type cannot create it successfully.

I would like to know what is the reason for this design


Related issues 1 (0 open1 closed)

Is duplicate of RADOS - Bug #54004: When creating erasure-code-profile incorrectly set parameters, it can be created successfully, and it can be used to create erasure crush ruleRejectedNitzan Mordechai

Actions
Actions #1

Updated by Casey Bodley about 2 years ago

  • Project changed from rgw to RADOS
Actions #2

Updated by Neha Ojha about 2 years ago

  • Status changed from New to Duplicate
Actions #3

Updated by Neha Ojha about 2 years ago

  • Is duplicate of Bug #54004: When creating erasure-code-profile incorrectly set parameters, it can be created successfully, and it can be used to create erasure crush rule added
Actions

Also available in: Atom PDF