]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: validate states transmitted in beacons 10428/head
authorJohn Spray <john.spray@redhat.com>
Mon, 25 Jul 2016 11:59:19 +0000 (12:59 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 28 Jul 2016 11:59:26 +0000 (12:59 +0100)
commit8a8c26b7b5d1d7cf18cde311a953921b4f0be7bc
treeeb744be6de707af0145f0f1a918aefaee9e8b6f1
parent1194331665ffe878acfd3b24b8ad8a88961d2d9d
mon: validate states transmitted in beacons

Since FSMap was added, the state of a daemon can lead
to an entirely invalid map, but we were letting daemons
send any state they wanted.

Especially, we must not allow standby daemons to set
any state other than STANDBY.

Fixes: http://tracker.ceph.com/issues/16592
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDSMap.cc
src/mds/MDSMap.h
src/mds/MDSRank.cc
src/mon/MDSMonitor.cc