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

SoftLayer VirtualGuest is not converted to NodeMetaData

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.5.10, 1.6.0, 1.6.1, 1.6.2, 1.7.0
    • 1.6.3
    • jclouds-compute

    Description

      When trying to convert a VirtualGuest object to a jclouds NodeMetaData object, the following code is executed:

      public Image getImage(VirtualGuest guest)

      { // 'bad' orders have no start cpu's and cause the order lookup to fail. if (guest.getStartCpus() < 1) return null; ProductOrder order = client.getVirtualGuestClient().getOrderTemplate(guest.getId()); if (order == null) return null; Iterable<ProductItem> items = Iterables.transform(order.getPrices(), ProductItems.item()); ProductItem os = Iterables.find(items, ProductItemPredicates.categoryCode("os")); return new ProductItemToImage().apply(os); }

      problem is the the ProductItem.prices field is empty, this is because the json returned from SoftLayer really does not contain any prices information. the image id should be extracted in a different manner.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iliapolo Eli Polonsky
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: