Public bug reported: Env: devstack master branch
Description: The memoized function needs to use tuples as parameters [1]. Currently [2] the security_groups attribute in the port object, whose type is list, when clicking the port details, a warning message appears: "UnhashableKeyWarning: The key ((<weakref at 0x7ff5da258520; to 'DetailView' at 0x7ff5da275790>, []), ()) is not hashable and cannot be memoized. WARNING:py.warnings:UnhashableKeyWarning: The key ((<weakref at 0x7ff5da258520; to 'DetailView' at 0x7ff5da275790>, []), ()) is not hashable and cannot be memoized." [1] https://github.com/openstack/horizon/blob/4570b4cd7813c5b5d559a87c715f4ee6e6f1f63d/horizon/utils/memoized.py#L39 [2] https://github.com/openstack/horizon/blob/609bf8fbc98c0dc437b4522d27a9ad4e3ba6fd30/openstack_dashboard/dashboards/project/networks/ports/views.py#L145 ** Affects: horizon Importance: Undecided Assignee: wei.ying (wei.yy) Status: New ** Changed in: horizon Assignee: (unassigned) => wei.ying (wei.yy) -- You received this bug notification because you are a member of Yahoo! Engineering Team, which is subscribed to OpenStack Dashboard (Horizon). https://bugs.launchpad.net/bugs/1712582 Title: Unable to use use @memoized cache when call get_security_groups Status in OpenStack Dashboard (Horizon): New Bug description: Env: devstack master branch Description: The memoized function needs to use tuples as parameters [1]. Currently [2] the security_groups attribute in the port object, whose type is list, when clicking the port details, a warning message appears: "UnhashableKeyWarning: The key ((<weakref at 0x7ff5da258520; to 'DetailView' at 0x7ff5da275790>, []), ()) is not hashable and cannot be memoized. WARNING:py.warnings:UnhashableKeyWarning: The key ((<weakref at 0x7ff5da258520; to 'DetailView' at 0x7ff5da275790>, []), ()) is not hashable and cannot be memoized." [1] https://github.com/openstack/horizon/blob/4570b4cd7813c5b5d559a87c715f4ee6e6f1f63d/horizon/utils/memoized.py#L39 [2] https://github.com/openstack/horizon/blob/609bf8fbc98c0dc437b4522d27a9ad4e3ba6fd30/openstack_dashboard/dashboards/project/networks/ports/views.py#L145 To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1712582/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : [email protected] Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp

