Migrate from wsgi scripts to module paths
setuptools does not build wsgi-scripts in editable wheels anymore, breaking devstack. Migrate to module paths as per governance [1]. [1]https://governance.openstack.org/tc/goals/proposed/migrate-from-wsgi-scripts-to-module-paths.html Change-Id: Ibd4bc5214c55f1379738a8df0c2e3a39a6e90df0
This commit is contained in:
@@ -73,7 +73,7 @@ else
|
||||
ZUN_BIN_DIR=$(get_python_exec_prefix)
|
||||
fi
|
||||
|
||||
ZUN_UWSGI=$ZUN_BIN_DIR/zun-api-wsgi
|
||||
ZUN_UWSGI=zun.wsgi.api:application
|
||||
ZUN_UWSGI_CONF=$ZUN_CONF_DIR/zun-api-uwsgi.ini
|
||||
|
||||
DOCKER_REMOTE_API_PORT=2375
|
||||
@@ -125,7 +125,7 @@ function configure_zun {
|
||||
if is_service_enabled zun-api; then
|
||||
create_api_paste_conf
|
||||
|
||||
write_uwsgi_config "$ZUN_UWSGI_CONF" "$ZUN_UWSGI" "/container"
|
||||
write_uwsgi_config "$ZUN_UWSGI_CONF" "$ZUN_UWSGI" "/container" "" "zun-api"
|
||||
fi
|
||||
}
|
||||
|
||||
|
2
tox.ini
2
tox.ini
@@ -94,7 +94,7 @@ commands =
|
||||
stestr slowest
|
||||
|
||||
[flake8]
|
||||
filename = *.py,app.wsgi
|
||||
filename = *.py
|
||||
show-source = True
|
||||
# [H904] Delay string interpolations at logging calls.
|
||||
enable-extensions = H203,H106,H904
|
||||
|
Reference in New Issue
Block a user