<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 07/06/2018 03:41 PM, Ian Underhill
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGu+cYgGhceJHh6U25MgGM=Nr6imVHOb0uxE4i5pbc-hV9Rmyw@mail.gmail.com">
<div dir="ltr">requirement:
<div>when a resource fails perform an actionm, run a script on
all nodes within the cluster, before the resource is
relocated. i.e. information gathering why the resource failed.</div>
</div>
</blockquote>
<br>
Have in mind that trying to run a script on all nodes in the cluster
before<br>
proceeding is a delicate issue because not being able to run it on
one<br>
node might prevent relocation and thus availability.<br>
Of course this largely depends on how it is implemented - just
wanted<br>
to raise attention.<br>
<br>
<blockquote type="cite"
cite="mid:CAGu+cYgGhceJHh6U25MgGM=Nr6imVHOb0uxE4i5pbc-hV9Rmyw@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>what I have looked into:</div>
<div>1) Use the monitor call within the resource to SSH to all
nodes, again SSH config needed.</div>
<div>2) Alert framework : this only seems to be triggered for
nodes involved in the relocation of the resource. i.e. if
resource moves from node1 to node 2 node 3 doesnt know. so
back to the SSH solution :(</div>
</div>
</blockquote>
<br>
Alerts are designed not to block anything (no other alerts as well)
so the alert-agents are <br>
just called on nodes that anyway already have to do with that very
event.<br>
<br>
<blockquote type="cite"
cite="mid:CAGu+cYgGhceJHh6U25MgGM=Nr6imVHOb0uxE4i5pbc-hV9Rmyw@mail.gmail.com">
<div dir="ltr">
<div>3) sending a custom alert to all nodes in the cluster? is
this possible? not found a way?</div>
<div><br>
</div>
<div>only solution I have:</div>
<div>1) use SSH within an alert monitor (stop) to SSH onto all
nodes to perform the action, the nodes could be configured
using the alert monitors recipients, but I would still need to
config SSH users and certs etc.</div>
<div> 1.a) this doesnt seem to be usable if the resource is
relocated back to the same node, as the alerts start\stop are
run at the "same time". i.e I need to delay the start till the
SSH has completed.</div>
<div><br>
</div>
<div>what I would like:</div>
<div>1) delay the start\relocation of the resource until the
information from all nodes is complete, using only pacemaker
behaviour\config</div>
<div><br>
</div>
<div>any ideas?</div>
</div>
</blockquote>
<br>
Not 100% sure of what what your exact intention is ...<br>
You could experiment with a clone that depends on the running
instance and<br>
use the stop of that to trigger whatever you need.<br>
Not sure but I'd expect that pacemaker would tear down all clone
instances<br>
before it relocates your resource.<br>
<br>
Regards,<br>
Klaus<br>
<br>
<blockquote type="cite"
cite="mid:CAGu+cYgGhceJHh6U25MgGM=Nr6imVHOb0uxE4i5pbc-hV9Rmyw@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>Thanks</div>
<div><br>
</div>
<div>/Ian.</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list: <a class="moz-txt-link-abbreviated" href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a>
<a class="moz-txt-link-freetext" href="https://lists.clusterlabs.org/mailman/listinfo/users">https://lists.clusterlabs.org/mailman/listinfo/users</a>
Project Home: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org">http://www.clusterlabs.org</a>
Getting started: <a class="moz-txt-link-freetext" href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf">http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf</a>
Bugs: <a class="moz-txt-link-freetext" href="http://bugs.clusterlabs.org">http://bugs.clusterlabs.org</a>
</pre>
</blockquote>
<br>
</body>
</html>