_human_id_cache or _uuid_cache error about completion_cache

Bug #1634112 reported by dengshaolin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-cinderclient
Fix Released
Undecided
Lawrance

Bug Description

cinderclient raises _humaan_id_cache or _uuid_cache exception in method completion_cache.
Error happend when launching many api request with creating and list volumes on the client host.

  File "/usr/local/lib/python2.7/dist-packages/cinderclient/v2/volumes.py", line 282, in list
    return self._list(url, resource_type, limit=limit)
  File "/usr/local/lib/python2.7/dist-packages/cinderclient/base.py", line 94, in _list
    for res in data if res]
  File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
    self.gen.next()
  File "/usr/local/lib/python2.7/dist-packages/cinderclient/base.py", line 288, in completion_cache
    delattr(self, cache_attr)
AttributeError: _human_id_cache

  File "/usr/local/lib/python2.7/dist-packages/cinderclient/v2/volumes.py", line 282, in list
    return self._list(url, resource_type, limit=limit)
  File "/usr/local/lib/python2.7/dist-packages/cinderclient/base.py", line 94, in _list
    for res in data if res]
  File "/usr/lib/python2.7/contextlib.py", line 24, in __exit__
    self.gen.next()
  File "/usr/local/lib/python2.7/dist-packages/cinderclient/base.py", line 288, in completion_cache
    delattr(self, cache_attr)
AttributeError: _uuid_cache

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-cinderclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/387411

Revision history for this message
dengshaolin (dengshaolin) wrote :

And besides, the method write_to_completion_cache(self, cache_type, val) is not used, so for any cache_type object, there is no any UUIDs or human-friendly IDs, for bash autocompletion, it will show nothing.
In a word, completion_cache for bash autocompletion does not take any effect, beacuse there is nothing in cache.

Changed in python-cinderclient:
assignee: nobody → dengshaolin (dengshaolin)
status: New → In Progress
Revision history for this message
Lawrance (jing) wrote :

i have the same problem

Changed in python-cinderclient:
assignee: dengshaolin (dengshaolin) → Lawrance (jing)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-cinderclient (master)

Reviewed: https://review.openstack.org/387411
Committed: https://git.openstack.org/cgit/openstack/python-cinderclient/commit/?id=b7f52a8248cfa26b96d2151301f546085509dfef
Submitter: Jenkins
Branch: master

commit b7f52a8248cfa26b96d2151301f546085509dfef
Author: drngsl <email address hidden>
Date: Mon Oct 17 08:08:39 2016 -0400

    _human_id_cache or _uuid_cache error about completion_cache

    cinderclient raises _human_id_cache or _uuid_cache exception
    in method completion_cache. Error happend when launching many
    api request with creating and list volumes on the client host.

    Change-Id: I5c7de6fbb0a2d5106fca180ae6f940d6b738de93
    Closes-Bug: #1634112

Changed in python-cinderclient:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-cinderclient 1.11.0

This issue was fixed in the openstack/python-cinderclient 1.11.0 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.