You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Tomaz Muraus (JIRA)" <ji...@apache.org> on 2019/06/06 18:42:00 UTC
[jira] [Comment Edited] (LIBCLOUD-1045) List inventory fails if GCP
has an instance in SUSPENDED state
[ https://issues.apache.org/jira/browse/LIBCLOUD-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16857974#comment-16857974 ]
Tomaz Muraus edited comment on LIBCLOUD-1045 at 6/6/19 6:41 PM:
----------------------------------------------------------------
Thanks for reporting this.
Code change in [https://github.com/apache/libcloud/pull/1296] should fix it.
was (Author: kami):
This for reporting this.
Code change in [https://github.com/apache/libcloud/pull/1296] should fix it.
> List inventory fails if GCP has an instance in SUSPENDED state
> --------------------------------------------------------------
>
> Key: LIBCLOUD-1045
> URL: https://issues.apache.org/jira/browse/LIBCLOUD-1045
> Project: Libcloud
> Issue Type: Bug
> Components: Compute
> Affects Versions: 2.4.0
> Environment: Production
> Reporter: rafa alistair
> Assignee: Tomaz Muraus
> Priority: Minor
>
> List inventory throws exception if Google Cloud Project has a Compute Instance in SUSPENDED state.
> To reproduce, run the following against a GCP with one suspended Compute instance.
> {quote}./gce.py --list{quote}
> Error:
> {quote}
> Traceback (most recent call last):
> File "./environments/qride/gce.py", line 521, in <module>
> GceInventory()
> File "./environments/qride/gce.py", line 161, in __init__
> self.do_api_calls_update_cache()
> File "./environments/qride/gce.py", line 401, in do_api_calls_update_cache
> data = self.group_instances(zones)
> File "./environments/qride/gce.py", line 421, in group_instances
> for node in self.list_nodes():
> File "./environments/qride/gce.py", line 411, in list_nodes
> all_nodes.extend(driver.list_nodes())
> File "/Users/gaurav.kumar/.virtualenvs/ansible-qride/lib/python3.7/site-packages/libcloud/compute/drivers/gce.py", line 2525, in list_nodes
> self._to_node(i, use_disk_cache=ex_use_disk_cache)
> File "/Users/gaurav.kumar/.virtualenvs/ansible-qride/lib/python3.7/site-packages/libcloud/compute/drivers/gce.py", line 8809, in _to_node
> state=self.NODE_STATE_MAP[node['status']],
> KeyError: 'SUSPENDED'
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)