[ClusterLabs] Antw: Re: Where is the syntax for parameter types?

Ulrich Windl Ulrich.Windl at rz.uni-regensburg.de
Wed Oct 16 05:09:00 EDT 2019

>>> Oyvind Albrigtsen <oalbrigt at redhat.com> schrieb am 16.10.2019 um 11:02 in
Nachricht <20191016090219.z5jz4tnd5hxi7xpf at redhat.com>:
> On 16/10/19 10:53 +0200, Ulrich Windl wrote:
>>I just discovered an interesting problem with my own RA that allows a
> parameter:
>>Where is the exact syntax for "boolean" defined, and who's responsible for 
> checking it? The RA or (e.g.) crm?
>>The concrete problem is that my RA expected the boolean parameter to be 
> either '0' or '1', but crm shell was happy with the value "true".
>>So where is the document describing the parameter types' syntax, and who is

> responsible for checking that? RA's validate‑all?
> This is done by the validate‑all action for the RA.
> Sounds like the agent should use "ocf_is_true" instead of checking
> against a specific value.

Still this doesn't help the user who's going to enter the (e.g.) Boolean
> Feel free to create a pull request or issue on
> https://github.com/ClusterLabs/resource‑agents.
> Oyvind
>>Manage your subscription:
>>ClusterLabs home: https://www.clusterlabs.org/ 
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users 
> ClusterLabs home: https://www.clusterlabs.org/ 

More information about the Users mailing list