Trying to resolve 2 deprecation warnings

Gorka Eguileor geguileo at redhat.com
Fri Jan 15 10:01:23 UTC 2021


On 14/01, shubjero wrote:
> Hi all,
>
> I am trying to resolve two deprecation warnings which I've not been
> able to locate exactly what package or file is causing them.
>
> We are running OpenStack Train on Ubuntu 18.04
>
> The log entries are found in /etc/apache2/cinder_error.log :
> 2021-01-06 15:54:05.332604
> /usr/lib/python3/dist-packages/oslo_context/context.py:108:
> 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.

Hi,

Maybe it is caused by one of these 2 options:

  https://github.com/openstack/cinder/blob/60a73610910257abf5bdd5eae7606f5bd012ae5d/cinder/policies/base.py#L25-L32


> 2021-01-06 15:54:20.147590
> /usr/lib/python3/dist-packages/webob/acceptparse.py:1051:
> DeprecationWarning: The behavior of AcceptValidHeader.best_match is
> currently being maintained for backward compatibility, but it will be
> deprecated in the future, as it does not conform to the RFC.
>

This could be one of these:

  https://github.com/openstack/cinder/blob/60a73610910257abf5bdd5eae7606f5bd012ae5d/cinder/api/openstack/wsgi.py#L253

  https://github.com/openstack/cinder/blob/60a73610910257abf5bdd5eae7606f5bd012ae5d/cinder/api/openstack/wsgi.py#L840

Cheers,
Gorka.

> Any help on what needs to be changed/removed/updated/upgraded would be
> appreciated.
>
> Thanks!
>
> Jared
> Ontario Institute for Cancer Research
>




More information about the openstack-discuss mailing list