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 <amot...@gmail.com> 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 -- 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/1790929 Title: UnhashableKeyWarning in openstack_dashboard.api.nova novaclient Status in OpenStack Dashboard (Horizon): Fix Released 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>),)) To manage notifications about this bug go to: https://bugs.launchpad.net/horizon/+bug/1790929/+subscriptions -- Mailing list: https://launchpad.net/~yahoo-eng-team Post to : yahoo-eng-team@lists.launchpad.net Unsubscribe : https://launchpad.net/~yahoo-eng-team More help : https://help.launchpad.net/ListHelp