-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UX: should not add any invalid cluster property into CIB #861
Comments
Be aware some users might have their customized cluster properties for their own use cases. Right, @fmherschel? |
@gao-yan that's true! For SAPHanaSR* resource agents we meed to add special properties not already known by the cluster. The RA does the writes and the reads so the cluster core is here only a vehicle. |
@liangxin1300 Do you mean RA as resource agent?? Or do you mean, if any resource exists the behavior is different? |
Yes I mean this behavior:
|
I don't know why it has to behave differently with/without resources :-) But AFAICS it alright as long as they are just warnings rather than errors, so that |
@liangxin1300 My point was only about you do not add an resource agent but a resource. The resource agent is a part ot Software handling the resource as a plugin of the cluster. Adding a resource agent would be to add a script in e.g. /usr/lib/ocf/resource.d/heartbeat/MyNewDummy. And such things could also influence the warnings, if you then add a resource using the new RA (here MyNewDummy). |
…ve resource configured To ensure consistent behavior for warnings, see ClusterLabs#861 (comment)
tw:~ # crm configure property maintenance=true
WARNING: cib-bootstrap-options: unknown attribute 'maintenance'
tw:~ # crm configure show | grep maintenance
maintenance=true
Instead of a WARNING, it's an ERROR. And, crmsh should not add any invalid cluster property into CIB.
ERROR: cib-bootstrap-options: unknown attribute 'maintenance'
Or, ideally, better to be,
tw:~ # crm configure property maintenance=true
WARNING: cib-bootstrap-options: the best match of unknown attribute 'maintenance' is 'maintenance-mode'
tw:~ # crm configure show | grep maintenance
maintenance-mode=true
The text was updated successfully, but these errors were encountered: