LUSetNodeParams: Don't break config on mc demotion.
If --force is used to demote an MC, but then there are not enough MCs in the cluster, the configuration gets corrupted until a node is promoted. In order to avoid that we only allow demotion with --force if the node is offlined or drained at the same time, and we don't have any other node available to promote. Signed-off-by: Guido Trotter <firstname.lastname@example.org> Reviewed-by: Olivier Tharan <email@example.com>
Showing with 13 additions and 6 deletions