Re: [ClusterLabs] Antw: Re: CIB configuration: role with many expressions - error 203

2017-03-22 Thread Radoslaw Garbacz
Thanks, just found that out as well.

On Wed, Mar 22, 2017 at 9:39 AM, Ken Gaillot  wrote:

> On 03/22/2017 09:26 AM, Radoslaw Garbacz wrote:
> > 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).
>
> *smacks forehead*
>
> Yep, the documentation needs to be fixed. You were right the first time,
> it's "boolean-op" with a dash.
>
> Looking at your example again, I think the problem is that you're using
> the same ID for both expressions. The ID must be unique.
>
> >
> > To make it work I have to remove additional "" and leave
> > only one.
> >
> > To summarize:
> > - having no "boolean..." attribute and a single "expression" - works
> > - having "boolean-op" and a single "expression" - works
> >
> > - having "boolean_op" and a single "expression" - does not work
> > - having either "boolean-op" or "boolean_op" or no such phrase at all
> > with more than one "expression" - does not work
> >
> >
> >
> > I have found the reason: expressions IDs within a rule is the same, once
> > I made it unique it works.
> >
> >
> > Thanks,
> >
> >
> > On Wed, Mar 22, 2017 at 2:06 AM, Ulrich Windl
> >  > > wrote:
> >
> > >>> Ken Gaillot mailto:kgail...@redhat.com>>
> > schrieb am 22.03.2017 um 00:18 in Nachricht
> > <94b7e5fd-cb65-4775-71df-ca8983629...@redhat.com
> > >:
> > > On 03/21/2017 11:20 AM, Radoslaw Garbacz wrote:
> > >> Hi,
> > >>
> > >> I have a problem when creating rules with many expressions:
> > >>
> > >>  
> > >>  > >> boolean-op="and">
> > >>type="string"
> > >> id="on_nodes_dbx_first_head-expr" value="Active"/>
> > >>type="string"
> > >> id="on_nodes_dbx_first_head-expr" value="AH"/>
> > >> 
> > >>   
> > >>
> > >> Result:
> > >> Call cib_replace failed (-203): Update does not conform to the
> > >> configured schema
> > >>
> > >> Everything works when I remove "boolean-op" attribute and leave
> only one
> > >> expression.
> > >> What do I do wrong when creating rules?
> > >
> > > boolean_op
> > >
> > > Underbar not dash :-)
> >
> > Good spotting, but I think a more useful error message would be
> > desired ;-)
> >
> > >
> > >>
> > >>
> > >> Pacemaker 1.1.16-1.el6
> > >> Written by Andrew Beekhof
> > >>
> > >>
> > >> Thank in advance for any help,
> > >>
> > >> --
> > >> Best Regards,
> > >>
> > >> Radoslaw Garbacz
> > >> XtremeData Incorporated
> > >
> > > ___
> > > Users mailing list: Users@clusterlabs.org
> > 
> > > http://lists.clusterlabs.org/mailman/listinfo/users
> > 
> > >
> > > Project Home: http://www.clusterlabs.org
> > > Getting started:
> > http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > 
> > > Bugs: http://bugs.clusterlabs.org
> >
> >
> >
> >
> >
> > ___
> > Users mailing list: Users@clusterlabs.org  Users@clusterlabs.org>
> > http://lists.clusterlabs.org/mailman/listinfo/users
> > 
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started:
> > http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > 
> > Bugs: http://bugs.clusterlabs.org
> >
> >
> >
> >
> > --
> > Best Regards,
> >
> > Radoslaw Garbacz
> > XtremeData Incorporated
> >
> >
> > ___
> > Users mailing list: Users@clusterlabs.org
> > http://lists.clusterlabs.org/mailman/listinfo/users
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
> >
>
>
> ___
> Users mailing list: Users@clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>



-- 
Best Regards,

Radoslaw Garbacz
XtremeData Incorporated
___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Antw: Re: CIB configuration: role with many expressions - error 203

2017-03-22 Thread Ken Gaillot
On 03/22/2017 09:26 AM, Radoslaw Garbacz wrote:
> 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).

*smacks forehead*

Yep, the documentation needs to be fixed. You were right the first time,
it's "boolean-op" with a dash.

Looking at your example again, I think the problem is that you're using
the same ID for both expressions. The ID must be unique.

> 
> To make it work I have to remove additional "" and leave
> only one.
> 
> To summarize:
> - having no "boolean..." attribute and a single "expression" - works
> - having "boolean-op" and a single "expression" - works
> 
> - having "boolean_op" and a single "expression" - does not work
> - having either "boolean-op" or "boolean_op" or no such phrase at all
> with more than one "expression" - does not work
> 
> 
> 
> I have found the reason: expressions IDs within a rule is the same, once
> I made it unique it works.
> 
> 
> Thanks,
> 
> 
> On Wed, Mar 22, 2017 at 2:06 AM, Ulrich Windl
>  > wrote:
> 
> >>> Ken Gaillot mailto:kgail...@redhat.com>>
> schrieb am 22.03.2017 um 00:18 in Nachricht
> <94b7e5fd-cb65-4775-71df-ca8983629...@redhat.com
> >:
> > On 03/21/2017 11:20 AM, Radoslaw Garbacz wrote:
> >> Hi,
> >>
> >> I have a problem when creating rules with many expressions:
> >>
> >>  
> >>  >> boolean-op="and">
> >>>> id="on_nodes_dbx_first_head-expr" value="Active"/>
> >>>> id="on_nodes_dbx_first_head-expr" value="AH"/>
> >> 
> >>   
> >>
> >> Result:
> >> Call cib_replace failed (-203): Update does not conform to the
> >> configured schema
> >>
> >> Everything works when I remove "boolean-op" attribute and leave only 
> one
> >> expression.
> >> What do I do wrong when creating rules?
> >
> > boolean_op
> >
> > Underbar not dash :-)
> 
> Good spotting, but I think a more useful error message would be
> desired ;-)
> 
> >
> >>
> >>
> >> Pacemaker 1.1.16-1.el6
> >> Written by Andrew Beekhof
> >>
> >>
> >> Thank in advance for any help,
> >>
> >> --
> >> Best Regards,
> >>
> >> Radoslaw Garbacz
> >> XtremeData Incorporated
> >
> > ___
> > Users mailing list: Users@clusterlabs.org
> 
> > http://lists.clusterlabs.org/mailman/listinfo/users
> 
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started:
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> 
> > Bugs: http://bugs.clusterlabs.org
> 
> 
> 
> 
> 
> ___
> Users mailing list: Users@clusterlabs.org 
> http://lists.clusterlabs.org/mailman/listinfo/users
> 
> 
> Project Home: http://www.clusterlabs.org
> Getting started:
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> 
> Bugs: http://bugs.clusterlabs.org
> 
> 
> 
> 
> -- 
> Best Regards,
> 
> Radoslaw Garbacz
> XtremeData Incorporated
> 
> 
> ___
> Users mailing list: Users@clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
> 
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
> 


___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Antw: Re: CIB configuration: role with many expressions - error 203

2017-03-22 Thread Radoslaw Garbacz
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).

To make it work I have to remove additional "" and leave only
one.

To summarize:
- having no "boolean..." attribute and a single "expression" - works
- having "boolean-op" and a single "expression" - works

- having "boolean_op" and a single "expression" - does not work
- having either "boolean-op" or "boolean_op" or no such phrase at all with
more than one "expression" - does not work



I have found the reason: expressions IDs within a rule is the same, once I
made it unique it works.


Thanks,


On Wed, Mar 22, 2017 at 2:06 AM, Ulrich Windl <
ulrich.wi...@rz.uni-regensburg.de> wrote:

> >>> Ken Gaillot  schrieb am 22.03.2017 um 00:18 in
> Nachricht
> <94b7e5fd-cb65-4775-71df-ca8983629...@redhat.com>:
> > On 03/21/2017 11:20 AM, Radoslaw Garbacz wrote:
> >> Hi,
> >>
> >> I have a problem when creating rules with many expressions:
> >>
> >>  
> >>  >> boolean-op="and">
> >>>> id="on_nodes_dbx_first_head-expr" value="Active"/>
> >>>> id="on_nodes_dbx_first_head-expr" value="AH"/>
> >> 
> >>   
> >>
> >> Result:
> >> Call cib_replace failed (-203): Update does not conform to the
> >> configured schema
> >>
> >> Everything works when I remove "boolean-op" attribute and leave only one
> >> expression.
> >> What do I do wrong when creating rules?
> >
> > boolean_op
> >
> > Underbar not dash :-)
>
> Good spotting, but I think a more useful error message would be desired ;-)
>
> >
> >>
> >>
> >> Pacemaker 1.1.16-1.el6
> >> Written by Andrew Beekhof
> >>
> >>
> >> Thank in advance for any help,
> >>
> >> --
> >> Best Regards,
> >>
> >> Radoslaw Garbacz
> >> XtremeData Incorporated
> >
> > ___
> > Users mailing list: Users@clusterlabs.org
> > http://lists.clusterlabs.org/mailman/listinfo/users
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
>
>
>
>
>
> ___
> Users mailing list: Users@clusterlabs.org
> http://lists.clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>



-- 
Best Regards,

Radoslaw Garbacz
XtremeData Incorporated
___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


[ClusterLabs] Antw: Re: CIB configuration: role with many expressions - error 203

2017-03-22 Thread Ulrich Windl
>>> Ken Gaillot  schrieb am 22.03.2017 um 00:18 in 
>>> Nachricht
<94b7e5fd-cb65-4775-71df-ca8983629...@redhat.com>:
> On 03/21/2017 11:20 AM, Radoslaw Garbacz wrote:
>> Hi,
>> 
>> I have a problem when creating rules with many expressions:
>> 
>>  
>> > boolean-op="and">
>>   > id="on_nodes_dbx_first_head-expr" value="Active"/>
>>   > id="on_nodes_dbx_first_head-expr" value="AH"/>
>> 
>>   
>> 
>> Result:
>> Call cib_replace failed (-203): Update does not conform to the
>> configured schema
>> 
>> Everything works when I remove "boolean-op" attribute and leave only one
>> expression.
>> What do I do wrong when creating rules?
> 
> boolean_op
> 
> Underbar not dash :-)

Good spotting, but I think a more useful error message would be desired ;-)

> 
>> 
>> 
>> Pacemaker 1.1.16-1.el6
>> Written by Andrew Beekhof
>> 
>> 
>> Thank in advance for any help,
>> 
>> -- 
>> Best Regards,
>> 
>> Radoslaw Garbacz
>> XtremeData Incorporated
> 
> ___
> Users mailing list: Users@clusterlabs.org 
> http://lists.clusterlabs.org/mailman/listinfo/users 
> 
> Project Home: http://www.clusterlabs.org 
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf 
> Bugs: http://bugs.clusterlabs.org 





___
Users mailing list: Users@clusterlabs.org
http://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org