<div dir="ltr"><div><div><div><div><div><div><div>I have tried also as 'boolean_op', sorry did not mention this in the original post (just as a remark the documentation for pacemaker has both forms).<br><br></div>To make it work I have to remove additional "<expression>" and leave only one.<br><br></div>To summarize:<br></div><div>- having no "boolean..." attribute and a single "expression" - works<br></div>- having "boolean-op" and a single "expression" - works<br><br></div>- having "boolean_op" and a single "expression" - does not work<br></div>- having either "boolean-op" or "boolean_op" or no such phrase at all with more than one "expression" - does not work<br><br><br><br></div></div>I have found the reason: expressions IDs within a rule is the same, once I made it unique it works.<br><div><br><br>Thanks, <br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 22, 2017 at 2:06 AM, Ulrich Windl <span dir="ltr"><<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de" target="_blank">Ulrich.Windl@rz.uni-regensburg.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">>>> Ken Gaillot <<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>> schrieb am 22.03.2017 um 00:18 in Nachricht<br>
<<a href="mailto:94b7e5fd-cb65-4775-71df-ca8983629a00@redhat.com">94b7e5fd-cb65-4775-71df-<wbr>ca8983629a00@redhat.com</a>>:<br>
<span class="">> On 03/21/2017 11:20 AM, Radoslaw Garbacz wrote:<br>
>> Hi,<br>
>><br>
>> I have a problem when creating rules with many expressions:<br>
>><br>
>>      <rsc_location id="nodes_dbx_first_head" rsc="dbx_first_head"><br>
>>         <rule score="INFINITY" id="on_nodes_dbx_first_head"<br>
>> boolean-op="and"><br>
>>           <expression attribute="STATE" operation="eq" type="string"<br>
>> id="on_nodes_dbx_first_head-<wbr>expr" value="Active"/><br>
>>           <expression attribute="ROLE" operation="eq" type="string"<br>
>> id="on_nodes_dbx_first_head-<wbr>expr" value="AH"/><br>
>>         </rule><br>
>>       </rsc_location><br>
>><br>
>> Result:<br>
>> Call cib_replace failed (-203): Update does not conform to the<br>
>> configured schema<br>
>><br>
>> Everything works when I remove "boolean-op" attribute and leave only one<br>
>> expression.<br>
>> What do I do wrong when creating rules?<br>
><br>
> boolean_op<br>
><br>
> Underbar not dash :-)<br>
<br>
</span>Good spotting, but I think a more useful error message would be desired ;-)<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
>><br>
>><br>
>> Pacemaker 1.1.16-1.el6<br>
>> Written by Andrew Beekhof<br>
>><br>
>><br>
>> Thank in advance for any help,<br>
>><br>
>> --<br>
>> Best Regards,<br>
>><br>
>> Radoslaw Garbacz<br>
>> XtremeData Incorporated<br>
><br>
> ______________________________<wbr>_________________<br>
> Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
> <a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
><br>
> Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
> Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
> Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
<br>
<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a><br>
<a href="http://lists.clusterlabs.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.clusterlabs.org/<wbr>mailman/listinfo/users</a><br>
<br>
Project Home: <a href="http://www.clusterlabs.org" rel="noreferrer" target="_blank">http://www.clusterlabs.org</a><br>
Getting started: <a href="http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf" rel="noreferrer" target="_blank">http://www.clusterlabs.org/<wbr>doc/Cluster_from_Scratch.pdf</a><br>
Bugs: <a href="http://bugs.clusterlabs.org" rel="noreferrer" target="_blank">http://bugs.clusterlabs.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Best Regards,<br><br>Radoslaw Garbacz<br></div>XtremeData Incorporated<br></div></div></div></div>
</div>