incubator-libcloud mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject Re: [libcloud] Image state not recognised within drivers/ibm_sbc.py
Date Sun, 29 Aug 2010 16:48:27 GMT
Sengor.

Can you please raise an issue in JIRA? https://issues.apache.org/jira/browse/LIBCLOUD

thanks,
dims

On 08/29/2010 11:37 AM, Sengor wrote:
> Hi,
>
> Looks like the driver does not know about "Deprovisioning" instance state,
> form REST API /computecloud/enterprise/api/rest/20100331/instances XML
> response:
>
> <Status>
> 12
> </Status>
>
> This causes:
>
> Traceback (most recent call last):
>    File "C:\instance_delete.py", line 36, in<module>
> nodes = conn.list_nodes()
> File "C:\Python25\Lib\site-packages\libcloud\drivers\ibm_sbc.py", line 138,
> in list_nodes
> return self._to_nodes(self.connection.request(REST_BASE +
> '/instances').object)
> File "C:\Python25\Lib\site-packages\libcloud\drivers\ibm_sbc.py", line 156,
> in _to_nodes
> return [ self._to_node(instance) for instance in object.findall('Instance')
> ]
> File "C:\Python25\Lib\site-packages\libcloud\drivers\ibm_sbc.py", line 161,
> in _to_node
> state = self.NODE_STATE_MAP[int(instance.findtext('Status'))],
> KeyError: 12
>
> I believe NODE_STATE_MAP within drivers/ibm_sbc.py would need to be updated.
>


Mime
View raw message