jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eli Polonsky (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-163) SoftLayer VirtualGuest is not converted to NodeMetaData
Date Thu, 08 Aug 2013 07:24:48 GMT

    [ https://issues.apache.org/jira/browse/JCLOUDS-163?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13733224#comment-13733224
] 

Eli Polonsky commented on JCLOUDS-163:
--------------------------------------

Hi Igansi.

thanks for the response.

so i have sent the Individual CLA by email and i want to start working on the fix.
i have a fork of the jclouds repo in my account, but i am wondering which branch should step
out from? master? 1.5.x?

thanks
                
> SoftLayer VirtualGuest is not converted to NodeMetaData
> -------------------------------------------------------
>
>                 Key: JCLOUDS-163
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-163
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-compute
>    Affects Versions: 1.7.0, 1.5.10, 1.6.0, 1.6.1, 1.5.11, 1.6.2
>            Reporter: Eli Polonsky
>              Labels: SoftLayer
>             Fix For: 1.5.11
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message