]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMap: skip out/crush-out osds 20840/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 1 Mar 2018 02:42:32 +0000 (10:42 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Mon, 12 Mar 2018 06:47:59 +0000 (14:47 +0800)
commit621a379e41afd1db00939683c5b69f374f6fb03d
tree40ba940ae836a09a7258d937f663fe8bb1a9c461
parenteb3c67fe7dc9040960a73ce780585d10072ac20a
osd/OSDMap: skip out/crush-out osds

We might do 'ceph osd out <osd.x>' or 'ceph osd crush reweight <osd.x> 0'
for various reasons, and hence can produce 0-weighted OSDs.
Skip those OSDs when trying to calculdate PG upmaps so we won't be able to
hit the *assert* below:

/build/ceph-13.0.1-2232-g64665c7/src/osd/OSDMap.cc: 4179: FAILED assert(target > 0)

See also:

http://pulpito.ceph.com/xxg-2018-02-28_09:02:53-rados-wip-fix-upmap-distro-basic-smithi/2235497/

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit 1f78ca221d0f85c589214cb8bbc86743e6a90ec5)
src/osd/OSDMap.cc