You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mysql agent checks the OCF_RESKEY_CRM_meta_notify_master_uname meta attribute during the start operation to determine which node (if any) is already promoted. This has a few issues:
It doesn't work. That meta attribute is set only during certain notify operations -- not during start operations.
The "master" terminology is deprecated in favor of "promoted."
If there are multiple promoted nodes (probably not possible in practice for mysql, but I'm not sure), then the parsing will probably break.
The main issue of course is that it doesn't work. I'd suggest something like crm_resource --resource <rsc_name> --locate --output-as=xml and then grabbing the node name(s) from the XML output where state="promoted".
The
mysql
agent checks theOCF_RESKEY_CRM_meta_notify_master_uname
meta attribute during the start operation to determine which node (if any) is already promoted. This has a few issues:mysql
, but I'm not sure), then the parsing will probably break.The main issue of course is that it doesn't work. I'd suggest something like
crm_resource --resource <rsc_name> --locate --output-as=xml
and then grabbing the node name(s) from the XML output wherestate="promoted"
.The best practice is for tools to parse the XML output, since the text output format may change.
The text was updated successfully, but these errors were encountered: