context warnings spam scheduler and share logs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Low
|
Tom Barron |
Bug Description
Manila share and scheduler logs are littered with warnings about dropped kwargs when creating request context. Here is an example:
2016-04-18 17:08:16.103 WARNING manila.context [-] Arguments dropped when creating context: {u'read_only': False, u'domain': None, u'show_deleted': False, u'user_identity': u'6133ebc001384
These are currently "just noise". Their meaning is not evident without code study and cause confusion and alarm to cloud operators resulting in unnecessary support calls.
In manila share log these messages occur on every CRUD operation.
In manila scheduler the situation is even worse as they occur on every periodic capabilities/
Changed in manila: | |
assignee: | nobody → Tom Barron (tpb) |
description: | updated |
Changed in manila: | |
importance: | Undecided → Low |
milestone: | none → newton-1 |
cinder "fixed" the issue by removing the warning in question altogether [1]; neutron, by reducing the log level from warning to debug. I prefer the approach taken by nova [3] - namely leaving the log at warning level but popping off all expected kwargs (and converting these where possible to equivalents that are then passed into the oslo RequestContext constructor) so that in the rare event that there are really unexpected kwargs they will still be logged at an appropriate level.
[1] https:/ /review. openstack. org/#/c/ 105106/
[2] https:/ /review. openstack. org/#/c/ 134762/
[3] https:/ /review. openstack. org/#/c/ 160535/