← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1700578] [NEW] Error during tenant_quota_usages function calls @memoized cache

 

Public bug reported:

tenant_quota_usages method here [0] accept list as an input parameter.
Due to list is not immutable object, it couldn't be cached buy @memoized decorator but still method is covered by it.
Every call of this function triggers UnhashableKeyWarning here [1].

[0] -
https://github.com/openstack/horizon/blob/359467b4013bb4f89a6a1309e6eda89459288986/openstack_dashboard/usage/quotas.py#L442

[1] -
https://github.com/openstack/horizon/blob/4570b4cd7813c5b5d559a87c715f4ee6e6f1f63d/horizon/utils/memoized.py#L88

** Affects: horizon
     Importance: Undecided
     Assignee: Michael Dovgal (mdovgal)
         Status: In Progress

** Changed in: horizon
     Assignee: (unassigned) => Michael Dovgal (mdovgal)

** Summary changed:

- Error during function calls memoized cache
+ Error during tenant_quota_usages function calls @memoized cache

-- 
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/1700578

Title:
  Error during tenant_quota_usages function calls @memoized cache

Status in OpenStack Dashboard (Horizon):
  In Progress

Bug description:
  tenant_quota_usages method here [0] accept list as an input parameter.
  Due to list is not immutable object, it couldn't be cached buy @memoized decorator but still method is covered by it.
  Every call of this function triggers UnhashableKeyWarning here [1].

  [0] -
  https://github.com/openstack/horizon/blob/359467b4013bb4f89a6a1309e6eda89459288986/openstack_dashboard/usage/quotas.py#L442

  [1] -
  https://github.com/openstack/horizon/blob/4570b4cd7813c5b5d559a87c715f4ee6e6f1f63d/horizon/utils/memoized.py#L88

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1700578/+subscriptions


Follow ups