Improve API logging
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Joe Gordon |
Bug Description
Nova's API logging (in nova.api.
1) It mixes in error information with what's traditionally thought of as "access" logging, making it hard to parse. It also puts a lot of english into the responses (e.g., "returned with HTTP 200").
2) Requests are double-logged, once with the request method, once with the status code.
3) Complete information isn't always logged. E.g., if any of the various returns are hit in _process_stack, the response status isn't logged.
4) Other useful information isn't captured.
I think we need to move the debug data to a separate log channel (e.g., "nova.api.
- User-Agent request header (so we can start to understand what tools are using the API)
- Request body size in bytes
- Request Content-Type
- Response body size in bytes
- Response Content-Type
- time to service request (for performance metrics)
I'm willing to do this work.
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
milestone: | none → grizzly-rc1 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | grizzly-rc1 → 2013.1 |
Actually, I've done this work, just waiting to get approved for the openstack-cla group to do the git review.