Useless deprecation message for driver import

Bug #1513102 reported by Brant Knudson on 2015-11-04
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Medium
Brant Knudson

Bug Description

When a driver is specified using the full name (as in, the old config file is used), for example if I have:

 driver = keystone.contrib.federation.backends.sql.Federation

I get a deprecation warning:

31304 WARNING oslo_log.versionutils [-] Deprecated: direct import of driver is deprecated as of Liberty in favor of entrypoints and may be removed in N.

The deprecation warning is pretty useless. It should at least include the string that was used so that I can figure out what to change.

Brant Knudson (blk-u) on 2015-11-04
Changed in keystone:
assignee: nobody → Brant Knudson (blk-u)
Changed in keystone:
status: New → In Progress
Changed in keystone:
importance: Undecided → Medium
milestone: none → mitaka-1
Brant Knudson (blk-u) on 2015-11-24
tags: added: liberty-backport-potential
Changed in keystone:
milestone: mitaka-1 → mitaka-2

Reviewed: https://review.openstack.org/241403
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=c73907485a3d7c5319378d2e3a5e11593f66a930
Submitter: Jenkins
Branch: master

commit c73907485a3d7c5319378d2e3a5e11593f66a930
Author: Brant Knudson <email address hidden>
Date: Tue Nov 3 17:03:20 2015 -0600

    More useful message when using direct driver import

    In the Liberty release, we switched to using entrypoints for
    specifying the driver or auth plugin. The deprecation message
    didn't mention the driver name that was specified, nor did it
    mention where to look for the expected names, so it was not
    user friendly.

    Closes-Bug: 1513102
    Change-Id: I02e265684b26686523da9d648b37675feb052978

Changed in keystone:
status: In Progress → Fix Released

Reviewed: https://review.openstack.org/254799
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=5f6e5853e37362ad45ca2e31d527a9981aa87758
Submitter: Jenkins
Branch: stable/liberty

commit 5f6e5853e37362ad45ca2e31d527a9981aa87758
Author: Brant Knudson <email address hidden>
Date: Tue Nov 3 17:03:20 2015 -0600

    More useful message when using direct driver import

    In the Liberty release, we switched to using entrypoints for
    specifying the driver or auth plugin. The deprecation message
    didn't mention the driver name that was specified, nor did it
    mention where to look for the expected names, so it was not
    user friendly.

    Closes-Bug: 1513102
    Change-Id: I02e265684b26686523da9d648b37675feb052978
    (cherry picked from commit c73907485a3d7c5319378d2e3a5e11593f66a930)

tags: added: in-stable-liberty

This issue was fixed in the openstack/keystone 9.0.0.0b2 development milestone.

This issue was fixed in the openstack/keystone 8.1.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers