[
https://issues.jboss.org/browse/JGRP-2102?page=com.atlassian.jira.plugin....
]
Bela Ban edited comment on JGRP-2102 at 9/30/16 10:56 AM:
----------------------------------------------------------
I cannot reproduce this, and I'm not sure I understand what you're describing.
I suggest drop {{bind_interface}} and only use {{bind_addr}}, e.g.
{{bind_addr="match-interface:eth0"}}. The {{bind_interface}} attribute was
removed in 4.0 anyway.
was (Author: belaban):
I cannot reproduce this, and I'm not sure I understand what you're describing.
I suggest drop {{bind_interface}} and only use {{bind_addr}}, e.g. {{
bind_addr="match-interface:eth0"}}. The {{bind_interface}} attribute was removed
in 4.0 anyway.
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: {noformat}
[root@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
{noformat}
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(a)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
{code}
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;
}
{code}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)