[Pacemaker] trying to import a constraint

Shravan Mishra shravan.mishra at gmail.com
Thu Oct 29 19:48:19 UTC 2009


I just found my problem, so here it is in case someone spends a couple
of hours like me to figure out why it's not working

The culprit is -X, don't use that.

The correct command is :
cibadmin -o constraints -C  -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


Shravan

On Thu, Oct 29, 2009 at 1:57 PM, Shravan Mishra
<shravan.mishra at gmail.com> wrote:
> 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