incubator-libcloud mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerry Chen (JIRA)" <j...@apache.org>
Subject [libcloud] [jira] Resolved: (LIBCLOUD-71) IBM SBC driver fails to work (Invalid Instance Type)
Date Tue, 04 Jan 2011 14:23:45 GMT

     [ https://issues.apache.org/jira/browse/LIBCLOUD-71?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jerry Chen resolved LIBCLOUD-71.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 0.4.1
         Assignee: Jerry Chen

Thanks for the manual fix. It is committed in r1055050.

I also added a few updates to the test/test_ibm_sbc.py tests, which was expecting 7 node sizes
and certain nodes.

To run the tests, from trunk/:

$ PYTHONPATH=. python test/test_ibm_sbc.py

There is a way to fetch the sizes directly from the API dynamically as you suggest; however
I don't currently have credentials to test with so I cannot code it out.

> IBM SBC driver fails to work (Invalid Instance Type)
> ----------------------------------------------------
>
>                 Key: LIBCLOUD-71
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-71
>             Project: Libcloud
>          Issue Type: Improvement
>          Components: Core
>         Environment: Any
>            Reporter: Sengor
>            Assignee: Jerry Chen
>             Fix For: 0.4.1
>
>         Attachments: ibm_sbc.py.patch
>
>
> Current IBM SBC driver has outdated style instance sizes hardcoded within ibm_sbc.py
and cannot provision instances due to this.
> Creating a new node yields:
> Traceback (most recent call last):
>   File "instance_provision.py", line 82, in <module>
>     node = conn.create_node(name='test-form-script', image=images[24], size=sizes[0],
location=locations[0], auth=key)
>   File "C:\Python25\lib\site-packages\libcloud\drivers\ibm_sbc.py", line 120, in create_node
>     data = data).object
>   File "C:\Python25\lib\site-packages\libcloud\base.py", line 444, in request
>     response = self.responseCls(self.connection.getresponse())
>   File "C:\Python25\lib\site-packages\libcloud\base.py", line 165, in __init__
>     raise Exception(self.parse_error())
> Exception: Error 412: Invalid Instance Type
> The driver's mechanism needs to query available instance sizes dynamically on a per instance
basis since they are no longer static (+ their naming convention syntax changed too). Image
specific sizes can be retrieved via REST API call, example: https://www-147.ibm.com/computecloud/enterprise/api/rest/20100331/offerings/image/20009961
> ...
> <SupportedInstanceTypes>
> <InstanceType>
> <ID>BRZ64.2/4096/60*500*350</ID>
> <Label>Bronze 64 bit</Label>
> <Price CountryCode="IBM">
> <CurrencyCode>USD</CurrencyCode>
> <Rate>0.5</Rate>
> <PricePerQuantity>1</PricePerQuantity>
> <UnitOfMeasure>UHR  </UnitOfMeasure>
> </Price>
> </InstanceType>
> ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message