As it stands now, just about all of the command-line tools are unable to cope
with commands that specify node names that don't exactly match the names given
in /etc/cluster/cluster.conf (e.g., a bug in conga was found recently because it
was calling 'fence_node tng-3.lab.msp.redhat.com' instead of 'fence_node
tng-3'). The same problem exists if you use an IP address instead of a hostname.
Add this function to give applications a way to lookup the name that ought to be
used when given a valid address of a cluster node that doesn't exactly match the
string in the cluster.conf.
* @cd: ccs descriptor
* @nodename: node name string
* @retval: pointer to location to assign the result, if found
* This function takes any valid representation (FQDN, non-qualified
* hostname, IP address, IPv6 address) of a node's name and finds its
* canonical name (per cluster.conf). This function will find the primary
* node name if passed a node's "altname" or any valid representation
* of it.
* Returns: 0 on success, < 0 on failure
Created attachment 220131 [details]
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.