It turned out the firewall on my Openstack server was blocking access to port 9696. After fixing that, the exception went away.
Thanks, -Jeffrey From: jeffrngu <jeffr...@cisco.com<mailto:jeffr...@cisco.com>> Reply-To: "user@jclouds.apache.org<mailto:user@jclouds.apache.org>" <user@jclouds.apache.org<mailto:user@jclouds.apache.org>> Date: Wednesday, January 7, 2015 4:35 PM To: "user@jclouds.apache.org<mailto:user@jclouds.apache.org>" <user@jclouds.apache.org<mailto:user@jclouds.apache.org>>, "udaraliyan...@gmail.com<mailto:udaraliyan...@gmail.com>" <udaraliyan...@gmail.com<mailto:udaraliyan...@gmail.com>> Subject: Re: Jclouds Neutron - No route to host when listing ports Hi Udara, I'm running into the same issue. How did you open up port 9696 on Openstack? On my openstack instance, under the tenant I'm testing, I added an Ingress entry for TCP port 9696 but still got the same exception. Thanks, -Jeffrey From: Udara Liyanage <udaraliyan...@gmail.com<mailto:udaraliyan...@gmail.com>> Reply-To: "user@jclouds.apache.org<mailto:user@jclouds.apache.org>" <user@jclouds.apache.org<mailto:user@jclouds.apache.org>> Date: Thursday, August 21, 2014 1:56 AM To: "user@jclouds.apache.org<mailto:user@jclouds.apache.org>" <user@jclouds.apache.org<mailto:user@jclouds.apache.org>> Subject: Re: Jclouds Neutron - No route to host when listing ports Hi Zack, The problem was port 9696 was not accessible from outside. On Mon, Aug 18, 2014 at 6:34 PM, Zack Shoylev <zack.shoy...@rackspace.com<mailto:zack.shoy...@rackspace.com>> wrote: Hi Udara, how do you instantiate neutronApi? It seems it's trying to connect to example.com<http://example.com> so the endpoint is probably wrong. ________________________________ From: Udara Liyanage [ud...@wso2.com<mailto:ud...@wso2.com>] Sent: Monday, August 18, 2014 12:27 AM To: user@jclouds.apache.org<mailto:user@jclouds.apache.org> Subject: Jclouds Neutron - No route to host when listing ports Hi, I tried following code snippet to list ports in Openstack. <http://stackoverflow.com/questions/25356803/jclouds-neutron-no-route-to-host-when-listing-ports#> NetworkApi networkApi = neutronApi.getNetworkApiForZone(ZONE); List<? extends Network> networks = networkApi.listInDetail().concat().toList(); for (Network network: networks) { System.out.format(" %s%n", network); } I get the following error when I tries listing ports in Openstack Neutron. Environment details : Openstack Icehouse on RedHad, Jclouds version : 1.7.4-SNAPSHOT org.jclouds.http.HttpResponseException: No route to host connecting to GET http://example.com:9696/v2.0/networks HTTP/1.1 at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:162) at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:93) at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:76) at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:47) at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117) at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:79) at com.sun.proxy.$Proxy48.listInDetail(Unknown Source) at org.apache.stratos.cloud.controller.pojo.Udara.listNetworks(Udara.java:89) at org.apache.stratos.cloud.controller.pojo.Udara.main(Udara.java:35) Caused by: java.net.NoRouteToHostException: No route to host at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1514) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1508) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1162) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379) at org.jclouds.http.internal.JavaUrlHttpCommandExecutorService.invoke(JavaUrlHttpCommandExecutorService.java:112) at org.jclouds.http.internal.JavaUrlHttpCommandExecutorService.invoke(JavaUrlHttpCommandExecutorService.java:72) at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:141) ... 8 more -- Udara Liyanage Software Engineer WSO2, Inc.: http://wso2.com<http://wso2.com/> lean. enterprise. middleware web: http://udaraliyanage.wordpress.com phone: +94 71 443 6897 -- Udara S.S Liyanage. Software Engineer at WSO2. Commiter and PPMC Member of Apache Stratos. Blog - http://udaraliyanage.wordpress.com<http://udaraliyanage.wordpress.com/> phone: +94 71 443 6897