[
https://issues.apache.org/jira/browse/LIBCLOUD-230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419541#comment-13419541
]
Jayyy commented on LIBCLOUD-230:
--------------------------------
I got this issue while using Rackspace node driver. I can see that the
rackspace node driver is being derived from OpenStack_1_0_NodeDriver.
> 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