← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1986418] Re: DeprecationWarning about oslo.context

 

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 <takanattie@xxxxxxxxx>
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 <takanattie@xxxxxxxxx>


** Changed in: neutron
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1986418

Title:
  DeprecationWarning about oslo.context

Status in neutron:
  Fix Released

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 |

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1986418/+subscriptions



References