]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crush: fix CrushCompiler won't compile maps with empty shadow tree 17228/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 17 Aug 2017 06:45:13 +0000 (14:45 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 24 Aug 2017 15:11:59 +0000 (23:11 +0800)
commit8b7c3199956227bdf051d995c00a331c8ccdf5cb
tree56f655332cbb25966ac312ff42cfef3b197545ea
parent59f58216bf49a72e4879a3478a88d79f7aafb0fa
crush: fix CrushCompiler won't compile maps with empty shadow tree

Steps to reproduce:
(1) ceph osd crush rm-device-class osd.0
(2) ceph osd crush set-device-class foo osd.0
(3) ceph osd crush rule create-replicated foo_rule default host foo
(4) ceph osd crush rm-device-class osd.0
(5) ceph osd getcrushmap -o crushmap
(6) crushtool -d crushmap -o crushmap.txt
(7) crushtool -c crushmap.txt -o crushmap
    unknown device class 'foo'

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 3e4fe5bc7410cecaff86c7c216a3e63eb94f6213)
src/crush/CrushCompiler.cc