10.02.2016 11:38, Ulrich Windl wrote:
Vladislav Bogdanov <bub...@hoster-ok.com> schrieb am 10.02.2016 um 05:39 in
Nachricht <6e479808-6362-4932-b2c6-348c7efc4...@hoster-ok.com>:

[...]
Well, I'd reword. Generally, RA should not exit with error if validation
fails on stop.
Is that better?
[...]

As we have different error codes, what type of error?

Any which makes pacemaker to think resource stop op failed.
OCF_ERR_* particularly.

If pacemaker has got an error on start, it will run stop with the same set of parameters anyways. And will get error again if that one was from validation and RA does not differentiate validation for start and stop. And then circular fencing over the whole cluster is triggered for no reason.

Of course, for safety, RA could save its state if start was successful and skip validation on stop only if that state is not found. Otherwise removed binary or config file would result in resource running on several nodes.

Well, this all seems to be very complicated to make some general algorithm ;)



Regards,
Ulrich



_______________________________________________
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org



_______________________________________________
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to