This seems to be a non-documented status. I've opened new Issue:
https://issues.apache.org/jira/browse/LIBCLOUD-48

I'll cross reference this with the IBM Dev Cloud folk...


On Mon, Aug 30, 2010 at 3:19 AM, Davanum Srinivas <[email protected]> wrote:

> Sengor,
>
> the REST API Reference PDF [ 20100331 / provisional / v2.1 ] has just
> this list. which is already in the NODE_STATE_MAP
>
> Appendix B: Instance Status
> Value Name
> 0 NEW
> 1 PROVISIONING
> 2 FAILED
> 3 REMOVED
> 4 REJECTED
> 5 ACTIVE
> 6 UNKNOWN
> 7 DEPROVISIONING
> 8 RESTARTING
> 9 STARTING
> 10 STOPPING
> 11 STOPPED
>
> Can you please share the full xml response? in the defect when you open it?
>
> thanks,
> dims
>
>
> On Sun, Aug 29, 2010 at 12:48 PM, Davanum Srinivas <[email protected]>
> wrote:
> > 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.
> >>
> >
> >
>
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>



-- 
sengork

Reply via email to