[Pacemaker] getnameinfo() vs uname()

Andrew Beekhof andrew at beekhof.net
Wed Aug 29 06:33:34 EDT 2012


On Wed, Aug 29, 2012 at 4:22 PM, Vladislav Bogdanov
<bubble at hoster-ok.com> wrote:
> Hi,
>
> It looks like pacemaker (current master)

"current master" changes quite rapidly, could you be specific?

> does not always work nicely on
> top of corosync2 if one doesn't have /etc/hosts with all cluster nodes
> in it, where short form of name goes before the long one (so
> gethostbyaddr() and getnameinfo() return the short one).

I noticed a different issue related to this, but I need to know
exactly which version you had before I can answer properly.

> I tried to run
> test cluster with stub /etc/hosts but fully functional name server, and
> I see that pacemaker includes long nodenames (fqdn) into nodelist, while
> expecting them to be equal to what uname() returns for the local node.
> After I created needed entries in /etc/hosts everything began to work.
> From getaddrinfo manpage, NI_NOFQDN flag should help to avoid this
> behavior. Additionally, NI_NAMEREQD flag should probably be also used.
>
> Should I open bug for this?
>
> Best,
> Vladislav
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org




More information about the Pacemaker mailing list