This break version detection and cause ocf_local_nodename to use uname -n instead of crm_node -n to get the name of the local node. Breaking any agent relying on this function on a node that doesn't use its hostname as its nodename.
I noticed this problem when attempting to use ganesha_grace from the GlusterFS project, but this function seems to be used by agents in this repository too (and using this function should be the correct thing to do anyway).
Since https://github.com/ClusterLabs/pacemaker/commit/67e342d78f1c0972dd14d8a3f731b06bc8208747
pacemakerd -$
return two lines containing matching the regex used byocf_local_nodename
to detect the version of pacemaker used.This break version detection and cause
ocf_local_nodename
to useuname -n
instead ofcrm_node -n
to get the name of the local node. Breaking any agent relying on this function on a node that doesn't use its hostname as its nodename.I noticed this problem when attempting to use
ganesha_grace
from the GlusterFS project, but this function seems to be used by agents in this repository too (and using this function should be the correct thing to do anyway).