wsgi and eventlet logs flooding on large deployments

Bug #1590042 reported by Kam Nasim
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Opinion
Wishlist
Kam Nasim

Bug Description

Based on observation in one of our larger lab deployments, keystone/keystone-all.log is seeing on average multiple logs per seconds. These are logged at INFO verbosity which is the default logging level in keystone.conf

Most frequently seen logs:
<DATE> <TIME> <NUMBER> INFO keystone.common.wsgi [-] GET /auth/tokens?

<DATE> <TIME> <NUMBER> INFO eventlet.wsgi.server [-] <NUMBER> - - [<DATE> <TIME>] "GET /v <NUMBER> /auth/tokens HTTP/ <NUMBER> " <NUMBER> . <NUMBER>

Other high runner logs:
<DATE> <TIME> <NUMBER> INFO keystone.common.wsgi [-] POST /tokens?POST /tokens

<DATE> <TIME> <NUMBER> INFO eventlet.wsgi.server [-] <NUMBER> - - [<DATE> <TIME>] "POST /v <NUMBER> /tokens HTTP/ <NUMBER> " <NUMBER> . <NUMBER>

<DATE> <TIME> <NUMBER> INFO keystone.common.wsgi [-] GET /?
<DATE> <TIME> <NUMBER> INFO eventlet.wsgi.server [-] <NUMBER> - - [<DATE> <TIME>] "GET / HTTP/ <NUMBER> " <NUMBER> <NUMBER>

These log entries cause frequent churn in keystone-all.log.

We have a small fix in place to move GET/POST logs from keystone.common.wsgi and eventlet.wsgi.server to debug logs and to enable these logs when the verbosity is set to debug in keystone.conf

Kam Nasim (knasim-wrs)
Changed in keystone:
assignee: nobody → Kam Nasim (knasim-wrs)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

Changed in keystone:
status: New → In Progress
David Stanek (dstanek)
Changed in keystone:
importance: Undecided → Wishlist
Revision history for this message
Guang Yee (guang-yee) wrote :
Revision history for this message
Steve Martinelli (stevemar) wrote :

guang has a point, but it may be worth to change the default value to debug so deployers don't have to

Revision history for this message
Steve Martinelli (stevemar) wrote :

Is this specific to eventlet or keystone in general? eventlet is removed in the newton release.

Revision history for this message
Kam Nasim (knasim-wrs) wrote :

the original fix that we had in our deployment was for both eventlet and wsgi. However since eventlets were removed in HEAD around March year, the Upstream port is for wsgi logging only.

Given that the review is split 50/50 with half the reviewers in favour of keeping the log verbosity as is, I will withdraw the inspection

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by Kam Nasim (<email address hidden>) on branch: master
Review: https://review.openstack.org/329028
Reason: withdrawing this commit as per review feedback. The debug verbosity will be kept at present level

Changed in keystone:
status: In Progress → Opinion
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.