forked from rook/rook
The ceph mons should never be started with an even number in quorum. The desired state should always be an odd number of mons to ensure a healthy majority quorum. The operator now rejects a request for an even number of mons. If there are not a sufficient number of nodes for mons to be on a unique host, the operator also returns an early error instead of getting stuck waiting for a pending mon. This is not foolproof since there might be fewer available nodes for the mons, but at least it is a quick check for the common case. Signed-off-by: Travis Nielsen <tnielsen@redhat.com>