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.mis...@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 > _______________________________________________ Pacemaker mailing list Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker