Re: [ClusterLabs] Antw: Re: crm shell 2.1.2 manual bug?

2018-03-28 Thread Andrei Borzenkov
28.03.2018 15:12, Ulrich Windl пишет:
> 
> I was hoping "colocation ... ( B C D ) A" to be a shortcut of "colocation ...
> B A", "colocation ... C A", "colocation ... D A"...
> 

Well, my understanding is that "colocation { B C D } { A }" should do
exactly that.
___
Users mailing list: Users@clusterlabs.org
https://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: crm shell 2.1.2 manual bug?

2018-03-28 Thread Ulrich Windl
>>> Andrei Borzenkov  schrieb am 28.03.2018 um 12:39 in
Nachricht :
> 28.03.2018 13:25, Ulrich Windl пишет:
>> Hi!
>> 
>> For crmsh-2.1.2+git132.gbc9fde0-18.2 I think there's a bug in the manual 
> describing resource sets:
>> 
>>sequential
>>If true, the resources in the set do not depend on each other 
> internally. Setting sequential to true implies a strict order of dependency

> within the set.
>> 
>> Obviously "true" cannot mean both: "do not depend" and "depend". My guess
is 
> that the first true has to be false.
>> 
>> In addition, isn't the syntax with resource sets missing something (despite

> from the description)?:
>> 
>> colocation  : resource_sets
>>  [node-attribute=]
>> 
>> comparing to
>> 
>> colocation  : [:] [:]
>>  [node-attribute=]
>> 
>> I expected the with-rsc to be at the end also when using resource sets...
>> 
> 
> No, colocating sets works indeed differently, syntax is correct (for XML
> examples in pacemaker explained that is ...)
> 
>> I came across this when trying to add a colocation like this:
>> colocation col_LV inf:( cln_LV cln_LV-L1 cln_LV-L2 cln_ML cln_ML-L1 
> cln_ML-L2 ) cln_VMs
>> 
>> crm complained about this:
>> ERROR: 1: syntax in role: Unmatched opening bracket near 
parsing 
> 'colocation ...'
>> ERROR: 2: syntax: Unknown command near  parsing 'cln_ml-l2 ) 
> cln_VMs'
>> (note the lower case)
>> 
> 
> You need to create set consisting of single resource. I do not know if
> it possible to colocate set and single resource - none of examples show it.

I was hoping "colocation ... ( B C D ) A" to be a shortcut of "colocation ...
B A", "colocation ... C A", "colocation ... D A"...

Regards,
Ulrich


> 
> See also
> https://clusterlabs.org/pacemaker/doc/en-US/Pacemaker/1.1/html/Pacemaker_Exp

> lained/s-resource-sets-colocation.html
> ___
> Users mailing list: Users@clusterlabs.org 
> https://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
https://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