[Pacemaker] trying to import a constraint

Shravan Mishra shravan.mishra at gmail.com
Thu Oct 29 17:57:35 UTC 2009


Hi guys,
Below is a partial snippet of my config:

 =================================
<nodes>
      <node id="host_145" uname="host_145" type="normal">
        <instance_attributes id="nodes-host_145">
          <nvpair id="nodes-host_145-crole" name="crole" value="sticky"/>
        </instance_attributes>
      </node>
      <node id="host_128" uname="host_128" type="normal">
        <instance_attributes id="nodes-host_128">
          <nvpair id="nodes-host_128-crole" name="crole" value="nosticky"/>
        </instance_attributes>
      </node>
    </nodes>
 <resources>
      <primitive class="ocf" type="safe" provider="pacemaker" id="safe_SVCS"/>
<resources>
=======================================


When I try doing :

cibadmin -o constraints -C  -X -p << END
<rsc_location id="no-sticky-no-run" rsc="safe_SVCS">
 <rule id="no-sticky-no-run-rule"  score="-INFINITY">
  <expression id="no-sticky-no-run-exp" attribute="crole"
operation="ne" value="sticky"/>
 </rule>
</rsc_location>
END

I get

"Couldn't parse input from input string."

What is not parseable here?

Regards
Shravan




More information about the Pacemaker mailing list