_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
This commit is contained in:
parent
93d09ebc06
commit
b7f52a8248
|
@ -297,7 +297,12 @@ class Manager(common_base.HookableMixin):
|
|||
cache = getattr(self, cache_attr, None)
|
||||
if cache:
|
||||
cache.close()
|
||||
delattr(self, cache_attr)
|
||||
try:
|
||||
delattr(self, cache_attr)
|
||||
except AttributeError:
|
||||
# NOTE(kiall): If this attr is deleted by another
|
||||
# operation, don't fail any way.
|
||||
pass
|
||||
|
||||
def write_to_completion_cache(self, cache_type, val):
|
||||
cache = getattr(self, "_%s_cache" % cache_type, None)
|
||||
|
|
Loading…
Reference in New Issue