We are unable to launch gce instance in specific network, Because it is failing with following error.

       

      org.jclouds.compute.RunNodesException: error running 1 node group(jenkins-slavetest) location(asia-east1-a) image(7559062312031929877) size(1000) options({loginUser=utkarsh, loginPrivateKeyPresent=true, scriptPresent=true, userMetadata={Name=jenkins-slavetest}, networks=https://www.googleapis.com/compute/v1/projects/xyz/global/networks/xyz}) Execution failures: 1) ExecutionException on jenkins-slavetest-141: java.util.concurrent.ExecutionException: org.jclouds.http.HttpResponseException: command: POST https://www.googleapis.com/compute/v1/projects/xyz/zones/asia-east1-a/instances HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [{ "error": { "errors": [ { "domain": "global", "reason": "invalid", "message": "Invalid value for field 'resource.networkInterfaces[0]': ''. Subnetwork should be specified for custom subnetmode network" } ], "code": 400, "message": "Invalid value for field 'resource.networkInterfaces[0]': ''. Subnetwork should be specified for custom subnetmode network" } } ] at shaded.com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299) at shaded.com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286) at shaded.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116) at org.jclouds.concurrent.FutureIterables$1.run(FutureIterables.java:123) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:748) Caused by: org.jclouds.http.HttpResponseException: command: POST https://www.googleapis.com/compute/v1/projects/xyz/zones/asia-east1-a/instances HTTP/1.1 failed with response: HTTP/1.1 400 Bad Request; content: [{ "error": {

       

      Please help us fixing this issue. 

          [JENKINS-44292] Jcloud GCP network error

          I think it is unlikely that there is a release of the plugin based on a jclouds snapshot.
          This said, based on discussions on the jclouds mailing list, it should be a matter of days or few weeks to have a new jclouds release, and then the plugin could be upgraded.

          Ignasi Barrera added a comment - I think it is unlikely that there is a release of the plugin based on a jclouds snapshot. This said, based on discussions on the jclouds mailing list, it should be a matter of days or few weeks to have a new jclouds release, and then the plugin could be upgraded.

          ravi jaladi added a comment -

          nacx Thanks for the updates/changes.

           

            As per the new version , does it contain the changes for supporting "custom" network feature for GCP ?

           

           

          ravi jaladi added a comment - nacx Thanks for the updates/changes.     As per the new version , does it contain the changes for supporting "custom" network feature for GCP ?    

          The subnets feature has just been merged in jclouds and is available in the last 2.1.0-SNAPSHOT.

          With that version, the "networks" field of the plugin will accept the name of a network, for legacy networks, or the name of a subnet, for the new VPC custom networks.

          Ignasi Barrera added a comment - The subnets feature has just been merged in jclouds and is available in the last 2.1.0-SNAPSHOT. With that version, the "networks" field of the plugin will accept the name of a network, for legacy networks, or the name of a subnet, for the new VPC custom networks.

          Jason Kane added a comment -

          I know upstream jclouds is holding up the cart on this; any insight into if/when we will see this?

          Jason Kane added a comment - I know upstream jclouds is holding up the cart on this; any insight into if/when we will see this?

          There is a current discussion about releasing jclouds 2.1.0. We are reviewing the last PR before releasing so you could expect the feature to be available upstream in a week or two.

          Ignasi Barrera added a comment - There is a current discussion about releasing jclouds 2.1.0. We are reviewing the last PR before releasing so you could expect the feature to be available upstream in a week or two.

          I guys, any news for a new release with this fix ?

           

          Thanks

          Sebastien Gagnon added a comment - I guys, any news for a new release with this fix ?   Thanks

          We are just validating jclouds 2.1.0 RC3. You can expect a new jclouds version this week.

          Ignasi Barrera added a comment - We are just validating jclouds 2.1.0 RC3. You can expect a new jclouds version this week.

          Ignasi Barrera added a comment - - edited

          jclouds 2.1.0 is now released!

          Ignasi Barrera added a comment - - edited jclouds 2.1.0 is now released!

          Fritz Elfert added a comment -

          Already working on upgrade to 2.1.0

          Fritz Elfert added a comment - Already working on upgrade to 2.1.0

          I'm also affacted by this problem. Is this going to be resolved?

          As I saw there was already a git-commit in the related jclouds-plugin git-repo, but the plugin is still on version 2.14 in jenkins.

           

          Dennis Bernardy added a comment - I'm also affacted by this problem. Is this going to be resolved? As I saw there was already a git-commit in the related jclouds-plugin git-repo, but the plugin is still on version 2.14 in jenkins.  

            felfert Fritz Elfert
            utkarshs21 utkarsh sharma
            Votes:
            3 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: