]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: get "ceph osd crush class create/rm" back 24603/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Mon, 15 Oct 2018 12:34:56 +0000 (20:34 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 16 Oct 2018 00:45:49 +0000 (08:45 +0800)
commitd7ff33e9fd994fced37e487b4eaf8f5cae1cfe58
tree5ccc46d5cbba7614c48b5774d962b0db7a4931fa
parent7ac6ab4b2f139d98543436357b9261d6a7bd9610
crush: get "ceph osd crush class create/rm" back

This reverts a27fd9d25cb2819e25cc48b790c40afac0250464 and
b863883ca783487401fde4f4480ed1d9b093363e.

Quote form Sébastien Han:
> IIRC at some point, we were able to create a device class from the CLI.
Now it seems that the device class gets created when at least one OSD
of a particular class starts.
In ceph-ansible, we create pools after the initial monitors are up and
we want to assign a device crush class on some of them.
That's not possible at the moment since there no device class available yet.
Also, someone might want to create its own device class.
Something as crazy as running Filestore with a tmpfs osd store and
might want to isolate them.
I know it's a very limited use case, but still, it could be desired.

See also https://www.spinics.net/lists/ceph-devel/msg41152.html

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
qa/standalone/crush/crush-classes.sh
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h
src/mon/MonCommands.h
src/mon/OSDMonitor.cc