<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 11, 2022 at 9:13 AM Strahil Nikolov via Users <<a href="mailto:users@clusterlabs.org">users@clusterlabs.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Shouldn't you use kind ' Mandatory' and simetrical TRUE ?<div><br></div><div>If true, the reverse of the constraint applies for the opposite action (for example, if B starts after A starts, then B stops before A stops). </div></blockquote><div>If the script should be run before any change then it sounds as if an asymmetric order would be desirable.</div><div>So you might create at least two order constraints explicitly listing the actions.</div><div>But I doubt that this explains the unexpected behavior described.</div><div>As Ulrich said a little bit more info about the config would be helpful.</div><div><br></div><div>Regards,</div><div>Klaus </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div>Best Regards,</div><div>Strahil Nikolov<br> <br> <blockquote style="margin:0px 0px 20px"> <div style="font-family:Roboto,sans-serif;color:rgb(109,0,246)"> <div>On Fri, Feb 11, 2022 at 9:11, Ulrich Windl</div><div><<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de" target="_blank">Ulrich.Windl@rz.uni-regensburg.de</a>> wrote:</div> </div> <div style="padding:10px 0px 0px 20px;margin:10px 0px 0px;border-left:1px solid rgb(109,0,246)"> >>> Jonno <<a shape="rect" href="mailto:jstk888@gmail.com" target="_blank">jstk888@gmail.com</a>> schrieb am 10.02.2022 um 20:43 in Nachricht<br clear="none"><CADGLmTe311U71NKSEBoeogkk+WcCHpt44MH1T-4hy-=<a shape="rect" href="mailto:J-NL8Tw@mail.gmail.com" target="_blank">J-NL8Tw@mail.gmail.com</a>>:<br clear="none">> Hello,<br clear="none">> <br clear="none">> I am having some trouble getting my 2 node active/passive cluster to do<br clear="none">> what I want. More specifically, my cluster is removing the VIP from the<br clear="none">> cluster whenever I attempt a failover with a command such as "crm resource<br clear="none">> move rsc_cluster_vip node2".<br clear="none">> <br clear="none">> When running the command above, I am asking the cluster to migrate the VIP<br clear="none">> to the standby node, but I am expecting the cluster to honour the order<br clear="none">> constraint, by first running the script resource named "rsc_lsb_quiesce".<br clear="none">> The order constraint looks like:<br clear="none">> <br clear="none">> "order order_ABC rsc_lsb_quiesce rsc_cluster_vip msl_ABC:promote<br clear="none">> rsc_lsb_resume"<br clear="none">> <br clear="none">> But it doesn't seem to do what I expect. It always removes the VIP entirely<br clear="none">> from the cluster first, then it starts to follow the order constraint. This<br clear="none">> means my cluster is in a state where the VIP is completely gone for a<br clear="none">> couple of minutes. I've also tried doing a "crm resource move <br clear="none">> rsc_lsb_quiesce<br clear="none">> node2" hoping to trigger the script resource first, but the cluster always<br clear="none">> removes the VIP before doing anything.<br clear="none">> <br clear="none">> My question is: How can I make the cluster follow this order constraint? I<br clear="none"><br clear="none">I'm very sure you just made a configuration mistake.<br clear="none">But nobody can help you unless you show your configuration and example execution of events, plus the expected order of execution.<br clear="none"><br clear="none">Regards,<br clear="none">Ulrich<div id="gmail-m_862185805832560133yqtfd57036"><br clear="none"><br clear="none">> need the cluster to run the "rsc_lsb_quiesce" script against a remote<br clear="none">> application server before any other action is taken. I especially need the<br clear="none">> VIP to stay where it is. Should I be doing this another way?<br clear="none">> <br clear="none">> Regards,<br clear="none">> Jonathan<br clear="none"><br clear="none"><br clear="none"><br clear="none"><br clear="none">_______________________________________________<br clear="none">Manage your subscription:<br clear="none"><a shape="rect" href="https://lists.clusterlabs.org/mailman/listinfo/users" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br clear="none"><br clear="none">ClusterLabs home: <a shape="rect" href="https://www.clusterlabs.org/" target="_blank">https://www.clusterlabs.org/</a><br clear="none"></div> </div> </blockquote></div>_______________________________________________<br>
Manage your subscription:<br>
<a href="https://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.clusterlabs.org/mailman/listinfo/users</a><br>
<br>
ClusterLabs home: <a href="https://www.clusterlabs.org/" rel="noreferrer" target="_blank">https://www.clusterlabs.org/</a><br>
</blockquote></div></div>