Hi All,

 

I've got a simple multistate resource running on a two node cluster.  The 
enclosed configuration is happy accepted by the CIB, and I see the resource 
running in the master/slave state on the two nodes, but when I run a 
crm_verify, I get a warning:

 

cibadmin -replace --xml-file 1rsc_basic.xml

haclus...@ubuntu_2:~/clones$ crm_verify --live-check -V

crm_verify[7640]: 2010/01/05_09:11:49 WARN: get_target_role: ms-world1 is not 
part of a master/slave resource, a target-role of 'Master' makes no sense

Warnings found during check: config may not be valid

 

I think my configuration is valid...is this warning valid?

 

-Frank

<cib validate-with="pacemaker-1.0" crm_feature_set="3.0.1" have-quorum="0" admin_epoch="2" epoch="1" num_updates="1" cib-last-written="Fri Nov 20 07:46:43 2009" dc-uuid="ubuntu_1">
  <configuration>
    <crm_config>
      <cluster_property_set id="cib-bootstrap-options">
        <nvpair id="option-1" name="symmetric-cluster" value="true"/>
        <nvpair id="option-2" name="no-quorum-policy" value="ignore"/>
        <nvpair id="option-3" name="stonith-enabled" value="false"/>
        <nvpair id="option-4" name="cluster-delay" value="5s"/>
        <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-dc-deadtime" name="dc-deadtime" value="10s"/>
        <nvpair id="cib-bootstrap-options-election-timeout" name="election-timeout" value="10s"/>
      </cluster_property_set>
    </crm_config>
    <nodes>
      <node id="ubuntu_2" uname="ubuntu_2" type="normal"/>
      <node id="ubuntu_1" uname="ubuntu_1" type="normal"/>
    </nodes>
    <resources>
      <master id="ms-world1">
	<primitive id="world1" class="ocf" type="world1test" provider="bbnd">
	  <operations>
	    <op id="world1-slave-check" name="monitor" interval="11"/>
	    <op id="world1-master-check" name="monitor" interval="10" role="Master"/>
	  </operations>
	</primitive>
	<meta_attributes id="ms-world1-meta">
	  <nvpair id="ms-world1-meta-1" name="globally-unique" value="false"/>
	  <nvpair id="ms-world1-meta-2" name="target-role" value="Master"/>
	</meta_attributes>
      </master>
    </resources>
    <constraints>
      <rsc_location id="ms-world1_loc1" rsc="ms-world1">
	<rule id="master-rule-1" score="0" role="Master">
	  <expression id="master-exp-rule-1" attribute="#uname" operation="eq" value="ubuntu_1"/>
	</rule>
      </rsc_location>
    </constraints>
  </configuration>
</cib>
_______________________________________________
Pacemaker mailing list
Pacemaker@oss.clusterlabs.org
http://oss.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to