Red Hat Bugzilla – Bug 1315366
Possible guidance to use "pcs node maintenance --all" instead of "pcs cluster standby --all"
Last modified: 2016-10-21 10:25:59 EDT
+++ This bug was initially created as a clone of Bug #1245721 +++ I don't think there is an "ask interactively" precedence in pcs (putting auth aside), but in case of any resource running (or just defined ... or just always) it would be good to ask the user if she indeed wants "pcs cluster standby --all" or rather enable the maintenance mode. Or just apply this logic without asking as this should definitely be more sane thing to do. --- Additional comment from Jan Pokorný on 2015-08-28 19:13:21 CEST --- In case you don't like "standby --all" -> maintenance mode trigger proposal, you may, at least, consider translating that command into "pcs property set stop_all_resources=true" that would likely avoid inevitable issue with iterated switch toggling -- evacuation of the resources to the rest of living nodes (until they are standby'd as well) connected with unnecessary and unhelpful utilization peaks there (there are some risks implied). [...] --- Additional comment from Jan Pokorný on 2015-09-01 17:11:08 CEST --- [...] I was talking about possibly bad behavior of "pcs cluster standby --all" which could not be translated into enabling maintenance mode as pcs hasn't be able to do that yet. With this bug resolved it will be, hence proposing translating that command to maintenance mode enablement (implicitly or explicitly). Is it more clear now?
Promoting aside suggestion to an RFE on its own as it remained unheard. Note that the equivalent sanity confirmation is relevant to both CLI and GUI.
The "pcs cluster standby" command puts nodes into standby mode. It would be very counterintuitive and confusing if it did something else when --all flag was specified. And this would not be fixed by documenting such behavior. Also what if the user really wants to put all the nodes into standby mode? Is pcs so much clever than the user that it can deny him to do that? I do not think so. You can argue that pcs could ask interactively what is it that the user really wants to do. But user must have typed the command in the first place, is not that a manifestation of desired action already? I think it is. The issue with moving resources around cluster while putting several / all nodes into standby mode is already covered in bz1315992. Therefore I am closing this as not a bug.