Deprecation Warnings for keystoneclient

Bug #1977697 reported by Hiromu Asahina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Low
Hiromu Asahina

Bug Description

The following warnings are emitted many times during unittest.

/opt/stack/tacker/.tox/py39/lib/python3.9/site-packages/keystoneclient/session.py:139: DeprecationWarning: keystoneclient.session.Session is deprecated as of the 2.1.0 release in favor of keystoneauth1.session.Session. It will be removed in future releases.

This happens because tacker.vnfm.keystone.py uses keystoneclient.session [1] in the `get_session` method. According to the above warning message, this method should be changed to use keystoneauth1.session.Session.

[1] https://github.com/openstack/python-keystoneclient/blob/master/keystoneclient/session.py#L139-L143

Changed in tacker:
assignee: nobody → Hiromu Asahina (h-asahina)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

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

Changed in tacker:
status: New → In Progress
Yasufumi Ogawa (yasufum)
Changed in tacker:
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tacker (master)

Reviewed: https://review.opendev.org/c/openstack/tacker/+/846966
Committed: https://opendev.org/openstack/tacker/commit/f41cee0c2cbf6f28f26fafc5bd8814c5e50a4e2d
Submitter: "Zuul (22348)"
Branch: master

commit f41cee0c2cbf6f28f26fafc5bd8814c5e50a4e2d
Author: Hiromu Asahina <email address hidden>
Date: Sun Jun 5 10:45:49 2022 +0000

    Remove deprecated keystoneclient

    The keystoneclient emits a warning for the use of
    keystoneclient.session.Session which is deprecated as of the 2.1.0
    release in favor of keystoneauth1.session.Session. This patch
    migrates keystoneclient to keystoneauth1 to fix this problem.

    The following deprecation warnings are gone with the patch:

    - keystoneclient/session.py:139: DeprecationWarning:
      keystoneclient.session.Session is deprecated as of the
    2.1.0 release in favor of keystoneauth1.session.Session. It will be
      removed in future releases.

    Change-Id: I5c8f942ebe747f01ee0fcaab007f783bbeec0b97
    Closes-Bug: #1977697

Changed in tacker:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tacker 8.0.0.0rc1

This issue was fixed in the openstack/tacker 8.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.