Problem with cluster in docker container - no test response

asked 2015-02-24 12:42:56 -0800

bogdatov gravatar image

Hello

I have odl integration with karaf 0.2.2 I followed this guide to configure cluster https://www.opendaylight.org/sites/opendaylight/files/bk-user-guide.pdf installed features, jolokia, modified akka.conf on 1st box (did not yet setup 2nd box)

I see that I'm listening on ports 2550 and 2551

root@bc943c9d5fe1:/opt/distribution-karaf-0.2.2-Helium-SR2/configuration/initial# netstat -an

Active Internet connections (servers and established)

Proto Recv-Q Send-Q Local Address Foreign Address State

tcp 0 0 0.0.0.0:8181 0.0.0.0:* LISTEN

tcp 0 0 172.17.0.175:2550 0.0.0.0:* LISTEN

tcp 0 0 172.17.0.175:2551 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:58648 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:8185 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:44444 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:6653 0.0.0.0:* LISTEN

tcp 0 0 127.0.0.1:47491 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:8101 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:6633 0.0.0.0:* LISTEN

tcp 0 0 0.0.0.0:1099 0.0.0.0:* LISTEN

Active UNIX domain sockets (servers and established)

Proto RefCnt Flags Type State I-Node Path

unix 3 [ ] STREAM CONNECTED 5552168

unix 3 [ ] STREAM CONNECTED 5552167

unix 2 [ ] STREAM CONNECTED 5552062

unix 2 [ ] STREAM CONNECTED 5552058

But when I test with this command curl "http://<myhost>:8181/jolokia/read/org.opendaylight.controller:Category=Shards,name=member-1-shard-inventoryconfig,type=DistributedConfigDatastore" from outside of docker</myhost>

I'm getting this error: {"error_type":"javax.management.InstanceNotFoundException","error":"javax.management.InstanceNotFoundException : org.opendaylight.controller:Category=Shards,name=member-1-shard-inventoryconfig,type=DistributedConfigDatastore","status":404,"request":{"mbean":"org.opendaylight.controller:Category=Shards,name=member-1-shard-inventoryconfig,type=DistributedConfigDatastore","type":"read"},"stacktrace":"javax.management.InstanceNotFoundException: org.opendaylight.controller:Category=Shards,name=member-1-shard-inventoryconfig,type=DistributedConfigDatastore\n\tat com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)\n\tat com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBeanInfo(DefaultMBeanServerInterceptor.java:1375)\n\tat com.sun.jmx.mbeanserver.JmxMBeanServer.getMBeanInfo(JmxMBeanServer.java:920)\n\tat org.jolokia.handler.ReadHandler$1.execute(ReadHandler.java:46)\n\tat org.jolokia.handler.ReadHandler$1.execute(ReadHandler.java:41)\n\tat org.jolokia.backend.executor.AbstractMBeanServerExecutor.call(AbstractMBeanServerExecutor.java:90)\n\tat org.jolokia.handler.ReadHandler.getMBeanInfo(ReadHandler.java:232)\n\tat org.jolokia.handler.ReadHandler.getAllAttributesNames(ReadHandler.java:244)\n\tat org.jolokia.handler.ReadHandler.resolveAttributes(ReadHandler.java:216)\n\tat org.jolokia.handler.ReadHandler.fetchAttributes(ReadHandler.java:184)\n\tat org.jolokia.handler.ReadHandler.doHandleRequest(ReadHandler.java:119)\n\tat org.jolokia.handler.ReadHandler.doHandleRequest(ReadHandler.java:37)\n\tat org.jolokia.handler.JsonRequestHandler.handleRequest(JsonRequestHandler.java:160)\n\tat org.jolokia.backend.MBeanServerHandler.dispatchRequest(MBeanServerHandler.java:97)\n\tat org.jolokia.backend.LocalRequestDispatcher.dispatchRequest(LocalRequestDispatcher.java:91)\n\tat org.jolokia.backend.BackendManager.callRequestDispatcher(BackendManager.java:388)\n\tat org.jolokia ... (more)

edit retag flag offensive close merge delete