Re: [Linux-HA] Using rules for resource options control question
On Fri, Sep 13, 2013 at 11:33:46AM +0300, Vladislav Bogdanov wrote: > 12.09.2013 11:57, Dejan Muhamedagic wrote: > > Hi Vladislav, > > > > On Wed, Sep 11, 2013 at 02:06:12PM +0300, Vladislav Bogdanov wrote: > >> Hi Dejan, all, > >> > >> Didn't find the way to configure rule-controlled resource options > >> (http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_using_rules_to_control_resource_options.html) > >> in crmsh manual. > >> > >> Is it implemented and, if yes, how to use it? > > > > No, crmsh supports rules only in location constraints. I guess > > that it shouldn't be such a huge undertaking to support rules for > > attributes if we only knew how to represent them. > > Hi Dejan, > > Do you mean something like (multiple definitions are allowed if all of > them has , error otherwise; only one of definitions could have > empty ) > === > params [: []] \ > > === > ? If it is technically possible to always correctly detect the end of > and beginning of parameters (I think it is). > parsing could be reused from location constraint. Could be :) I'm not sure, but this is worth looking at. Rumour has it that there's some parsing in works. Cheers, Dejan > ___ > Linux-HA mailing list > Linux-HA@lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
Re: [Linux-HA] Using rules for resource options control question
12.09.2013 11:57, Dejan Muhamedagic wrote: > Hi Vladislav, > > On Wed, Sep 11, 2013 at 02:06:12PM +0300, Vladislav Bogdanov wrote: >> Hi Dejan, all, >> >> Didn't find the way to configure rule-controlled resource options >> (http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_using_rules_to_control_resource_options.html) >> in crmsh manual. >> >> Is it implemented and, if yes, how to use it? > > No, crmsh supports rules only in location constraints. I guess > that it shouldn't be such a huge undertaking to support rules for > attributes if we only knew how to represent them. Hi Dejan, Do you mean something like (multiple definitions are allowed if all of them has , error otherwise; only one of definitions could have empty ) === params [: []] \ === ? If it is technically possible to always correctly detect the end of and beginning of parameters (I think it is). parsing could be reused from location constraint. ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
Re: [Linux-HA] Using rules for resource options control question
Hi Vladislav, On Wed, Sep 11, 2013 at 02:06:12PM +0300, Vladislav Bogdanov wrote: > Hi Dejan, all, > > Didn't find the way to configure rule-controlled resource options > (http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_using_rules_to_control_resource_options.html) > in crmsh manual. > > Is it implemented and, if yes, how to use it? No, crmsh supports rules only in location constraints. I guess that it shouldn't be such a huge undertaking to support rules for attributes if we only knew how to represent them. Thanks, Dejan > Thanks, > Vladislav > ___ > Linux-HA mailing list > Linux-HA@lists.linux-ha.org > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
[Linux-HA] Using rules for resource options control question
Hi Dejan, all, Didn't find the way to configure rule-controlled resource options (http://clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pacemaker_Explained/_using_rules_to_control_resource_options.html) in crmsh manual. Is it implemented and, if yes, how to use it? Thanks, Vladislav ___ Linux-HA mailing list Linux-HA@lists.linux-ha.org http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems