]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: If the requested OSD is down don't trust osd_stat info
authorDavid Zafman <dzafman@redhat.com>
Thu, 18 Apr 2019 02:41:58 +0000 (19:41 -0700)
committerDavid Zafman <dzafman@redhat.com>
Thu, 25 Apr 2019 20:53:27 +0000 (13:53 -0700)
commit97f3b7c2e93f72223ae2c9a904e38bbb30e275da
treeb3007401bcb68cb523d169f564f4f936dbacaef2
parent69eaaaadd00f190f3013abbf8c713b47c0b3e7bc
mgr: If the requested OSD is down don't trust osd_stat info

If we have a down AND out OSD it may contains osd_stat with num_pgs == 0.
When all PGs aren't active+clean we need an accurate value or we consider
the osd missing stat info.

Fixes: https://tracker.ceph.com/issues/38930
Signed-off-by: David Zafman <dzafman@redhat.com>
src/mgr/DaemonServer.cc