UnhashableKeyWarning in openstack_dashboard.api.nova novaclient

Bug #1790929 reported by Akihiro Motoki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Akihiro Motoki

Bug Description

When horizon runs with tox -e runserver with python3, the following message is output as an error message. This potentially pollutes the error log file with unnecessary messages.

UnhashableKeyWarning: The key of openstack_dashboard.api.nova novaclient is not hashable and cannot be memoized: ((('demo', 'gAAAAABbkCFdywZ3dx4P8CKRB1SUPGwgvp116OwfRn4bbBY-TTNiDXU1GqJBjZHt2hSwd4DKTkyHi9rPMM5WE-oPhTVeF6CRUjs9Ok59HqtRwIxi5eZZnNwI-2U3WJIpxq3wsvx5KAWtZcxSubfHOt6gR4mh_uQjUygfDO00K452r02jfpSjjoNKEf2gt_OU7sRxl0O6LN6d', '638148614c374eb99941b5103d7e23d4', 'default', 'http://172.27.201.207/compute/v2.1', 'http://172.27.201.207/identity'),), (('version', <weakref at 0x7efe1cb9d8b8; to 'APIVersion' at 0x7efe1cb7d160>),))

Akihiro Motoki (amotoki)
Changed in horizon:
milestone: none → stein-1
assignee: nobody → Akihiro Motoki (amotoki)
importance: Undecided → Medium
tags: added: rocky-backport-potential
Changed in horizon:
status: New → In Progress
Revision history for this message
Akihiro Motoki (amotoki) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Ivan Kolodyazhny (<email address hidden>) on branch: master
Review: https://review.openstack.org/600203
Reason: This review is > 4 months without comment, and failed Jenkins the last time it was checked. We are abandoning this for now. Feel free to reactivate the review by pressing the restore button and leaving a 'recheck' comment to get fresh test results.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

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

commit d68447452c9499fc7d8f214fca2277ac3f24be0b
Author: Akihiro Motoki <email address hidden>
Date: Wed Sep 5 20:21:55 2018 +0000

    Avoid UnhashableKeyWarning in api.nova.novaclient

    In python3, novaclient APIVersion instance is not hashable.
    If APIVersion insstance is passed to novaclient(),
    UnhashableKeyWarning will be emitted.
    An error message on UnhashableKeyWarning is emitted repeatedly
    and this can pollute error log with unuseful messages.

    To convert all unhashable arguments into hashable variables,
    a new decorator memoized_with_argconv is introduced.
    This decorator takes a converter function.

    Change-Id: I773355b9332b3b195576b51cc81eda80aa4402ed
    Closes-Bug: #1790929

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

This issue was fixed in the openstack/horizon 15.0.0.0b1 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.