oslo.log doesn't log request_id, project_id, user_id in nova

Bug #1427209 reported by Sean Dague
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Critical
Davanum Srinivas (DIMS)
oslo.log
Invalid
Critical
Davanum Srinivas (DIMS)

Bug Description

The switch to oslo.log broke the nova logs so request_id, project_id, user_id are no longer logged. This is a critical breakage of the Nova logs, and makes them nearly useless.

Sean Dague (sdague)
Changed in oslo.log:
importance: Undecided → Critical
Revision history for this message
Sean Dague (sdague) wrote :

A pre breakage log line: http://logs.openstack.org/13/154613/2/check/check-tempest-dsvm-full/95a21fe/logs/screen-n-api.txt.gz?level=INFO#_2015-02-10_21_13_11_488

2015-01-29 00:29:07.851 INFO nova.osapi_compute.wsgi.server [req-4fc155f2-509a-4b38-8705-4aacb6fb35b0 ServerActionsTestJSON-2118545640 ServerActionsTestJSON-1395607803] 127.0.0.1 "GET /v2/d0979f628825427eb04715eff6998203/servers/fae69519-03a1-4249-bdb8-8987189b7e92 HTTP/1.1" status: 200 len: 1755 time: 0.0648232

A post breakage log line:

http://logs.openstack.org/49/160149/1/check/check-tempest-dsvm-full/fc9e3c7/logs/screen-n-api.txt.gz?level=INFO#_2015-03-01_14_03_44_659

2015-03-01 14:03:44.659 2145 INFO nova.osapi_compute.wsgi.server [-] 127.0.0.1 "GET /v2/6c9d80478ec14daab71947438b4a9e2c/servers/69ee96a2-4c8d-4b62-a8b5-9aeab22a2ee4 HTTP/1.1" status: 200 len: 1537

Changed in oslo.log:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: New → Confirmed
Changed in nova:
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
status: New → In Progress
Changed in nova:
importance: Undecided → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/160348
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=e01e0d7570d6eed4a9448276c6d15026fa44e391
Submitter: Jenkins
Branch: master

commit e01e0d7570d6eed4a9448276c6d15026fa44e391
Author: Davanum Srinivas <email address hidden>
Date: Mon Mar 2 09:00:53 2015 -0500

    Switch nova.context to actually use oslo.context

    oslo.log uses oslo.context to get the context information.
    nove.context does not use the RequestContext from oslo_context,
    so when oslo.log tries to find the current context using
    oslo_context.get_current() it fails. We should get nova's
    RequestContext to inherit from oslo.context's RequestContext
    and add test cases to makes sure this works properly.

    Closes-Bug: #1427209
    Change-Id: I7a02e646b7cebdb0eb72be2d5ad7bfe0743c8f4d

Changed in nova:
status: In Progress → Fix Committed
Changed in oslo.log:
status: Confirmed → Invalid
Thierry Carrez (ttx)
Changed in nova:
milestone: none → kilo-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: kilo-3 → 2015.1.0
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.