You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Dustin Spicuzza (JIRA)" <ji...@apache.org> on 2013/12/06 00:40:36 UTC

[jira] [Commented] (LIBCLOUD-455) Openstack driver error in list_nodes() when image is null

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

Dustin Spicuzza commented on LIBCLOUD-455:
------------------------------------------

Associated stack trace:

  File "/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/openstack.py", line 213, in list_nodes
    self.connection.request('/servers/detail').object)
  File "/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/openstack.py", line 1267, in _to_nodes
    return [self._to_node(server) for server in servers]
  File "/usr/local/lib/python2.7/dist-packages/libcloud/compute/drivers/openstack.py", line 1878, in _to_node
    imageId=api_node['image']['id'],
TypeError: string indices must be integers

> Openstack driver error in list_nodes() when image is null
> ---------------------------------------------------------
>
>                 Key: LIBCLOUD-455
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-455
>             Project: Libcloud
>          Issue Type: Bug
>    Affects Versions: 0.14.0-beta3
>            Reporter: Dustin Spicuzza
>
> Sometimes openstack nodes get into a state where they have no image associated with them -- this only occurs when the node is in an error state and isn't able to be deleted. 
> When you call list_nodes() on a tenant that contains such a node, then it crashes because it doesn't expect that the image doesn't have any data associated with it. The bug actually occurs in _to_node().
> repr of api_node['image']: 
> A normal node: {u'id': u'9e77ab77-5564-432b-a3d4-6156af99ebd0', u'links': ….  }
> The error node: u''



--
This message was sent by Atlassian JIRA
(v6.1#6144)