<div dir="ltr">Thanks,<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 28, 2017 at 2:37 PM, Ken Gaillot <span dir="ltr"><<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.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 03/28/2017 01:26 PM, Radoslaw Garbacz wrote:<br>
> Hi,<br>
><br>
> I have a situation when a cloned resource is being deployed only on some<br>
> of the nodes, even though this resource is similar to others, which are<br>
> being deployed according to location rules properly.<br>
><br>
> Please take a look at the configuration below and let me know if there<br>
> is anything to do to make the resource "dbx_nfs_mounts_datas" (which is<br>
> a primitive of "dbx_nfs_mounts_datas-clone") being deployed on all 4<br>
> nodes matching its location rules.<br>
<br>
</span>Look in your logs for "pengine:" messages. They will list the decisions<br>
made about where to start resources, then have a message about<br>
"Calculated transition ... saving inputs in ..." with a file name.<br>
<br>
You can run crm_simulate on that file to see why the decisions were<br>
made. The output is somewhat difficult to follow, but "crm_simulate -Ssx<br>
$FILENAME" will show every score that went into the decision.<br>
<div><div class="h5"><br>
><br>
><br>
> Thanks in advance,<br>
><br>
><br>
><br>
> * Configuration:<br>
> ** Nodes:<br>
> <nodes><br>
> <node uname="ip-10-180-224-134" id="4"><br>
> <instance_attributes id="nodes-4"><br>
> <nvpair id="nodes-4-STATE" value="Active" name="STATE"/><br>
> <nvpair id="nodes-4-ROLE" value="AD" name="ROLE"/><br>
> <nvpair id="nodes-4-Primary" value="True" name="Primary"/><br>
> </instance_attributes><br>
> </node><br>
> <node uname="ip-10-183-39-69" id="5"><br>
> <instance_attributes id="nodes-5"><br>
> <nvpair id="nodes-5-STATE" value="Active" name="STATE"/><br>
> <nvpair id="nodes-5-ROLE" value="AD" name="ROLE"/><br>
> <nvpair id="nodes-5-Primary" value="True" name="Primary"/><br>
> </instance_attributes><br>
> </node><br>
> <node uname="ip-10-13-191-168" id="3"><br>
> <instance_attributes id="nodes-3"><br>
> <nvpair id="nodes-3-STATE" value="Active" name="STATE"/><br>
> <nvpair id="nodes-3-ROLE" value="AD" name="ROLE"/><br>
> <nvpair id="nodes-3-Primary" value="True" name="Primary"/><br>
> </instance_attributes><br>
> </node><br>
> <node uname="ip-10-180-227-53" id="2"><br>
> <instance_attributes id="nodes-2"><br>
> <nvpair id="nodes-2-STATE" value="Active" name="STATE"/><br>
> <nvpair id="nodes-2-ROLE" value="AD" name="ROLE"/><br>
> <nvpair id="nodes-2-Primary" value="True" name="Primary"/><br>
> </instance_attributes><br>
> </node><br>
> <node uname="ip-10-182-69-89" id="1"><br>
> <instance_attributes id="nodes-1"><br>
> <nvpair id="nodes-1-STATE" value="Active" name="STATE"/><br>
> <nvpair id="nodes-1-ROLE" value="AH" name="ROLE"/><br>
> <nvpair id="nodes-1-Primary" value="True" name="Primary"/><br>
> </instance_attributes><br>
> </node><br>
> </nodes><br>
><br>
><br>
><br>
> ** Resource in question:<br>
> <clone id="dbx_nfs_mounts_datas-<wbr>clone"><br>
> <primitive id="dbx_nfs_mounts_datas" type="<a href="http://dbx_mounts.ocf.sh" rel="noreferrer" target="_blank">dbx_mounts.ocf.sh</a><br>
</div></div>> <<a href="http://dbx_mounts.ocf.sh" rel="noreferrer" target="_blank">http://dbx_mounts.ocf.sh</a>>" class="ocf" provider="dbxcl"><br>
<div><div class="h5">> <instance_attributes<br>
> id="dbx_nfs_mounts_datas-<wbr>instance_attributes"><br>
> ...<br>
> </instance_attributes><br>
> <operations><br>
> ...<br>
> </operations><br>
> </primitive><br>
> <meta_attributes id="dbx_nfs_mounts_datas-meta_<wbr>attributes"><br>
> <nvpair name="target-role" value="Started"<br>
> id="dbx_nfs_mounts_datas-meta_<wbr>attributes-target-role"/><br>
> <nvpair name="clone-max" value="4"<br>
> id="dbx_nfs_mounts_datas-meta_<wbr>attributes-clone-max"/><br>
> </meta_attributes><br>
> </clone><br>
><br>
><br>
><br>
> ** Resource location<br>
> <rsc_location id="nodes_dbx_nfs_mounts_<wbr>datas"<br>
> rsc="dbx_nfs_mounts_datas"><br>
> <rule score="INFINITY"<br>
> id="on_nodes_dbx_nfs_mounts_<wbr>datas-INFINITY" boolean-op="and"><br>
> <expression attribute="STATE" operation="eq" type="string"<br>
> id="on_nodes_dbx_nfs_mounts_<wbr>datas-INFINITY-0-expr" value="Active"/><br>
> <expression attribute="ROLE" operation="eq" type="string"<br>
> id="on_nodes_dbx_nfs_mounts_<wbr>datas-INFINITY-1-expr" value="AD"/><br>
> </rule><br>
> <rule score="-INFINITY"<br>
> id="on_nodes_dbx_nfs_mounts_<wbr>datas--INFINITY" boolean-op="or"><br>
> <expression attribute="STATE" operation="ne" type="string"<br>
> id="on_nodes_dbx_nfs_mounts_<wbr>datas--INFINITY-0-expr" value="Active"/><br>
> <expression attribute="ROLE" operation="ne" type="string"<br>
> id="on_nodes_dbx_nfs_mounts_<wbr>datas--INFINITY-1-expr" value="AD"/><br>
> </rule><br>
> </rsc_location><br>
><br>
><br>
><br>
> ** Status on properly deployed node:<br>
> <lrm_resource id="dbx_nfs_mounts_datas"<br>
</div></div>> type="<a href="http://dbx_mounts.ocf.sh" rel="noreferrer" target="_blank">dbx_mounts.ocf.sh</a> <<a href="http://dbx_mounts.ocf.sh" rel="noreferrer" target="_blank">http://dbx_mounts.ocf.sh</a>>" class="ocf"<br>
<span class="">> provider="dbxcl"><br>
> <lrm_rsc_op id="dbx_nfs_mounts_datas_last_<wbr>0"<br>
> operation_key="dbx_nfs_mounts_<wbr>datas_start_0" operation="start"<br>
> crm-debug-origin="do_update_<wbr>resource" crm_feature_set="3.0.12"<br>
> transition-key="156:0:0:<wbr>d817e2a2-50fb-4462-bd6b-<wbr>118d1d7b8ecd"<br>
> transition-magic="0:0;156:0:0:<wbr>d817e2a2-50fb-4462-bd6b-<wbr>118d1d7b8ecd"<br>
> on_node="ip-10-180-227-53" call-id="85" rc-code="0" op-status="0"<br>
> interval="0" last-run="1490720995" last-rc-change="1490720995"<br>
> exec-time="733" queue-time="0"<br>
> op-digest="<wbr>e95785e3e2d043b0bda24c5bd46553<wbr>17" op-force-restart=""<br>
> op-restart-digest="<wbr>f2317cad3d54cec5d7d7aa7d0bf35c<wbr>f8"/><br>
> <lrm_rsc_op id="dbx_nfs_mounts_datas_<wbr>monitor_137000"<br>
> operation_key="dbx_nfs_mounts_<wbr>datas_monitor_137000" operation="monitor"<br>
> crm-debug-origin="do_update_<wbr>resource" crm_feature_set="3.0.12"<br>
> transition-key="157:0:0:<wbr>d817e2a2-50fb-4462-bd6b-<wbr>118d1d7b8ecd"<br>
> transition-magic="0:0;157:0:0:<wbr>d817e2a2-50fb-4462-bd6b-<wbr>118d1d7b8ecd"<br>
> on_node="ip-10-180-227-53" call-id="86" rc-code="0" op-status="0"<br>
> interval="137000" last-rc-change="1490720995" exec-time="172"<br>
> queue-time="0" op-digest="<wbr>a992d78564e6b3942742da0859d8c7<wbr>34"/><br>
> </lrm_resource><br>
><br>
><br>
><br>
> ** Status on not properly deployed node:<br>
> <lrm_resource id="dbx_nfs_mounts_datas"<br>
</span>> type="<a href="http://dbx_mounts.ocf.sh" rel="noreferrer" target="_blank">dbx_mounts.ocf.sh</a> <<a href="http://dbx_mounts.ocf.sh" rel="noreferrer" target="_blank">http://dbx_mounts.ocf.sh</a>>" class="ocf"<br>
<span class="">> provider="dbxcl"><br>
> <lrm_rsc_op id="dbx_nfs_mounts_datas_last_<wbr>0"<br>
> operation_key="dbx_nfs_mounts_<wbr>datas_monitor_0" operation="monitor"<br>
> crm-debug-origin="do_update_<wbr>resource" crm_feature_set="3.0.12"<br>
> transition-key="73:0:7:<wbr>d817e2a2-50fb-4462-bd6b-<wbr>118d1d7b8ecd"<br>
> transition-magic="0:7;73:0:7:<wbr>d817e2a2-50fb-4462-bd6b-<wbr>118d1d7b8ecd"<br>
> on_node="ip-10-183-39-69" call-id="39" rc-code="7" op-status="0"<br>
> interval="0" last-run="1490720950" last-rc-change="1490720950"<br>
> exec-time="172" queue-time="0"<br>
> op-digest="<wbr>e95785e3e2d043b0bda24c5bd46553<wbr>17" op-force-restart=""<br>
> op-restart-digest="<wbr>f2317cad3d54cec5d7d7aa7d0bf35c<wbr>f8"/><br>
> </lrm_resource><br>
><br>
><br>
><br>
> --<br>
> Best Regards,<br>
><br>
> Radoslaw Garbacz<br>
> XtremeData Incorporated<br>
<br>
</span>______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.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>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Best Regards,<br><br>Radoslaw Garbacz<br></div>XtremeData Incorporated<br></div></div></div></div>
</div>