<div dir="ltr">Thanks, just found that out as well.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 22, 2017 at 9:39 AM, Ken Gaillot <span dir="ltr"><<a href="mailto:kgaillot@redhat.com" target="_blank">kgaillot@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 03/22/2017 09:26 AM, Radoslaw Garbacz wrote:<br>
> I have tried also as 'boolean_op', sorry did not mention this in the<br>
> original post (just as a remark the documentation for pacemaker has both<br>
> forms).<br>
<br>
</span>*smacks forehead*<br>
<br>
Yep, the documentation needs to be fixed. You were right the first time,<br>
it's "boolean-op" with a dash.<br>
<br>
Looking at your example again, I think the problem is that you're using<br>
the same ID for both expressions. The ID must be unique.<br>
<span class=""><br>
><br>
> To make it work I have to remove additional "<expression>" and leave<br>
> only one.<br>
><br>
> To summarize:<br>
> - having no "boolean..." attribute and a single "expression" - works<br>
> - having "boolean-op" and a single "expression" - works<br>
><br>
> - having "boolean_op" and a single "expression" - does not work<br>
> - having either "boolean-op" or "boolean_op" or no such phrase at all<br>
> with more than one "expression" - does not work<br>
><br>
><br>
><br>
> I have found the reason: expressions IDs within a rule is the same, once<br>
> I made it unique it works.<br>
><br>
><br>
> Thanks,<br>
><br>
><br>
> On Wed, Mar 22, 2017 at 2:06 AM, Ulrich Windl<br>
> <<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a><br>
</span>> <mailto:<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-<wbr>regensburg.de</a>>> wrote:<br>
><br>
> >>> Ken Gaillot <<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a> <mailto:<a href="mailto:kgaillot@redhat.com">kgaillot@redhat.com</a>>><br>
<span class="">> 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>> <mailto:<a href="mailto:94b7e5fd-cb65-4775-71df-ca8983629a00@redhat.com">94b7e5fd-cb65-4775-<wbr>71df-ca8983629a00@redhat.com</a>>><wbr>:<br>
<div><div class="h5">> > 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>
> Good spotting, but I think a more useful error message would be<br>
> desired ;-)<br>
><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>
</div></div>> <mailto:<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>
<span class="">> <<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:<br>
> <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>
> <<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>
</span>> Users mailing list: <a href="mailto:Users@clusterlabs.org">Users@clusterlabs.org</a> <mailto:<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>
<span class="im HOEnZb">> <<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:<br>
> <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>
</span><div class="HOEnZb"><div class="h5">> <<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>
> Best Regards,<br>
><br>
> Radoslaw Garbacz<br>
> XtremeData Incorporated<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>
><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>