[jboss-jira] [JBoss JIRA] (JGRP-2102) bind_interface="eth0" and bind_addr="LINK_LOCAL" config are conflict

俐佳 张 (JIRA) issues at jboss.org
Wed Sep 28 23:13:00 EDT 2016


    [ https://issues.jboss.org/browse/JGRP-2102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13300063#comment-13300063 ] 

俐佳 张 commented on JGRP-2102:
----------------------------

Bela Ban
In fact we're using infinispan and it is bind to jgroup, we couldn't choose jgroup version free. Could you kindly let me know the earliest version which include the fix.

> bind_interface="eth0" and bind_addr="LINK_LOCAL" config are conflict
> --------------------------------------------------------------------
>
>                 Key: JGRP-2102
>                 URL: https://issues.jboss.org/browse/JGRP-2102
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>         Environment: [root at wtc2k01v27 ~] CLONE # ip a
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
>     link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>     inet 127.0.0.1/8 scope host lo
>     inet6 2606:ae00:e200:3f::83/128 scope global
>  valid_lft forever preferred_lft forever
>     inet6 ::1/128 scope host
>  valid_lft forever preferred_lft forever
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
>     link/ether 00:50:56:ab:2a:ea brd ff:ff:ff:ff:ff:ff
>     inet 107.250.167.28/25 brd 107.250.167.127 scope global eth0
>     inet6 2606:ae00:e200:3f::28/64 scope global
>  valid_lft forever preferred_lft forever
>     inet6 fe80::250:56ff:feab:2aea/64 scope link
>  valid_lft forever preferred_lft forever
> 3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
>     link/ether 00:50:56:ab:d6:12 brd ff:ff:ff:ff:ff:ff
>     inet 192.168.0.59/24 brd 192.168.0.255 scope global eth1
>     inet6 fe80::250:56ff:feab:d612/64 scope link
>  valid_lft forever preferred_lft forever
> There're eth0 and eth1 exists in the environment
>            Reporter: 俐佳 张
>            Assignee: Bela Ban
>             Fix For: 3.6.12
>
>         Attachments: jgroups-udp.xml
>
>
> Error happens while 
> Caused by: org.infinispan.commons.CacheConfigurationException: ISPN000085: Error while trying to create a channel using the specified configuration file: /opt/oss/NSN-icf_notification_dispatcher/conf/jgroups-udp.xml
>         at org.infinispan.remoting.transport.jgroups.JGroupsTransport.buildChannel(JGroupsTransport.java:406)
>         at org.infinispan.remoting.transport.jgroups.JGroupsTransport.initChannel(JGroupsTransport.java:307)
>         at org.infinispan.remoting.transport.jgroups.JGroupsTransport.initChannelAndRPCDispatcher(JGroupsTransport.java:351)
>         at org.infinispan.remoting.transport.jgroups.JGroupsTransport.start(JGroupsTransport.java:188)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
>         at java.lang.reflect.Method.invoke(Method.java:620)
>         at org.infinispan.commons.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:168)
>         at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:869)
>         at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:638)
>         at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:627)
>         at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:530)
>         at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:226)
>         ... 26 more
> Caused by: java.lang.Exception: Property assignment of bind_interface in UDP with original property value eth0 and converted to null could not be assigned
>         at org.jgroups.stack.Configurator.resolveAndAssignField(Configurator.java:1153)
>         at org.jgroups.stack.Configurator.createLayer(Configurator.java:444)
>         at org.jgroups.stack.Configurator.createProtocols(Configurator.java:398)
>         at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:90)
>         at org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:57)
>         at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:477)
>         at org.jgroups.JChannel.init(JChannel.java:854)
>         at org.jgroups.JChannel.<init>(JChannel.java:159)
>         at org.jgroups.JChannel.<init>(JChannel.java:129)
>         at org.infinispan.remoting.transport.jgroups.JGroupsTransport.buildChannel(JGroupsTransport.java:404)
>         ... 39 more
> Caused by: java.lang.Exception: Conversion of bind_interface in UDP with original property value eth0 failed
>         at org.jgroups.conf.PropertyHelper.getConvertedValue(PropertyHelper.java:84)
>         at org.jgroups.stack.Configurator.resolveAndAssignField(Configurator.java:1147)
>         ... 48 more
> Caused by: java.lang.mail at example.comIllegalArgumentException: network interface eth0 does not contain address fe80:0:0:0:250:56ff:feab:d612%3
>         at org.jgroups.util.Util.validateBindAddressFromInterface(Util.java:3132)
> bind_interface="eth0" and bind_addr="LINK_LOCAL" config are config at the same time
> but it couldn't get the eth0 link local address but return eth1 link local address
> This code return the first address that match, it should return with eth0
> jgroups-3.6.1.Final-sources\org\jgroups\util\Util.java
> public static InetAddress getAddress(AddressScope scope)                          ----> scope is LINK_LOCAL
>     throws SocketException
>   {
>     InetAddress address = null;
>     Enumeration intfs = NetworkInterface.getNetworkInterfaces();
>     while (intfs.hasMoreElements()) {
>       NetworkInterface intf = (NetworkInterface)intfs.nextElement();
>       try {
>         if (intf.isUp()) {
>           address = getAddress(intf, scope);      -------> It will return the first LINK_LOCAL address from NICs list
>           if (address != null)
>             return address;
>         }
>       }
>       catch (SocketException e) {
>       }
>     }
>     return null;
>   }



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list