ClusterLabs / OCF-spec

http://standards.clusterlabs.org
20 stars 11 forks source link

[defect] OCF needs exact lexical rules #19

Open jnpkrn opened 6 years ago

jnpkrn commented 6 years ago

Currently, pacemaker seems to naively rely on some characters never used in the name of the paramater to be passed to resource agent, and would probably go south if that was the case. However, OCF currently offers no such lexical assumptions. We need to establish formal (hence predictable) grounds in the specification in general, this one being low-hanging fruit with significant impact, but the subtask would be to review which other places are likewise not covered.

jnpkrn commented 6 years ago

As demonstrated in https://github.com/ClusterLabs/OCF-spec/pull/15#issuecomment-386733449 na(t)ive shell approach to environment variables also makes using some characters in the parameter names basically frowned upon.

We have a benefit of considering these practical use cases now to restrict lexical rules sensibly.