incubator-libcloud mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sengor <seng...@gmail.com>
Subject [libcloud] Image state not recognised within drivers/ibm_sbc.py
Date Sun, 29 Aug 2010 15:37:46 GMT
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.

-- 
sengork

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message