annoying Arguments dropped when creating context

Bug #1255441 reported by yong sheng gong
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
yong sheng gong

Bug Description

2013-11-27 16:45:11.379 5568 WARNING neutron.context [req-fa5e9429-2fc4-4b3f-ab56-cf00e517474f None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:11.593 5568 WARNING neutron.context [req-115c640c-5e42-495c-a17f-f771b49b951e None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:12.194 5568 WARNING neutron.context [req-9703f175-c339-4a18-88a9-3d3523167e2c None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:12.909 5568 WARNING neutron.context [req-2d1bd4b5-dcc1-4cfe-b29c-711a938ab74e None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:14.719 5568 WARNING neutron.context [req-edcf1bf6-39f1-493a-b72f-f7a484a1ba02 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:15.383 5568 WARNING neutron.context [req-fa5e9429-2fc4-4b3f-ab56-cf00e517474f None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:15.594 5568 WARNING neutron.context [req-115c640c-5e42-495c-a17f-f771b49b951e None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:16.194 5568 WARNING neutron.context [req-9703f175-c339-4a18-88a9-3d3523167e2c None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:16.912 5568 WARNING neutron.context [req-21f20201-2691-4c13-a77d-3e05c0ad1777 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:18.722 5568 WARNING neutron.context [req-edcf1bf6-39f1-493a-b72f-f7a484a1ba02 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:19.387 5568 WARNING neutron.context [req-fa5e9429-2fc4-4b3f-ab56-cf00e517474f None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:19.596 5568 WARNING neutron.context [req-115c640c-5e42-495c-a17f-f771b49b951e None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:20.194 5568 WARNING neutron.context [req-9703f175-c339-4a18-88a9-3d3523167e2c None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:20.914 5568 WARNING neutron.context [req-f89f6bde-b6b8-4f32-a897-30164c826bc0 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:22.719 5568 WARNING neutron.context [req-edcf1bf6-39f1-493a-b72f-f7a484a1ba02 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:23.390 5568 WARNING neutron.context [req-fa5e9429-2fc4-4b3f-ab56-cf00e517474f None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:23.595 5568 WARNING neutron.context [req-115c640c-5e42-495c-a17f-f771b49b951e None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:24.194 5568 WARNING neutron.context [req-9703f175-c339-4a18-88a9-3d3523167e2c None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:24.916 5568 WARNING neutron.context [req-2da8f49d-77d1-49bf-9b3d-081075b1c1de None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:26.723 5568 WARNING neutron.context [req-edcf1bf6-39f1-493a-b72f-f7a484a1ba02 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:27.394 5568 WARNING neutron.context [req-fa5e9429-2fc4-4b3f-ab56-cf00e517474f None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:27.598 5568 WARNING neutron.context [req-115c640c-5e42-495c-a17f-f771b49b951e None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:28.195 5568 WARNING neutron.context [req-9703f175-c339-4a18-88a9-3d3523167e2c None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:28.915 5568 WARNING neutron.context [req-9846d3db-f327-4df5-a4b9-ea83e1da0a4b None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:30.725 5568 WARNING neutron.context [req-edcf1bf6-39f1-493a-b72f-f7a484a1ba02 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:31.395 5568 WARNING neutron.context [req-fa5e9429-2fc4-4b3f-ab56-cf00e517474f None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:31.599 5568 WARNING neutron.context [req-115c640c-5e42-495c-a17f-f771b49b951e None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:32.196 5568 WARNING neutron.context [req-9703f175-c339-4a18-88a9-3d3523167e2c None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:32.919 5568 WARNING neutron.context [req-8a39fa9f-1987-4d42-bdf4-60debaeac76d None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:34.727 5568 WARNING neutron.context [req-edcf1bf6-39f1-493a-b72f-f7a484a1ba02 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:35.400 5568 WARNING neutron.context [req-fa5e9429-2fc4-4b3f-ab56-cf00e517474f None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:35.603 5568 WARNING neutron.context [req-115c640c-5e42-495c-a17f-f771b49b951e None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:36.195 5568 WARNING neutron.context [req-9703f175-c339-4a18-88a9-3d3523167e2c None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:36.919 5568 WARNING neutron.context [req-4a41b058-4d1f-4d25-9565-72dcbb62ae25 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:38.728 5568 WARNING neutron.context [req-edcf1bf6-39f1-493a-b72f-f7a484a1ba02 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:39.403 5568 WARNING neutron.context [req-fa5e9429-2fc4-4b3f-ab56-cf00e517474f None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:39.607 5568 WARNING neutron.context [req-115c640c-5e42-495c-a17f-f771b49b951e None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:40.196 5568 WARNING neutron.context [req-9703f175-c339-4a18-88a9-3d3523167e2c None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:40.922 5568 WARNING neutron.context [req-bec4ef35-30d6-45f9-a5cb-284b4d94e412 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:42.730 5568 WARNING neutron.context [req-edcf1bf6-39f1-493a-b72f-f7a484a1ba02 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:43.403 5568 WARNING neutron.context [req-fa5e9429-2fc4-4b3f-ab56-cf00e517474f None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:43.610 5568 WARNING neutron.context [req-115c640c-5e42-495c-a17f-f771b49b951e None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:44.196 5568 WARNING neutron.context [req-9703f175-c339-4a18-88a9-3d3523167e2c None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:44.922 5568 WARNING neutron.context [req-17b0cc99-1347-4599-901e-08a23e37f40d None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:46.731 5568 WARNING neutron.context [req-edcf1bf6-39f1-493a-b72f-f7a484a1ba02 None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:47.403 5568 WARNING neutron.context [req-fa5e9429-2fc4-4b3f-ab56-cf00e517474f None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:47.614 5568 WARNING neutron.context [req-115c640c-5e42-495c-a17f-f771b49b951e None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:48.196 5568 WARNING neutron.context [req-9703f175-c339-4a18-88a9-3d3523167e2c None None] Arguments dropped when creating context: {'tenant': None}
2013-11-27 16:45:48.923 5568 WARNING neutron.context [req-4d8e9838-da6b-44f9-b1cb-135acc830cda None None] Arguments dropped when creating context: {'tenant': None}

Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

that should be addressed by https://review.openstack.org/#/c/58692

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

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

Changed in neutron:
status: New → In Progress
Changed in neutron:
assignee: yong sheng gong (gongysh) → Maru Newby (maru)
Maru Newby (maru)
Changed in neutron:
assignee: Maru Newby (maru) → yong sheng gong (gongysh)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/58692
Committed: http://github.com/openstack/neutron/commit/5b61df1f539d78cf9d164a142d731e471aa18d4e
Submitter: Jenkins
Branch: master

commit 5b61df1f539d78cf9d164a142d731e471aa18d4e
Author: Maru Newby <email address hidden>
Date: Wed Nov 27 07:57:48 2013 +0000

    Stop logging unnecessary warning on context create

    The context was previously logging at the 'warn' level when unknown
    kwargs were being passed to its __init__(). Since the agents were
    passing tenant=None with each rpc request, this was generating an
    unreasonable amount of log chatter that would not be useful to an
    operator. The fix is to log at the debug level instead so that
    the operators don't see the output by default but developers can
    still choose to.

    Change-Id: I5c328f628c597eb949c1fe67b23120d2b5d1c7da
    Related-Bug: #1254530
    Partial-Bug: #1255441

Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-1 → icehouse-2
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-2 → icehouse-3
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-3 → icehouse-rc1
Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: icehouse-rc1 → 2014.1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

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

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

Reviewed: https://review.openstack.org/134762
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=a8c7db5b9d9bba44660de3c7a64295f9f318b63a
Submitter: Jenkins
Branch: master

commit a8c7db5b9d9bba44660de3c7a64295f9f318b63a
Author: Assaf Muller <email address hidden>
Date: Wed Apr 1 09:38:21 2015 -0400

    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

Changed in neutron:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in neutron:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in neutron:
milestone: kilo-rc1 → 2015.1.0
Thierry Carrez (ttx)
no longer affects: neutron/kilo
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (neutron-pecan)

Fix proposed to branch: neutron-pecan
Review: https://review.openstack.org/185072

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.