Useless deprecation message for driver import

Bug #1513102 reported by Brant Knudson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
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)
Changed in keystone:
assignee: nobody → Brant Knudson (blk-u)
Changed in keystone:
status: New → In Progress
Revision history for this message
Brant Knudson (blk-u) wrote :
Changed in keystone:
importance: Undecided → Medium
milestone: none → mitaka-1
Brant Knudson (blk-u)
tags: added: liberty-backport-potential
Changed in keystone:
milestone: mitaka-1 → mitaka-2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/254799

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (stable/liberty)

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
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/keystone 9.0.0.0b2

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

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/keystone 8.1.0

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.