[ClusterLabs] Where is the syntax for parameter types?

Oyvind Albrigtsen oalbrigt at redhat.com
Wed Oct 16 05:02:19 EDT 2019


On 16/10/19 10:53 +0200, Ulrich Windl wrote:
>Hi!
>
>I just discovered an interesting problem with my own RA that allows a boolean 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.

Feel free to create a pull request or issue on
https://github.com/ClusterLabs/resource-agents.


Oyvind
>
>Regards,
>Ulrich
>
>
>_______________________________________________
>Manage your subscription:
>https://lists.clusterlabs.org/mailman/listinfo/users
>
>ClusterLabs home: https://www.clusterlabs.org/


More information about the Users mailing list