libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Johnson (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (LIBCLOUD-799) GCE: list_nodes occasionally failing with ResourceNotFoundError when instances being deleted
Date Tue, 26 Apr 2016 13:59:12 GMT

     [ https://issues.apache.org/jira/browse/LIBCLOUD-799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eric Johnson closed LIBCLOUD-799.
---------------------------------
    Resolution: Won't Fix

> GCE: list_nodes occasionally failing with ResourceNotFoundError when instances being
deleted
> --------------------------------------------------------------------------------------------
>
>                 Key: LIBCLOUD-799
>                 URL: https://issues.apache.org/jira/browse/LIBCLOUD-799
>             Project: Libcloud
>          Issue Type: Bug
>          Components: Core
>            Reporter: Colin Pitrat
>
> I'm using libcloud version 0.18.0 (version not available in the dropdown list above)
> When listing instances on GCE while I (or another user) concurrently delete instances
on the same project, I occasionally get the following exception:
>  File "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/gce.py", line 1601,
in list_nodes
>     v.get('instances', [])]
>   File "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/gce.py", line 5283,
in _to_node
>     extra['boot_disk'] = self.ex_get_volume(bd['name'], bd['zone'])
>   File "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/gce.py", line 4165,
in ex_get_volume
>     response = self.connection.request(request, method='GET').object
>   File "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/gce.py", line 120,
in request
>     response = super(GCEConnection, self).request(*args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/libcloud/common/google.py", line 692, in request
>     *args, **kwargs)
>   File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", line 799, in request
>     response = responseCls(**kwargs)
>   File "/usr/lib/python2.7/site-packages/libcloud/common/base.py", line 145, in __init__
>     self.object = self.parse_body()
>   File "/usr/lib/python2.7/site-packages/libcloud/common/google.py", line 263, in parse_body
>     raise ResourceNotFoundError(message, self.status, code)
> libcloud.common.google.ResourceNotFoundError: {u'domain': u'global', u'message': u"The
resource 'projects/xxxx/zones/xxxx/disks/xxxx-5802f' was not found", u'reason': u'notFound'}
> I think the exception should be catched in "/usr/lib/python2.7/site-packages/libcloud/compute/drivers/gce.py",
line 5283 when the volume corresponding to the instance being deleted is not found.
> Regards,
> Colin



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message