Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-956

allocateFloatingIPForNode in Nova

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.9.0
    • 1.9.1, 2.0.0
    • jclouds-compute
    • None

    Description

      While provisioning more than 1 VM, I sometimes get this error

      -  >> "{"pool":"my-pool"}"
      -  >> POST https://myprovider.com/compute/v2/c8d3c47a466eec25a/os-floating-ips HTTP/1.1
      -  >> Accept: application/json
      -  >> X-Auth-Token: AQIC5wM2LY4SfcwG_QdLNpTu70Efa8hQpS3NF8tL4TkBt9I.*AAJTSQACMDIAAlNLABM4NTc5MTY5MTQyOTY1ODU0Mjg2AAJTMQACMDE.*
      -  >> Content-Type: application/json
      -  >> Content-Length: 27
      -  Command not considered safe to retry because request method is POST: [method=org.jclouds.openstack.nova.v2_0.extensions.FloatingIPApi.public abstract org.jclouds.openstack.nova.v2_0.domain.FloatingIP org.jclouds.openstack.nova.v2_0.extensions.FloatingIPApi.allocateFromPool(java.lang.String)[PublicNetwork-02], request=POST https://myprovider/compute/v2/7a466eec25a/os-floating-ips HTTP/1.1]
      -  createNodesInGroup(group-89), completed: 0/2, errors: 1, rate: 67349ms/op
      java.util.concurrent.ExecutionException: org.jclouds.http.HttpResponseException: Unexpected end of file from server connecting to POST https://cloud.numergy.com/compute/v2/3e00d5716204446c8d3c47a466eec25a/os-floating-ips HTTP/1.1
              at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299) ~[guava-16.0.1.jar:na]
              at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286) ~[guava-16.0.1.jar:na]
              at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) ~[guava-16.0.1.jar:na]
              at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:123) ~[jclouds-core-1.9.1-20150629.094306-95.jar:1.9.1-SNAPSHOT]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_71]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_71]
              at java.lang.Thread.run(Thread.java:745) [na:1.7.0_71]
      Caused by: org.jclouds.http.HttpResponseException: Unexpected end of file from server connecting to POST https://cloud.numergy.com/compute/v2/3e00d5716204446c8d3c47a466eec25a/os-floating-ips HTTP/1.1
              at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:117) ~[jclouds-core-1.9.1-20150629.094306-95.jar:1.9.1-SNAPSHOT]
              at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:90) ~[jclouds-core-1.9.1-20150629.094306-95.jar:1.9.1-SNAPSHOT]
              at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:73) ~[jclouds-core-1.9.1-20150629.094306-95.jar:1.9.1-SNAPSHOT]
              at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:44) ~[jclouds-core-1.9.1-20150629.094306-95.jar:1.9.1-SNAPSHOT]
              at org.jclouds.reflect.FunctionalReflection$FunctionalInvocationHandler.handleInvocation(FunctionalReflection.java:117) ~[jclouds-core-1.9.1-20150629.094306-95.jar:1.9.1-SNAPSHOT]
              at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87) ~[guava-16.0.1.jar:na]
              at com.sun.proxy.$Proxy80.allocateFromPool(Unknown Source) ~[na:na]
              at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.allocateFloatingIPForNode(AllocateAndAddFloatingIpToNode.java:112) ~[openstack-nova-1.9.1-20150629.100031-92.jar:1.9.1-SNAPSHOT]
              at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:83) ~[openstack-nova-1.9.1-20150629.100031-92.jar:1.9.1-SNAPSHOT]
              at org.jclouds.openstack.nova.v2_0.compute.functions.AllocateAndAddFloatingIpToNode.apply(AllocateAndAddFloatingIpToNode.java:55) ~[openstack-nova-1.9.1-20150629.100031-92.jar:1.9.1-SNAPSHOT]
              at com.google.common.util.concurrent.Futures$1.apply(Futures.java:713) ~[guava-16.0.1.jar:na]
              at com.google.common.util.concurrent.Futures$ChainingListenableFuture.run(Futures.java:861) ~[guava-16.0.1.jar:na]
              ... 3 common frames omitted
      Caused by: java.net.SocketException: Unexpected end of file from server
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_71]
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_71]
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_71]
              at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_71]
              at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675) ~[na:1.7.0_71]
              at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673) ~[na:1.7.0_71]
              at java.security.AccessController.doPrivileged(Native Method) ~[na:1.7.0_71]
              at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671) ~[na:1.7.0_71]
              at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244) ~[na:1.7.0_71]
              at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468) ~[na:1.7.0_71]
              at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338) ~[na:1.7.0_71]
              at org.jclouds.http.internal.JavaUrlHttpCommandExecutorService.invoke(JavaUrlHttpCommandExecutorService.java:103) ~[jclouds-core-1.9.1-20150629.094306-95.jar:1.9.1-SNAPSHOT]
              at org.jclouds.http.internal.JavaUrlHttpCommandExecutorService.invoke(JavaUrlHttpCommandExecutorService.java:64) ~[jclouds-core-1.9.1-20150629.094306-95.jar:1.9.1-SNAPSHOT]
              at org.jclouds.http.internal.BaseHttpCommandExecutorService.invoke(BaseHttpCommandExecutorService.java:96) ~[jclouds-core-1.9.1-20150629.094306-95.jar:1.9.1-SNAPSHOT]
              ... 14 common frames omitted
      Caused by: java.net.SocketException: Unexpected end of file from server
              at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:772) ~[na:1.7.0_71]
              at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633) ~[na:1.7.0_71]
              at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323) ~[na:1.7.0_71]
              at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) ~[na:1.7.0_71]
              at org.jclouds.http.internal.JavaUrlHttpCommandExecutorService.invoke(JavaUrlHttpCommandExecutorService.java:95) ~[jclouds-core-1.9.1-20150629.094306-95.jar:1.9.1-SNAPSHOT]
              ... 16 common frames omitted
      

      Attachments

        Activity

          People

            andreaturli Andrea Turli
            andreaturli Andrea Turli
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: