Project

General

Profile

Actions

Bug #23053

closed

ceph-volume lvm prepare option --crush-device-class not recognized

Added by Kenneth Waegeman about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

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

Description

From
http://docs.ceph.com/docs/master/ceph-volume/lvm/prepare/#crush-device-class :

ceph-volume lvm prepare --bluestore --data vg/lv --crush-device-class foo

but I get:

[root@ceph001 ~]# ceph-volume lvm prepare --bluestore --data /dev/sdn --crush-device-class foo
usage: ceph-volume lvm prepare [-h] [--journal JOURNAL] --data DATA
[--journal-size GB] [--bluestore] [--filestore]
[--osd-id OSD_ID] [--osd-fsid OSD_FSID]
[--block.db BLOCK_DB] [--block.wal BLOCK_WAL]
ceph-volume lvm prepare: error: unrecognized arguments: --crush-device-class foo

Actions #1

Updated by Alfredo Deza about 6 years ago

What version of Ceph are you using? We just added this and your pointing the docs to the master link

Actions #2

Updated by Kenneth Waegeman about 6 years ago

Hey, We are running Luminous 12.2.2. I also saw it here http://docs.ceph.com/docs/luminous/ceph-volume/lvm/prepare/#crush-device-class
Thank you!

Actions #3

Updated by Andrew Schoen about 6 years ago

  • Status changed from New to Closed

Kenneth Waegeman wrote:

Hey, We are running Luminous 12.2.2. I also saw it here http://docs.ceph.com/docs/luminous/ceph-volume/lvm/prepare/#crush-device-class
Thank you!

It's in the luminous docs because this was just added to 12.2.3. Could you try 12.2.3 and if you have the same issue please reopen this issue. Thanks!

Actions #4

Updated by Kenneth Waegeman about 6 years ago

I can now create the osd with a device class, but it doesn't result in the expected behaviour.

I can see the class overwrite in pvs output:
ceph.crush_device_class=ssd,ceph.encrypted=1,ceph.osd_fsid=7bceb016-42df-408a-b171-6a84f8fb9d4b,ceph.osd_id=18,ceph.type=block

but the new osd is listed in the crushmap as an hdd :
18 hdd 3.63869 osd.18 up 1.00000 1.00000

so it looks like the pv attributes are not checked?

Thanks again!

Actions #5

Updated by Alfredo Deza about 6 years ago

This is right from the ceph-volume perspective, for 12.2.3 we missed a PR that had the OSD changes required to make it work.

PR https://github.com/ceph/ceph/pull/19939
Backport https://github.com/ceph/ceph/pull/20405

This is ready for 12.2.4 if you can try that out.

Actions

Also available in: Atom PDF