In python3.5 environment, synchronization router exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
networking-ovn |
Fix Released
|
Undecided
|
Guoshuai Li |
Bug Description
In python3.5, deepcopy dict_keys objects exception when get_floatingips with filters is {'router_id': dict_keys([])}
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "/opt/stack/
return f(self, *args, **kwargs)
File "/opt/stack/
File "/opt/stack/
File "/opt/stack/
File "/opt/stack/
ctx, {'router_id': db_routers.keys()})
File "/opt/stack/
return method(*args, **kwargs)
File "/opt/stack/
setattr(e, '_RETRY_EXCEEDED', True)
File "/opt/stack/
File "/opt/stack/
File "/opt/stack/
raise value
File "/opt/stack/
return f(*args, **kwargs)
File "/opt/stack/
ectxt.value = e.inner_exc
File "/opt/stack/
File "/opt/stack/
File "/opt/stack/
raise value
File "/opt/stack/
return f(*args, **kwargs)
File "/opt/stack/
File "/opt/stack/
File "/opt/stack/
File "/opt/stack/
raise value
File "/opt/stack/
dup_args = [_copy_if_lds(a) for a in args]
File "/opt/stack/
dup_args = [_copy_if_lds(a) for a in args]
File "/opt/stack/
return copy.deepcopy(item) if isinstance(item, (list, dict, set)) else item
File "/opt/stack/
y = copier(x, memo)
File "/opt/stack/
File "/opt/stack/
rv = reductor(4)
TypeError: can't pickle dict_keys objects
Changed in networking-ovn: | |
assignee: | nobody → Guoshuai Li (liguoshuai1990) |
Changed in networking-ovn: | |
status: | New → In Progress |
Reviewed: https:/ /review. openstack. org/435861 /git.openstack. org/cgit/ openstack/ networking- ovn/commit/ ?id=45076c6b15b a8f34c3bc3da945 89ba21b355ffd1
Committed: https:/
Submitter: Jenkins
Branch: master
commit 45076c6b15ba8f3 4c3bc3da94589ba 21b355ffd1
Author: Guoshuai Li <email address hidden>
Date: Mon Feb 20 14:30:45 2017 +0800
fix deepcopy dict_keys exception in python3.5
change dict_keys object to list
Closes-Bug: #1666113
Change-Id: I34a51bfd571217 3196f8d5c59bbae 7bd8abb3bd0