<div dir="ltr">Andrei,<div><br></div><div><i>"<span style="font-size:12.8px">It would help if you told which node and which resources, so your </span><span style="font-size:12.8px">configuration could be interpreted in context.</span><span style="font-size:12.8px"> </span>"</i></div><div><br></div><div>Any resource can run on any node as long as it is not running any other resource.</div><div><br></div><div><i>"<span style="font-size:12.8px">so "a not with b" does not imply "b not with a". </span><span style="font-size:12.8px">So first pacemaker decided where to place "b" and then it had to move </span><span style="font-size:12.8px">"a" because it cannot colocate with "b".</span>"</i></div><div><br></div><div>Hmm. I used to think "a not with b" means "b not with a" as well. Looks like that's not the case. That should be it then.</div><div><br></div><div>Thanks for the quick answer, guys.</div><div><br></div><div>-Nikhil</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 13, 2016 at 7:59 PM, Andrei Borzenkov <span dir="ltr"><<a href="mailto:arvidjaar@gmail.com" target="_blank">arvidjaar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Oct 13, 2016 at 4:59 PM, Nikhil Utane<br>
<<a href="mailto:nikhil.subscribed@gmail.com">nikhil.subscribed@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I have 5 nodes and 4 resources configured.<br>
> I have configured constraint such that no two resources can be co-located.<br>
> I brought down a node (which happened to be DC). I was expecting the<br>
> resource on the failed node would be migrated to the 5th waiting node (that<br>
> is not running any resource).<br>
> However what happened was the failed node resource was started on another<br>
> active node (after stopping it's existing resource) and that node's resource<br>
> was moved to the waiting node.<br>
><br>
> What could I be doing wrong?<br>
><br>
<br>
</span>It would help if you told which node and which resources, so your<br>
configuration could be interpreted in context. But I guess Ulrich is<br>
correct - your constraints are asymmetrical (I assume, I am not<br>
familiar with PCS), so "a not with b" does not imply "b not with a".<br>
So first pacemaker decided where to place "b" and then it had to move<br>
"a" because it cannot colocate with "b".<br>
<div class="HOEnZb"><div class="h5"><br>
> <nvpair id="cib-bootstrap-options-<wbr>have-watchdog" value="true"<br>
> name="have-watchdog"/><br>
> <nvpair id="cib-bootstrap-options-dc-<wbr>version" value="1.1.14-5a6cdd1"<br>
> name="dc-version"/><br>
> <nvpair id="cib-bootstrap-options-<wbr>cluster-infrastructure" value="corosync"<br>
> name="cluster-infrastructure"/<wbr>><br>
> <nvpair id="cib-bootstrap-options-<wbr>stonith-enabled" value="false"<br>
> name="stonith-enabled"/><br>
> <nvpair id="cib-bootstrap-options-no-<wbr>quorum-policy" value="ignore"<br>
> name="no-quorum-policy"/><br>
> <nvpair id="cib-bootstrap-options-<wbr>default-action-timeout" value="240"<br>
> name="default-action-timeout"/<wbr>><br>
> <nvpair id="cib-bootstrap-options-<wbr>symmetric-cluster" value="false"<br>
> name="symmetric-cluster"/><br>
><br>
> # pcs constraint<br>
> Location Constraints:<br>
>   Resource: cu_2<br>
>     Enabled on: Redun_CU4_Wb30 (score:0)<br>
>     Enabled on: Redund_CU2_WB30 (score:0)<br>
>     Enabled on: Redund_CU3_WB30 (score:0)<br>
>     Enabled on: Redund_CU5_WB30 (score:0)<br>
>     Enabled on: Redund_CU1_WB30 (score:0)<br>
>   Resource: cu_3<br>
>     Enabled on: Redun_CU4_Wb30 (score:0)<br>
>     Enabled on: Redund_CU2_WB30 (score:0)<br>
>     Enabled on: Redund_CU3_WB30 (score:0)<br>
>     Enabled on: Redund_CU5_WB30 (score:0)<br>
>     Enabled on: Redund_CU1_WB30 (score:0)<br>
>   Resource: cu_4<br>
>     Enabled on: Redun_CU4_Wb30 (score:0)<br>
>     Enabled on: Redund_CU2_WB30 (score:0)<br>
>     Enabled on: Redund_CU3_WB30 (score:0)<br>
>     Enabled on: Redund_CU5_WB30 (score:0)<br>
>     Enabled on: Redund_CU1_WB30 (score:0)<br>
>   Resource: cu_5<br>
>     Enabled on: Redun_CU4_Wb30 (score:0)<br>
>     Enabled on: Redund_CU2_WB30 (score:0)<br>
>     Enabled on: Redund_CU3_WB30 (score:0)<br>
>     Enabled on: Redund_CU5_WB30 (score:0)<br>
>     Enabled on: Redund_CU1_WB30 (score:0)<br>
> Ordering Constraints:<br>
> Colocation Constraints:<br>
>   cu_3 with cu_2 (score:-INFINITY)<br>
>   cu_4 with cu_2 (score:-INFINITY)<br>
>   cu_4 with cu_3 (score:-INFINITY)<br>
>   cu_5 with cu_2 (score:-INFINITY)<br>
>   cu_5 with cu_3 (score:-INFINITY)<br>
>   cu_5 with cu_4 (score:-INFINITY)<br>
><br>
> -Thanks<br>
> Nikhil<br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> ______________________________<wbr>_________________<br>
> Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
> <a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
><br>
<br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br></div>