]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: validate new crush for unknown names
authorKefu Chai <kchai@redhat.com>
Mon, 25 May 2015 12:14:32 +0000 (20:14 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 10 Jul 2015 07:40:00 +0000 (15:40 +0800)
commitcc1cc033930e8690a57674e842a003f6bbc7a242
tree2ff9ac2ede8c6a2f00f6dc46b6c921b2b93ee838
parentff29a7f9dd21505c681881e609183aed9ac3250e
mon: validate new crush for unknown names

* the "osd tree dump" command enumerates all buckets/osds found in either the
  crush map or the osd map. but the newly set crushmap is not validated for
  the dangling references, so we need to check to see if any item in new crush
  map is referencing unknown type/name when a new crush map is sent to
  monitor, reject it if any.

Fixes: #11680
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit a955f36a509e5412b1f72632a1a956d99e768e35)
src/mon/OSDMonitor.cc
src/test/mon/osd-crush.sh