Enforcer performs deprecation logic unnecessarily
Bug #1913718 reported by
Slawek Kaplonski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Critical
|
Slawek Kaplonski | ||
oslo.policy |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Example of failure https:/
But it happens very often since 27.01.
It is probably related to some patches from secure-rbac BP: https:/
summary: |
- rally ci job is unstable - port list takes very long time + Enforcer perform deprecation logic unnecessarily |
summary: |
- Enforcer perform deprecation logic unnecessarily + Enforcer performs deprecation logic unnecessarily |
Changed in oslo.policy: | |
status: | New → In Progress |
Changed in oslo.policy: | |
status: | In Progress → Fix Committed |
tags: | added: neutron-proactive-backport-potential |
tags: | removed: neutron-proactive-backport-potential |
Changed in neutron: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
I can recreate this and I can do it by toggling `neutron.conf [oslo_policy] enforce_ new_defaults` .
When that configuration option is True, oslo.policy will short-circuits code to logically OR the deprecated policy with the new policy [0].
In my environment I have enforce_ new_defaults = False (the default) and listing 380 ports takes anywhere from 12 - 16 seconds. With enforce_ new_defaults = True, listing 380 ports takes about 5 seconds.
[0] https:/ /opendev. org/openstack/ oslo.policy/ src/branch/ master/ oslo_policy/ policy. py#L758- L767