You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2012/05/09 11:00:15 UTC

[jira] [Commented] (KARAF-1311) cluster:group-list command returns unresolvable node name

    [ https://issues.apache.org/jira/browse/KARAF-1311?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13271225#comment-13271225 ] 

Jean-Baptiste Onofré commented on KARAF-1311:
---------------------------------------------

Currently, the HazelcastClusterManager uses member.getInetSocketAddress().getHostName() to get the hostname of a node.

Let me check if there is a better way, specially to handle mDns service, etc.

A "simple" workaround would be to always use the IP address instead of the hostname.
                
> cluster:group-list command returns unresolvable node name
> ---------------------------------------------------------
>
>                 Key: KARAF-1311
>                 URL: https://issues.apache.org/jira/browse/KARAF-1311
>             Project: Karaf
>          Issue Type: Bug
>          Components: cellar-core
>    Affects Versions: cellar-2.2.3
>            Reporter: Sergey Lysenko
>            Assignee: Jean-Baptiste Onofré
>             Fix For: cellar-3.0.0, cellar-2.2.4
>
>         Attachments: unresolvable-nodename.png
>
>
> There are two test hosts: 10.7.17.97 and 10.7.17.98, without any local DNS and with some diffrerent contents in /etc/hosts file
> The host 10.7.17.97 runs avahi-daemon mDns service, so it's hostname is resolved to <hostname>.local
> The host 10.7.17.97 is visible and pingable by terms of OS from shell prompt.
> Both hosts has one karaf instance running with installed cellar feature
> Output of cluster:node-list command displays correct and resolvable node names (which is different for these two hosts and finely resolvable on each of then),
> while output of cluster:group-list outputs uses hostname resolved by mDns for the 10.7.17.97 host.
> Node name which contains resolved hostname can not be used for access to this node while using other commands.
> It is expected that node names in cluster:group-list are resolvable, same as in output of cluster:node-list command.
> Either output of cluster:group-list should be changed, or access to nodes through hostnames resolved by mDns should be provided
> See screenshot for reference.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira