Whirr
  1. Whirr
  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

          Hide
          Adrian Cole added a comment -

          fix

          Show
          Adrian Cole added a comment - fix
          Hide
          Andrew Bayer added a comment -

          +1

          Show
          Andrew Bayer added a comment - +1
          Hide
          Adrian Cole added a comment -

          Committed revision 1369235.

          Show
          Adrian Cole added a comment - Committed revision 1369235.
          Hide
          Adrian Cole added a comment -

          oddly, this change isn't in the svn log

          Show
          Adrian Cole added a comment - oddly, this change isn't in the svn log
          Hide
          Adrian Cole added a comment -

          Committed revision 1371425.

          Show
          Adrian Cole added a comment - Committed revision 1371425.

            People

            • Assignee:
              Adrian Cole
              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