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

Second instance in a group has its inboundPorts ignored (Google Compute Engine)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.3
    • 1.6.3, 1.7.0
    • jclouds-labs-google
    • None

    Description

      Create the first instance with set of inbound ports A - works as expected.

      Create a second instance, with a different set of inbound ports B. This instance will have set A, not set B.

      For example:

      GoogleComputeEngineTemplateOptions options = computeService.templateOptions()
      .as(GoogleComputeEngineTemplateOptions.class)
      .inboundPorts(22)
      ;
      Set<? extends NodeMetadata> nodes1 = computeService.createNodesInGroup(GROUP_NAME, 1, options);
      nodes.addAll(nodes1);

      options.inboundPorts(44);
      Set<? extends NodeMetadata> nodes2 = computeService.createNodesInGroup(GROUP_NAME, 1, options);
      nodes.addAll(nodes2);

      In this example, nodes2 instance will have port 22 open, but not port 44.

      Full test case to follow in a moment. I will investigate the cause and hope to propose a fix soon!

      Attachments

        1. JCLOUDS-367.patch
          38 kB
          Andrew Phillips
        2. JCLOUDS-367-1.6.x.patch
          38 kB
          Andrew Phillips
        3. JCLOUDS-367.tar.bz2
          3 kB
          Richard Downer (Cloudsoft)

        Issue Links

          Activity

            People

              Unassigned Unassigned
              richardcloudsoft Richard Downer (Cloudsoft)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: