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] [Created] (LIBCLOUD-1045) List inventory fails if GCP has an instance in SUSPENDED state
Date Thu, 06 Jun 2019 17:32:00 GMT
rafa alistair created LIBCLOUD-1045:
---------------------------------------

             Summary: 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


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