ow2-proactive/programming

No suitable IP address found when using PAMR

activeeon-bot opened this issue · 1 comments

Original issue created by Mauricio Jost on 03, Dec 2014 at 17:38 PM - PROACTIVE-1391


Configuration being used by the RM Node agent:

<?xml version="1.0"?>
<agent
    xmlns="urn:proactive:agent:1.0:linux"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:proactive:agent:1.0:linux http://www.activeeon.com/public_content/schemas/proactive/agent/1.0/agent-linux.xsd">

    <config>
        <proactiveHome>/opt/proactive-node</proactiveHome>
        <javaHome>/opt/proactive-node/jre</javaHome>
        <jvmParameters>
            <param>-Dproactive.useIPaddress=true</param>
            <param>-Dproactive.pamr.router.address=10.197.180.205</param>
            <param>-Dproactive.pamr.router.port=33647</param>
            <param>-Dsigar.pflag.path=/tmp/pflags</param>
            <param>-Dproactive.net.nolocal=true</param>
            <!--<param>-Dproactive.net.noprivate=false</param>    << if use it  does NOT work
            <param>-Dproactive.net.interface=eth0</param>   << if use it DOES work
-->
        </jvmParameters>
        <!-- cgroup must be available and configured to set memoryLimit
             <memoryLimit>1000</memoryLimit>
        -->
        <protocol>pamr</protocol>
        <nice>19</nice>
        <!-- idle class required linux kernel >= 2.6.25
             <ionice class="idle"/>
        -->
    </config>

    <events>
        <event>
            <start day="Monday" hour="0"  minute="0" second="0" />
            <duration days="6" hours="23" minutes="59" seconds="59" />
        </event>
    </events>

    <connections>
        <localBind enabled="false"/>
        <rmConnection enabled="true">
            <respawnIncrement>10</respawnIncrement>
            <javaStarterClass>org.ow2.proactive.resourcemanager.utils.RMNodeStarter</javaStarterClass>
            <nodename>vm</nodename>
            <url>pamr://0/</url>
            <nodeSourceName>OPENSTACK</nodeSourceName>
            <credential>/opt/proactive-node/config/authentication/rm.cred</credential>
        </rmConnection>
    </connections>
</agent>

Stacktrace:

[2014-12-03 12:00:41,678 INFO ] [] [NODE.RMNodeStarter.configureLogging] Configured log4j using /opt/proactive-node/config/log/node.properties
[2014-12-03 12:00:41,732 WARN ] [] [NODE.ProActiveConfiguration$CustomProperties.put] Property proactive.agent.rank is not declared inside PAProperties , ignoring
[2014-12-03 12:00:41,753 INFO ] [] [NODE.RMNodeStarter.selectNetworkInterface] Node will be bounded to the following network interface lo
[2014-12-03 12:00:41,756 INFO ] [] [NODE.RMNodeStarter.readAndSetTheRank] Rank is 0
[2014-12-03 12:00:41,772 ERROR] [] [NODE.ProActiveInet.<init>] No local Inet Address found. Exiting
[2014-12-03 12:00:41,773 FATAL] [] [NODE.ProActiveRuntimeImpl.getProActiveRuntimeImpl] Error while initializing ProActive Runtime
java.lang.IllegalStateException: No suitable IP address found
        at org.objectweb.proactive.core.util.ProActiveInet.getInetAddress(ProActiveInet.java:84)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl$VMInformationImpl.<init>(ProActiveRuntimeImpl.java:1059)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.<init>(ProActiveRuntimeImpl.java:218)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.getProActiveRuntimeImpl(ProActiveRuntimeImpl.java:151)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.getProActiveRuntime(ProActiveRuntimeImpl.java:270)
        at org.objectweb.proactive.core.runtime.RuntimeFactory.getProtocolSpecificRuntime(RuntimeFactory.java:172)
        at org.objectweb.proactive.core.runtime.RuntimeFactory.getDefaultRuntime(RuntimeFactory.java:148)
        at org.objectweb.proactive.core.node.NodeFactory.createLocalNode(NodeFactory.java:226)
        at org.objectweb.proactive.core.node.NodeFactory.createLocalNode(NodeFactory.java:248)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.createLocalNode(RMNodeStarter.java:1020)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.doMain(RMNodeStarter.java:356)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.main(RMNodeStarter.java:328)
[2014-12-03 12:00:41,775 ERROR] [] [NODE.RMNodeStarter.createLocalNode] Unable to create the local node vm
org.objectweb.proactive.core.node.NodeException: Failed to create a local node. name=vm
        at org.objectweb.proactive.core.node.NodeFactory.createLocalNode(NodeFactory.java:229)
        at org.objectweb.proactive.core.node.NodeFactory.createLocalNode(NodeFactory.java:248)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.createLocalNode(RMNodeStarter.java:1020)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.doMain(RMNodeStarter.java:356)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.main(RMNodeStarter.java:328)
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: No suitable IP address found
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.getProActiveRuntimeImpl(ProActiveRuntimeImpl.java:171)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.getProActiveRuntime(ProActiveRuntimeImpl.java:270)
        at org.objectweb.proactive.core.runtime.RuntimeFactory.getProtocolSpecificRuntime(RuntimeFactory.java:172)
        at org.objectweb.proactive.core.runtime.RuntimeFactory.getDefaultRuntime(RuntimeFactory.java:148)
        at org.objectweb.proactive.core.node.NodeFactory.createLocalNode(NodeFactory.java:226)
        ... 4 more
