]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
crush: rebuild shadow tree on "crush create-or-move/move"
authorxie xingguo <xie.xingguo@zte.com.cn>
Tue, 25 Jul 2017 06:15:24 +0000 (14:15 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Wed, 26 Jul 2017 14:30:59 +0000 (22:30 +0800)
commitf3a3180ccadea78d3ebf0353df50f74b5222e14e
treeaf567f61a783c6124447484c5cf06eed9dda46fa
parent10bf2a633f4636f2279a7f97594528dc3ae0062b
crush: rebuild shadow tree on "crush create-or-move/move"

This patch solves the problem below:

./bin/ceph osd crush move osd.0 root=foo rack=foo-rack host=foo-host
moved item id 0 name 'osd.0' to location {host=foo-host,rack=foo-rack,root=foo} in crush map

 ./bin/ceph osd crush rule create-replicated foo-rule foo host ssd
Error EINVAL: root foo has no devices with class ssd

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