]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Remove "Arguments dropped when creating context" logging
authorAssaf Muller <amuller@redhat.com>
Wed, 1 Apr 2015 13:38:21 +0000 (09:38 -0400)
committerAssaf Muller <amuller@redhat.com>
Wed, 1 Apr 2015 13:38:21 +0000 (09:38 -0400)
commita8c7db5b9d9bba44660de3c7a64295f9f318b63a
tree78b461a474dd3b840f4cceb22e616e6253049360
parent0549c31b03457797f9e8271e3671e0cd0818a8e5
Remove "Arguments dropped when creating context" logging

This log was previously reduced from warning to debug.
Cinder removed it entirely in:
https://bugs.launchpad.net/cinder/+bug/1329156

The root cause is this:
Agent heartbeats use an admin context. The context is serialized
with its to_dict method, which exposes 'tenant' and 'project_name'
(These are properties of the class that are calculated from other
attributes). In the controller, this dict is used to initialize a
ContextBase, which does not accept tenant and project_name as arguments,
de facto sending those values as key word arguments.

We can either handle 'tenant' and 'project_name' specially, fix
it any other way, or drop the logging entirely. Is this logging
ever useful?

Change-Id: Ifd51b62bae7b96de44f04836015d2ed939bcb650
Closes-Bug: #1255441
neutron/context.py
neutron/tests/unit/test_neutron_context.py