[Pacemaker] About rules in instance_attributes

Andrew Beekhof andrew at beekhof.net
Tue Dec 8 08:24:02 UTC 2009


I can't see anything obviously wrong.  Looks like you might have hit bug.
Could you add a bugzilla entry for this please? (So that it doesn't get lost).

On Sat, Dec 5, 2009 at 2:26 PM, Taras <vinni-jopa at mail.ru> wrote:
> I have two nodes asymmetrical cluster:
> The primary goal to define various value attribute name="rescheck" for various nodes
>
> <?xml version="1.0" ?>
> <cib admin_epoch="0" cib-last-written="Sat Dec  5 15:01:51 2009" crm_feature_set="3.0.1" dc-uuid="linux_test_gw1" epoch="464" have-quorum="0" num_updates="5" validate-with="pacemaker-1.0">
>  <configuration>
>    <crm_config>
>      <cluster_property_set id="cib-bootstrap-options">
>        <nvpair id="cib-bootstrap-options-dc-version" name="dc-version" value="1.0.6-0fee4b993fa89819c961d10027b5592cf0fb624d"/>
>        <nvpair id="cib-bootstrap-options-cluster-infrastructure" name="cluster-infrastructure" value="openais"/>
>        <nvpair id="cib-bootstrap-options-expected-quorum-votes" name="expected-quorum-votes" value="2"/>
>        <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" value="false"/>
>        <nvpair id="cib-bootstrap-options-symmetric-cluster" name="symmetric-cluster" value="false"/>
>        <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" value="ignore"/>
>        <nvpair id="cib-bootstrap-options-last-lrm-refresh" name="last-lrm-refresh" value="1260017313"/>
>      </cluster_property_set>
>    </crm_config>
>    <rsc_defaults/>
>    <op_defaults/>
>    <nodes>
>      <node id="linux_test_gw1" type="normal" uname="linux_test_gw1"/>
>      <node id="linux_test_gw2" type="normal" uname="linux_test_gw2"/>
>    </nodes>
>    <resources>
>      <primitive class="ocf" id="i1-routes" provider="own" type="IProute2">
>        <instance_attributes id="i1-routes-instance_attributes-1" score="10">
>          <rule id="i1-routes-rule-1" score="INFINITY">
>            <expression attribute="#uname" id="i1-routes-rule-1-expression" operation="eq" value="linux_test_gw2"/>
>          </rule>
>          <nvpair id="i1-routes-instance_attributes-1-rescheck" name="rescheck" value="no"/>
>        </instance_attributes>
>        <instance_attributes id="i1-routes-instance_attributes-2" score="9">
>          <rule id="i1-routes-rule-2" score="INFINITY">
>            <expression attribute="#uname" id="i1-routes-rule-2-expression" operation="eq" value="linux_test_gw1"/>
>          </rule>
>          <nvpair id="i1-routes-instance_attributes-2-rescheck" name="rescheck" value="yes"/>
>        </instance_attributes>
>        <instance_attributes id="i1-routes-instance_attributes-w" score="1">
>          <nvpair id="i1-routes-instance_attributes-w-rescheck" name="rescheck" value="unknown"/>
>          <nvpair id="i1-routes-instance_attributes-w-destination" name="destination" value="0.0.0.0/0"/>
>          <nvpair id="i1-routes-instance_attributes-w-gateway" name="gateway" value="192.168.201.20"/>
>          <nvpair id="i1-routes-instance_attributes-w-device" name="device" value="eth0"/>
>          <nvpair id="i1-routes-instance_attributes-w-table" name="table" value="i1_tables"/>
>        </instance_attributes>
>        <operations>
>          <op id="i1-routes-start-5" interval="0" name="start" timeout="90s"/>
>          <op id="i1-routes-monitor-15s" interval="15s" name="monitor"/>
>        </operations>
>      </primitive>
>    </resources>
>    <constraints>
>      <rsc_location id="i1-routes-gw1-location" node="linux_test_gw1" rsc="i1-routes" score="1000"/>
>      <rsc_location id="i1-routes-gw2-location" node="linux_test_gw2" rsc="i1-routes" score="10"/>
>    </constraints>
>  </configuration>
> </cib>
>
>
> When I start node linux_test_gw1 - attribute rescheck accepts correct value = "yes"
> But if I then start another node - linux_test_gw2 - attribute rescheck accepts incorrect value = "yes", instead of defined in a configuration "no". Could you explain what i mistook in config ?
>
> P.S. sorry for my English
>
> _______________________________________________
> Pacemaker mailing list
> Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>




More information about the Pacemaker mailing list