Apache Whirr (retired)
  1. Apache Whirr (retired)
  2. WHIRR-611

Cloud providers may only return "public" IPs

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.1, 0.8.0
    • Fix Version/s: 0.8.0
    • Component/s: core
    • Labels:
      None

      Description

      For example, Bluelock vCloud only has one IP per instance, which is returned as the public address. In these sorts of situations, where only a "public" address exists in the NodeMetadata, we should fall back to that public address rather than giving up because there's no private address.

      2012-08-01 20:15:08,029 ERROR [org.apache.whirr.ClusterController] (main) Unable to start the cluster. Terminating all nodes.
      java.lang.IndexOutOfBoundsException: index (0) must be less than size (0)
      at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:305)
      at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:284)
      at com.google.common.collect.Iterables.get(Iterables.java:734)
      at org.apache.whirr.actions.BootstrapClusterAction$1.apply(BootstrapClusterAction.java:142)

      1. WHIRR-611.patch
        0.8 kB
        Adrian Cole

        Issue Links

          Activity

          Andrew Bayer created issue -
          Adrian Cole (Inactive) made changes -
          Field Original Value New Value
          Link This issue is a clone of WHIRR-602 [ WHIRR-602 ]
          Adrian Cole (Inactive) made changes -
          Original Estimate 1h [ 3600 ]
          Remaining Estimate 1h [ 3600 ]
          Assignee Andrew Bayer [ abayer ] Adrian Cole [ adrian@jclouds.org ]
          Description For example, CloudStack with Basic Networking only has one IP per instance, which is returned as the private address. In these sorts of situations, where only a "private" address exists in the NodeMetadata, we should fall back to that private address rather than giving up because there's no public address. For example, Bluelock vCloud only has one IP per instance, which is returned as the public address. In these sorts of situations, where only a "public" address exists in the NodeMetadata, we should fall back to that public address rather than giving up because there's no private address.

          2012-08-01 20:15:08,029 ERROR [org.apache.whirr.ClusterController] (main) Unable to start the cluster. Terminating all nodes.
          java.lang.IndexOutOfBoundsException: index (0) must be less than size (0)
          at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:305)
          at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:284)
          at com.google.common.collect.Iterables.get(Iterables.java:734)
          at org.apache.whirr.actions.BootstrapClusterAction$1.apply(BootstrapClusterAction.java:142)
          Hide
          Adrian Cole (Inactive) added a comment -

          fix

          Show
          Adrian Cole (Inactive) added a comment - fix
          Adrian Cole (Inactive) made changes -
          Attachment WHIRR-611.patch [ 12538865 ]
          Adrian Cole (Inactive) made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          Andrew Bayer added a comment -

          +1

          Show
          Andrew Bayer added a comment - +1
          Adrian Cole (Inactive) made changes -
          Status In Progress [ 3 ] Open [ 1 ]
          Hide
          Adrian Cole (Inactive) added a comment -

          Committed revision 1369235.

          Show
          Adrian Cole (Inactive) added a comment - Committed revision 1369235.
          Adrian Cole (Inactive) made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Adrian Cole (Inactive) added a comment -

          oddly, this change isn't in the svn log

          Show
          Adrian Cole (Inactive) added a comment - oddly, this change isn't in the svn log
          Adrian Cole (Inactive) made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Hide
          Adrian Cole (Inactive) added a comment -

          Committed revision 1371425.

          Show
          Adrian Cole (Inactive) added a comment - Committed revision 1371425.
          Adrian Cole (Inactive) made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          13m 34s 1 Adrian Cole (Inactive) 02/Aug/12 04:34
          In Progress In Progress Open Open
          1d 18h 51m 1 Adrian Cole (Inactive) 03/Aug/12 23:26
          Open Open Resolved Resolved
          10s 1 Adrian Cole (Inactive) 03/Aug/12 23:26
          Resolved Resolved Reopened Reopened
          5d 21h 34m 1 Adrian Cole (Inactive) 09/Aug/12 21:00
          Reopened Reopened Resolved Resolved
          9m 32s 1 Adrian Cole (Inactive) 09/Aug/12 21:10

            People

            • Assignee:
              Adrian Cole (Inactive)
              Reporter:
              Andrew Bayer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified

                  Development