Cinder API Suppress Deprecation Warnings

Bug #2071919 reported by Saif Bilal
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cinder
New
Undecided
Unassigned

Bug Description

In the cinder api error logs below warning is being presented. There seems to be no way to suppress it. The problem escalates in the production env where number of workers has been raised from standard to 30. Logs keep flooding with these deprecation warnings. Following flags has been tried in the cinder-api.conf but it doesn't seems to be working.

Cinder version 9.4.0

in cinder-api.conf file
suppress_deprecation_warnings = True

2024-07-04 10:08:36.401027 warnings.warn('Policy enforcement is depending on the value of '
2024-07-04 10:08:47.244457 /var/lib/kolla/venv/lib/python3.10/site-packages/oslo_context/context.py:100: DeprecationWarning: Policy enforcement is depending on the value of is_admin. This key is deprecated. Please update your policy file to use the standard policy values.
2024-07-04 10:08:47.244505 warnings.warn('Policy enforcement is depending on the value of '
2024-07-04 10:09:01.869635 /var/lib/kolla/venv/lib/python3.10/site-packages/oslo_context/context.py:100: DeprecationWarning: Policy enforcement is depending on the value of is_admin. This key is deprecated. Please update your policy file to use the standard policy values.
2024-07-04 10:09:01.869682 warnings.warn('Policy enforcement is depending on the value of '
2024-07-04 10:09:07.367631 /var/lib/kolla/venv/lib/python3.10/site-packages/oslo_context/context.py:100: DeprecationWarning: Policy enforcement is depending on the value of is_admin. This key is deprecated. Please update your policy file to use the standard policy values.
2024-07-04 10:09:07.367680 warnings.warn('Policy enforcement is depending on the value of '
2024-07-04 10:09:07.917219 /var/lib/kolla/venv/lib/python3.10/site-packages/oslo_context/context.py:100: DeprecationWarning: Policy enforcement is depending on the value of is_admin. This key is deprecated. Please update your policy file to use the standard policy values.
2024-07-04 10:09:07.917263 warnings.warn('Policy enforcement is depending on the value of '
2024-07-04 10:09:09.503126 /var/lib/kolla/venv/lib/python3.10/site-packages/oslo_context/context.py:100: DeprecationWarning: Policy enforcement is depending on the value of is_admin. This key is deprecated. Please update your policy file to use the standard policy values.
2024-07-04 10:09:09.503175 warnings.warn('Policy enforcement is depending on the value of '
2024-07-04 10:09:11.227363 /var/lib/kolla/venv/lib/python3.10/site-packages/oslo_context/context.py:100: DeprecationWarning: Policy enforcement is depending on the value of is_admin. This key is deprecated. Please update your policy file to use the standard policy values.
2024-07-04 10:09:11.227409 warnings.warn('Policy enforcement is depending on the value of '
2024-07-04 10:09:13.835036 /var/lib/kolla/venv/lib/python3.10/site-packages/oslo_context/context.py:100: DeprecationWarning: Policy enforcement is depending on the value of is_admin. This key is deprecated. Please update your policy file to use the standard policy values.
2024-07-04 10:09:13.835095 warnings.warn('Policy enforcement is depending on the value of '
2024-07-04 10:09:36.405289 /var/lib/kolla/venv/lib/python3.10/site-packages/oslo_context/context.py:100: DeprecationWarning: Policy enforcement is depending on the value of is_admin. This key is deprecated. Please update your policy file to use the standard policy values.
2024-07-04 10:09:36.405339 warnings.warn('Policy enforcement is depending on the value of '
2024-07-04 10:09:37.070933 /var/lib/kolla/venv/lib/python3.10/site-packages/oslo_context/context.py:100: DeprecationWarning: Policy enforcement is depending on the value of is_admin. This key is deprecated. Please update your policy file to use the standard policy values.
2024-07-04 10:09:37.070984 warnings.warn('Policy enforcement is depending on the value of '

description: updated
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.