libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "rafa alistair (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LIBCLOUD-1045) List inventory fails if GCP has an instance in SUSPENDED state
Date Thu, 06 Jun 2019 17:45:00 GMT

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

rafa alistair updated LIBCLOUD-1045:
------------------------------------
    Priority: Minor  (was: Major)

> 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
>            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)

Mime
View raw message