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

Does Jclouds support shared VPC

    XMLWordPrintableJSON

    Details

      Description

      Hi !

      I am using Jclouds in order to create instances on multi-cloud providers. However, with Google Compute Engine I have a shared vpc on a project: vpc_project and my project is running under current_project.

      When I add to the template this network:

       

      templateBuilder.locationId("northamerica-northeast1-c");
      templateOptions.networks("projects/vpc_project/regions/northamerica-northeast1/subnetworks/net-vpc-project");
      

      I got the following error:

      2018-04-30 11:00:57,989 WARN  [jclouds.compute] [main] >> subnet(net-vpc-project) was not found in region(northamerica-northeast1). Trying to find a matching legacy network...
      

      And in wired logs:

      The resource 'projects/current_project/regions/northamerica-northeast1/subnetworks/net-vpc-project  was not found
      

      So Jclouds is able to know that I'm trying to add a subnetwork to my template, but he's trying to load it from current_project and not from vpc_project.

      I am running with JClouds 2.1.0 and my Google Service Account is able to use network from vpc_project.

      In my opinon, we should add an option like:

      template.networkProjectId("vpc_project")
      

      Or parsing the URI given to networks.

      Or maybe I am totally wrong.

      Thanks !

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tormath1 Mathieu Tortuyaux
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: