Logs filled with unnecessary policy deprecation warnings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
High
|
Colleen Murphy | ||
oslo.policy |
In Progress
|
High
|
Ben Nemec |
Bug Description
My today master version of keystone log is full with:
2019-07-15 10:47:25.316828 As of the Stein release, the domain API now understands how to handle
2019-07-15 10:47:25.316831 system-scoped tokens in addition to project-scoped tokens, making the API more
2019-07-15 10:47:25.316834 accessible to users without compromising security or manageability for
2019-07-15 10:47:25.316837 administrators. The new default policies for this API account for these changes
2019-07-15 10:47:25.316840 automatically
2019-07-15 10:47:25.316843 . Either ensure your deployment is ready for the new default or copy/paste the deprecated policy into your policy file and maintain it manually.
2019-07-15 10:47:25.316846 warnings.
2019-07-15 10:47:25.316849 \x1b[00m
2019-07-15 10:47:25.132244 2019-07-15 10:47:25.131 22582 WARNING py.warnings [req-0162c9d3-
cal/lib/
tem_scope:all) or user_id:
PI more accessible to users without compromising security or manageability for administrators. The new default policies for this API account for these changes automatically.. Either ensure your deployment is rea
dy for the new default or copy/paste the deprecated policy into your policy file and maintain it manually.
2019-07-15 10:47:25.132262 warnings.
2019-07-15 10:47:25.132266 \x1b[00m
2019-07-15 10:47:25.132979 2019-07-15 10:47:25.132 22582 WARNING
This is fresh setup from `master` without any policy configuration, therefore keystone defaults itself triggers the warning.
grep -R 'As of the Stein release' keystone-error.log |wc -l
820
Current master is for `T` , there is no point to have 820 warning (first ~ 10 minute) for using the keystone default.
Please make these warnings less noise .
tags: | added: policy |
Changed in keystone: | |
importance: | Undecided → High |
summary: |
- Logis filled with uneccesery policy derecation warning + Logs filled with unnecessary policy deprecation warnings |
Changed in oslo.policy: | |
assignee: | nobody → Colleen Murphy (krinkle) |
status: | New → In Progress |
Changed in keystone: | |
milestone: | none → train-rc1 |
These warnings happen every time the policies are reloaded which apparently happens dynamically, we should make sure to only emit these warnings when keystone starts.
The reason we emit these warnings is that while the policies are deprecated, the old rules and the new rules are OR'd together, making them more open by default, so we want people to opt into the new more secure policies by changing them in your policy config.