Caused by: java.lang.IllegalStateException: No suitable IP address found
        at org.objectweb.proactive.core.util.ProActiveInet.getInetAddress(ProActiveInet.java:84)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl$VMInformationImpl.<init>(ProActiveRuntimeImpl.java:1059)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.<init>(ProActiveRuntimeImpl.java:218)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.getProActiveRuntimeImpl(ProActiveRuntimeImpl.java:151)
        ... 8 more
[2014-12-03 12:00:52,660 INFO ] [] [NODE.RMNodeStarter.configureLogging] Configured log4j using /opt/proactive-node/config/log/node.properties
[2014-12-03 12:00:52,713 WARN ] [] [NODE.ProActiveConfiguration$CustomProperties.put] Property proactive.agent.rank is not declared inside PAProperties , ignoring
[2014-12-03 12:00:52,734 INFO ] [] [NODE.RMNodeStarter.selectNetworkInterface] Node will be bounded to the following network interface lo
[2014-12-03 12:00:52,737 INFO ] [] [NODE.RMNodeStarter.readAndSetTheRank] Rank is 0
[2014-12-03 12:00:52,751 ERROR] [] [NODE.ProActiveInet.<init>] No local Inet Address found. Exiting
[2014-12-03 12:00:52,752 FATAL] [] [NODE.ProActiveRuntimeImpl.getProActiveRuntimeImpl] Error while initializing ProActive Runtime
java.lang.IllegalStateException: No suitable IP address found
        at org.objectweb.proactive.core.util.ProActiveInet.getInetAddress(ProActiveInet.java:84)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl$VMInformationImpl.<init>(ProActiveRuntimeImpl.java:1059)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.<init>(ProActiveRuntimeImpl.java:218)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.getProActiveRuntimeImpl(ProActiveRuntimeImpl.java:151)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.getProActiveRuntime(ProActiveRuntimeImpl.java:270)
        at org.objectweb.proactive.core.runtime.RuntimeFactory.getProtocolSpecificRuntime(RuntimeFactory.java:172)
        at org.objectweb.proactive.core.runtime.RuntimeFactory.getDefaultRuntime(RuntimeFactory.java:148)
        at org.objectweb.proactive.core.node.NodeFactory.createLocalNode(NodeFactory.java:226)
        at org.objectweb.proactive.core.node.NodeFactory.createLocalNode(NodeFactory.java:248)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.createLocalNode(RMNodeStarter.java:1020)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.doMain(RMNodeStarter.java:356)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.main(RMNodeStarter.java:328)
[2014-12-03 12:00:52,754 ERROR] [] [NODE.RMNodeStarter.createLocalNode] Unable to create the local node vm
org.objectweb.proactive.core.node.NodeException: Failed to create a local node. name=vm
        at org.objectweb.proactive.core.node.NodeFactory.createLocalNode(NodeFactory.java:229)
        at org.objectweb.proactive.core.node.NodeFactory.createLocalNode(NodeFactory.java:248)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.createLocalNode(RMNodeStarter.java:1020)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.doMain(RMNodeStarter.java:356)
        at org.ow2.proactive.resourcemanager.utils.RMNodeStarter.main(RMNodeStarter.java:328)
Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: No suitable IP address found
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.getProActiveRuntimeImpl(ProActiveRuntimeImpl.java:171)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.getProActiveRuntime(ProActiveRuntimeImpl.java:270)
        at org.objectweb.proactive.core.runtime.RuntimeFactory.getProtocolSpecificRuntime(RuntimeFactory.java:172)
        at org.objectweb.proactive.core.runtime.RuntimeFactory.getDefaultRuntime(RuntimeFactory.java:148)
        at org.objectweb.proactive.core.node.NodeFactory.createLocalNode(NodeFactory.java:226)
        ... 4 more
Caused by: java.lang.IllegalStateException: No suitable IP address found
        at org.objectweb.proactive.core.util.ProActiveInet.getInetAddress(ProActiveInet.java:84)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl$VMInformationImpl.<init>(ProActiveRuntimeImpl.java:1059)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.<init>(ProActiveRuntimeImpl.java:218)
        at org.objectweb.proactive.core.runtime.ProActiveRuntimeImpl.getProActiveRuntimeImpl(ProActiveRuntimeImpl.java:151)
        ... 8 more

Some information about the VM where the agent runs:


root@springoo-jonas-9f539fde-3c0d-4f78-b3fe-80297b735d64:/opt/proactive-agent# cat /etc/issue
Ubuntu 12.04.1 LTS \n \l


root@springoo-jonas-9f539fde-3c0d-4f78-b3fe-80297b735d64:/opt/proactive-agent# ifconfig
eth0      Link encap:Ethernet  HWaddr fa:16:3e:9f:bb:ec  
          inet addr:10.0.185.33  Bcast:10.0.185.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fe9f:bbec/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:164998 errors:0 dropped:0 overruns:0 frame:0
          TX packets:53117 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:118047659 (118.0 MB)  TX bytes:8950132 (8.9 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:26577 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26577 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2495054 (2.4 MB)  TX bytes:2495054 (2.4 MB)

root@springoo-jonas-9f539fde-3c0d-4f78-b3fe-80297b735d64:/opt/proactive-agent# 

When using -Dproactive.net.noprivate=false