[neutron] uWSGI api-paste configuration has incorrect paths

Bug #2069418 reported by Rodolfo Alonso
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Fix Released
Critical
Slawek Kaplonski

Bug Description

The method to build the Neutron api-paste configuration [1] is not considering the case of using uWSGI instead of the builtin eventlet server. When using the builtin server, the "Paste#urlmap" paths should have the prefix "networking" but not when using uWSGI.

[1]https://opendev.org/openstack/devstack/src/commit/92d70a854322be9cb22f574618d7663be9a4e649/lib/neutron#L1025-L1027

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

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

Changed in devstack:
status: New → In Progress
Changed in devstack:
importance: Undecided → Critical
assignee: nobody → Slawek Kaplonski (slaweq)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (master)

Reviewed: https://review.opendev.org/c/openstack/devstack/+/922012
Committed: https://opendev.org/openstack/devstack/commit/b500d80c7641583039188baf62c215676e3d81db
Submitter: "Zuul (22348)"
Branch: master

commit b500d80c7641583039188baf62c215676e3d81db
Author: Slawek Kaplonski <email address hidden>
Date: Fri Jun 14 12:58:58 2024 +0200

    Fix deployment of the neutron with uwsgi

    After patch [1] deploying neutron with uwsgi was not working correctly
    due to the fact that there was different paths for the applications
    set in the api-paste.ini file. Instead of default ones like:

    /: neutronversions_composite
    /healthcheck: healthcheck
    /v2.0: neutronapi_v2_0

    it was changing it to something like:

    /networking/: neutronversions_composite
    /networking/healthcheck: healthcheck
    /networking/v2.0: neutronapi_v2_0

    where 'networking' can be configured to something else.
    This patch fixes deployment of neutron with uwsgi by not changing its
    api-paste.ini file when NEUTRON_DEPLOY_MOD_WSGI=True.

    [1] https://review.opendev.org/c/openstack/devstack/+/849145

    Closes-bug: #2069418
    Change-Id: I12b860d4d98442e2b5ac0c9fd854f1226633b518

Changed in devstack:
status: In Progress → Fix Released
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.