[jboss-jira] [JBoss JIRA] (WFLY-10245) Mod_cluster requires Advertise but Multicast interface is not available
Radoslav Husar (JIRA)
issues at jboss.org
Mon Apr 16 09:44:01 EDT 2018
[ https://issues.jboss.org/browse/WFLY-10245?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radoslav Husar moved MODCLUSTER-545 to WFLY-10245:
--------------------------------------------------
Project: WildFly (was: mod_cluster)
Key: WFLY-10245 (was: MODCLUSTER-545)
Affects Version/s: (was: 1.3.3.Final)
> Mod_cluster requires Advertise but Multicast interface is not available
> -----------------------------------------------------------------------
>
> Key: WFLY-10245
> URL: https://issues.jboss.org/browse/WFLY-10245
> Project: WildFly
> Issue Type: Bug
> Reporter: Bogdan Sikora
> Assignee: Radoslav Husar
> Priority: Minor
> Attachments: standalone-ha.xml, standalone.xml
>
>
> This error message has probably no impact to mod-cluster functionality as tests successfully finished even with this message in workers log. Balancer (standalone.xml) has no error messages.
> [^standalone-ha.xml] (worker)
> [^standalone.xml] (balancer)
> Issue:
> {noformat}
> 2016-10-24 03:51:18,393 ERROR [org.wildfly.extension.mod_cluster] (ServerService Thread Pool -- 64) WFLYMODCLS0004: Mod_cluster requires Advertise but Multicast interface is not available
> {noformat}
> Environment:
> Windows machine with Tunnel adapter Teredo Tunneling Pseudo-Interface
> Scenario:
> 1. Start Eap (standalone-ha.xml) on Ipv6 address with prefix 2001 (Teredo Tunneling)
> 2. Look for Mod_cluster Advertising error
> Error from ContainerEventHandlerService class
> {code}
> // Read node to set configuration.
> if (config.getAdvertise()) {
> // There should be a socket-binding.... Well no it needs an advertise socket :-(
> final SocketBinding binding = this.binding.getOptionalValue();
> if (binding != null) {
> config.setAdvertiseSocketAddress(binding.getMulticastSocketAddress());
> config.setAdvertiseInterface(binding.getSocketAddress().getAddress());
> if (!isMulticastEnabled(bindingManager.getValue().getDefaultInterfaceBinding().getNetworkInterfaces())) {
> ROOT_LOGGER.multicastInterfaceNotAvailable();
> }
> }
> }
> ...
> private boolean isMulticastEnabled(Collection<NetworkInterface> ifaces) {
> for (NetworkInterface iface : ifaces) {
> try {
> if (iface.isUp() && (iface.supportsMulticast() || iface.isLoopback())) {
> return true;
> }
> } catch (SocketException e) {
> // Ignore
> }
> }
> return false;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list