You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@libcloud.apache.org by "Tomaz Muraus (JIRA)" <ji...@apache.org> on 2012/07/20 22:31:34 UTC

[dev] [jira] [Commented] (LIBCLOUD-230) xml parsing error in get node details function of open stack driver (rackspace)

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

Tomaz Muraus commented on LIBCLOUD-230:
---------------------------------------

Can you please provide more info - which version of OpenStack are you using, etc.
                
> xml parsing error in get node details function of open stack driver (rackspace)
> -------------------------------------------------------------------------------
>
>                 Key: LIBCLOUD-230
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-230
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Compute
>    Affects Versions: 0.10.1
>            Reporter: Jayyy
>            Priority: Minor
>
> Problem
> While trying retrieve a rackspace node, ex_get_node_details() function of openstack driver throws "IndexError: list index out of range"
> Investigation
> The xml response from rackspace has the root element as <server>..</server> . Confirmed the same with rackspace & openstack api documentation.
> But _to_node_from_obj() function tries to find the 'server' subelements out of the response xml and thus resulting in empty list.
> Stacktrace:
> node = driver.ex_get_node_details(node_id)
>   File "/home/jay/workspace/dev/pickled/py_modules/libcloud/compute/drivers/openstack.py", line 233, in ex_get_node_details
>     return self._to_node_from_obj(resp.object)
>   File "/home/jay/workspace/dev/pickled/py_modules/libcloud/compute/drivers/openstack.py", line 598, in _to_node_from_obj
>     self.XML_NAMESPACE)[0])
> IndexError: list index out of range

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira