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

Temporary override Providers#withIds until jclouds beta-10 is out

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.6.0
    • Component/s: None
    • Labels:
      None

      Description

      Provider#withIds is expecting a provider specific ID. This problem is fixed in jclouds-beta-10. This issue adds a temporary override. computerService.destroyNode works as expected.

      1. WHIRR-315.patch
        4 kB
        Andrei Savu
      2. WHIRR-315.patch
        3 kB
        Andrei Savu
      3. WHIRR-315.patch
        5 kB
        Andrei Savu

        Activity

        Andrei Savu made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Andrei Savu made changes -
        Summary Use AWSUtils to handle instance IDs Temporary override Providers#withIds until jclouds beta-10 is out
        Description I realized that I have to use AWSUtills in order to handle instances IDs correctly. It looks like inconsistent behavior in jclouds.

        From the documentation I would expect to be able to call:
        {code}
        computeService.destroyNode(metadata.getId())
        {code}
        but I have to do the following call in order to get the expected behavior:
        {code}
        computeService.destroyNode(AWSUtils.parseHandle(metadata.getId())[1]);
        {code}

        Adrian, am I missing something about how jclouds handles instance IDs?
        Provider#withIds is expecting a provider specific ID. This problem is fixed in jclouds-beta-10. This issue adds a temporary override. computerService.destroyNode works as expected.
        Andrei Savu made changes -
        Attachment WHIRR-315.patch [ 12481219 ]
        Andrei Savu made changes -
        Attachment WHIRR-315.patch [ 12480649 ]
        Andrei Savu made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Andrei Savu made changes -
        Field Original Value New Value
        Attachment WHIRR-315.patch [ 12480643 ]
        Andrei Savu created issue -

          People

          • Assignee:
            Andrei Savu
            Reporter:
            Andrei Savu
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development