Project

General

Profile

Feature #22674

mon: support device class with `osd new` as a JSON key

Added by Alfredo Deza 11 days ago. Updated 8 days ago.

Status:
Need Review
Priority:
Normal
Assignee:
Category:
Monitor
Target version:
-
Start date:
01/12/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
User Impact:
Affected Versions:
Release:
Needs Doc:
No

Description

The current implementation for defining device classes when an OSD is created is by creating the following file:

/var/lib/ceph/osd/<cluster>-<osd-id>/crush_device_class

It would nice to just declare the device class in the JSON that is sent over when creating the OSD instead of using the file.

The ceph-volume implementation is adding support for device class, so this must be addressed before ceph-volume changes.

It would be nice to keep the file name as the key for the JSON, to keep consistency:

{
    "crush_device_class": "value" 
}

Related to ceph-volume Bugzilla issue: https://bugzilla.redhat.com/show_bug.cgi?id=1498521

History

#1 Updated by Andrew Schoen 8 days ago

  • Status changed from New to Need Review

ceph changes here: https://github.com/ceph/ceph/pull/19939

ceph-volume and ceph-disk support here: https://github.com/ceph/ceph/pull/19949

ceph-ansible support: https://github.com/ceph/ceph-ansible/pull/2318

Also available in: Atom PDF