Skip to content

Commit b500d80

Browse files
committed
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
1 parent f871476 commit b500d80

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/neutron

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ function _configure_neutron_service {
10021002
Q_API_PASTE_FILE=$NEUTRON_CONF_DIR/api-paste.ini
10031003
cp $NEUTRON_DIR/etc/api-paste.ini $Q_API_PASTE_FILE
10041004

1005-
if [[ -n "$NEUTRON_ENDPOINT_SERVICE_NAME" ]]; then
1005+
if [[ "$NEUTRON_DEPLOY_MOD_WSGI" == "False" && -n "$NEUTRON_ENDPOINT_SERVICE_NAME" ]]; then
10061006
_replace_api_paste_composite
10071007
fi
10081008

0 commit comments

Comments
 (0)