DeprecationWarning about oslo.context

Bug #1986418 reported by Takashi Natsume
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Low
Takashi Natsume

Bug Description

Running "tox -e py38", the following deprecation warnings appear.

2022-08-11 16:42:57.207280 | ubuntu-focal | {6} neutron.tests.unit.test_policy.PolicyTestCase.test_enforce_invalid_scope [0.145266s] ... ok
2022-08-11 16:42:57.207326 | ubuntu-focal |
2022-08-11 16:42:57.207344 | ubuntu-focal | Captured stderr:
2022-08-11 16:42:57.207356 | ubuntu-focal | ~~~~~~~~~~~~~~~~
2022-08-11 16:42:57.207386 | ubuntu-focal | /home/zuul/src/opendev.org/openstack/neutron/.tox/py38/lib/python3.8/site-packages/neutron_lib/context.py:43: DeprecationWarning: Using the 'user' argument is deprecated in version '2.18' and will be removed in version '3.0', please use the 'user_id' argument instead
2022-08-11 16:42:57.207404 | ubuntu-focal | super().__init__(
2022-08-11 16:42:57.207434 | ubuntu-focal |

2022-08-11 16:46:07.776063 | ubuntu-focal | {0} neutron.tests.unit.test_auth.NeutronKeystoneContextTestCase.test_with_user_id [0.077028s] ... ok
2022-08-11 16:46:07.776115 | ubuntu-focal |
2022-08-11 16:46:07.776131 | ubuntu-focal | Captured stderr:
2022-08-11 16:46:07.776143 | ubuntu-focal | ~~~~~~~~~~~~~~~~
2022-08-11 16:46:07.776155 | ubuntu-focal | /home/zuul/src/opendev.org/openstack/neutron/neutron/tests/unit/test_auth.py:48: DeprecationWarning: Property 'user' has moved to 'user_id' in version '2.6' and will be removed in version '3.0'
2022-08-11 16:46:07.776168 | ubuntu-focal | self.assertEqual('testuserid', self.context.user)
2022-08-11 16:46:07.776179 | ubuntu-focal |

Changed in neutron:
assignee: nobody → Takashi Natsume (natsume-takashi)
summary: - DeprecationWarning: Using the 'user' argument is deprecated in version
- '2.18' and will be removed in version '3.0', please use the 'user_id'
- argument instead
+ DeprecationWarning about oslo.context
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/853050

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/853050
Committed: https://opendev.org/openstack/neutron/commit/a641b2508de41046666fff8f4d1e7a65aa80b1fe
Submitter: "Zuul (22348)"
Branch: master

commit a641b2508de41046666fff8f4d1e7a65aa80b1fe
Author: Takashi Natsume <email address hidden>
Date: Sat Aug 13 17:03:32 2022 +0900

    Fix deprecation warnings about oslo.context

    Fix the following deprecation warnings.

      DeprecationWarning: Using the 'user' argument is deprecated
      in version '2.18' and will be removed in version '3.0',
      please use the 'user_id' argument instead

      DeprecationWarning: Property 'user' has moved to 'user_id'
      in version '2.6' and will be removed in version '3.0'

    Change-Id: I3bda1f744f41ce82c4c3f2a4c9fc31582cce2253
    Closes-Bug: 1986418
    Signed-off-by: Takashi Natsume <email address hidden>

Changed in neutron:
status: In Progress → Fix Released
Changed in neutron:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 21.0.0.0rc1

This issue was fixed in the openstack/neutron 21.0.0.0rc1 release candidate.

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.