]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon/OSDMonitor: accept crush_device_class in 'osd new' json input 20405/head
authorSage Weil <sage@redhat.com>
Fri, 12 Jan 2018 23:10:11 +0000 (17:10 -0600)
committerSage Weil <sage@redhat.com>
Mon, 12 Feb 2018 17:18:16 +0000 (11:18 -0600)
commit662a00760a987c729ae839a959d76910551ef67d
tree0c26585ce8f644feda44a4be63132023f311aaf4
parent02ec68dc6cbb96fdb963248a7b7b0c13e6ed0490
mon/OSDMonitor: accept crush_device_class in 'osd new' json input

If provided, set the OSD device_class at OSD creation time.  This is
simpler than writing a file that the OSD has to read in and use to
set its initial device class, and also avoids a bit of sticky state
at the OSD that will make it keep trying to reset its device class on
startup if it ever gets cleared.

Note that we now ignore json input fields we don't understand, so remove
a test case.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 59bdada5d52710bd683f2b6ef6a8edaef3c8564a)
doc/install/manual-deployment.rst
doc/man/8/ceph.rst
qa/workunits/cephtool/test.sh
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h