Unable to use @memoized cache when calling nova get_microversion function

Bug #1738537 reported by wei.ying
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Akihiro Motoki

Bug Description

Env: devstack master branch

Description:

When Clicking angular create instances button and view the console, the following info will appear:

UnhashableKeyWarning: The key ((<weakref at 0x7febb81180a8; to 'WSGIRequest' at 0x7feba969f3d0>, [u'instance_description']), ()) is not hashable and cannot be memoized.

wei.ying (wei.yy)
Changed in horizon:
assignee: nobody → wei.ying (wei.yy)
Revision history for this message
Akihiro Motoki (amotoki) wrote :

@wei.yy I've identified the root cause and the fix is simple enough. can I send a patch?

Revision history for this message
wei.ying (wei.yy) wrote :

Hi Akihiro.
Of course. I haven't started this yet :).

Changed in horizon:
assignee: wei.ying (wei.yy) → nobody
Akihiro Motoki (amotoki)
Changed in horizon:
assignee: nobody → Akihiro Motoki (amotoki)
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/530482
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=8373701bdf6a69752af60f62f52f538533962fe0
Submitter: Zuul
Branch: master

commit 8373701bdf6a69752af60f62f52f538533962fe0
Author: Akihiro Motoki <email address hidden>
Date: Sat Dec 30 01:58:23 2017 +0900

    Avoid Unhashable warning in api.rest.nova

    A list object is not hashable. We need to pass a tuple object
    which is hashable.

    Change-Id: Iaccd527da65218e46ff8cad8963fd336d0138c25
    Closes-Bug: #1738537

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

This issue was fixed in the openstack/horizon 13.0.0.0b3 development milestone.

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.