Deprecation warning when service_providers empty

Bug #1633293 reported by Jamie Lennox
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Jamie Lennox

Bug Description

When fetching the service_providers the code looks like [1]. So if the cfg.CONF.service_providers.service_provider field is empty we will always get a deprecation warning even if there is nothing actually configured in the neutron_*.conf files.
In the event that you have CONF.fatal_deprecations on this halts the program.

I'm still going through to see what this value should be, but even if it's an empty list it shouldn't fail with an incorrect deprecation warning.

[1] https://github.com/openstack/neutron/blob/1628fb72f8fbac15110713530728a03e8e4bd0f5/neutron/services/provider_configuration.py#L112-L122

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/386307

Changed in neutron:
assignee: nobody → Jamie Lennox (jamielennox)
status: New → In Progress
Revision history for this message
Jamie Lennox (jamielennox) wrote :

If i'm right on this it should be a newton backport.

Henry Gessau (gessau)
tags: added: newton-backport-potential
Akihiro Motoki (amotoki)
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/386307
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=46ba1aa762737daee26e35a45eaa87e3a427521a
Submitter: Jenkins
Branch: master

commit 46ba1aa762737daee26e35a45eaa87e3a427521a
Author: Jamie Lennox <email address hidden>
Date: Fri Oct 14 13:14:05 2016 +1100

    Only emit deprecation warning when deprecated value read

    If providers is not found in the CONF.service_providers.service_provider
    it looks them up from implicit conf files. If nothing is defined there
    it still emits a deprecation warning.

    Maybe a warning should be emitted if this value is empty, however the
    deprecation warning that is provided is incorrect and misleading.

    Change-Id: I3166a445b69d854b294843814a081e74c1aadb3b
    Closes-Bug: #1633293

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/387756

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

Reviewed: https://review.openstack.org/387756
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=9b41d38dce3408624ec614c7cf0f54f8f54aa2ba
Submitter: Jenkins
Branch: stable/newton

commit 9b41d38dce3408624ec614c7cf0f54f8f54aa2ba
Author: Jamie Lennox <email address hidden>
Date: Fri Oct 14 13:14:05 2016 +1100

    Only emit deprecation warning when deprecated value read

    If providers is not found in the CONF.service_providers.service_provider
    it looks them up from implicit conf files. If nothing is defined there
    it still emits a deprecation warning.

    Maybe a warning should be emitted if this value is empty, however the
    deprecation warning that is provided is incorrect and misleading.

    Change-Id: I3166a445b69d854b294843814a081e74c1aadb3b
    Closes-Bug: #1633293
    (cherry picked from commit 46ba1aa762737daee26e35a45eaa87e3a427521a)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 9.1.0

This issue was fixed in the openstack/neutron 9.1.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 10.0.0.0b1

This issue was fixed in the openstack/neutron 10.0.0.0b1 development milestone.

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.