From 6e4dd51c02f042efcfd6fb89575f100d44ac0a60 Mon Sep 17 00:00:00 2001 From: Hirotaka Wakabayashi Date: Wed, 31 Aug 2022 23:37:40 +0900 Subject: [PATCH] Rename api_wsgi.py to app_wsgi.py This PR changes wsgi script filename to app_wsgi.py. Original problem is that mod_wsgi script not found after devstack installation. This bug is created by #854356[1]. -- [1]: https://review.opendev.org/c/openstack/trove/+/854356 Story: 2010264 Task: 46163 Change-Id: I22883c8a8bb7e2818679d667b6868587a040a602 --- devstack/plugin.sh | 2 +- setup.cfg | 2 +- trove/cmd/{api_wsgi.py => app_wsgi.py} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename trove/cmd/{api_wsgi.py => app_wsgi.py} (100%) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 3ef04fbb30..cbcc56f65b 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -169,7 +169,7 @@ function config_trove_apache_wsgi { local trove_apache_conf sudo mkdir -p ${TROVE_WSGI_DIR} - sudo cp $TROVE_DIR/trove/cmd/app_wsgi.py $TROVE_WSGI_DIR/app.wsgi + sudo cp $TROVE_DIR/trove/cmd/app_wsgi.py $TROVE_WSGI_DIR/app_wsgi.py trove_apache_conf=$(apache_site_config_for trove-api) sudo cp $TROVE_DEVSTACK_FILES/apache-trove-api.template ${trove_apache_conf} sudo sed -e " diff --git a/setup.cfg b/setup.cfg index 340ff3ad7b..eabc647163 100644 --- a/setup.cfg +++ b/setup.cfg @@ -27,7 +27,7 @@ packages = [entry_points] wsgi_scripts = - trove-wsgi = trove.cmd.api_wsgi:wsgimain + trove-wsgi = trove.cmd.app_wsgi:wsgimain console_scripts = trove-api = trove.cmd.api:main trove-taskmanager = trove.cmd.taskmanager:main diff --git a/trove/cmd/api_wsgi.py b/trove/cmd/app_wsgi.py similarity index 100% rename from trove/cmd/api_wsgi.py rename to trove/cmd/app_wsgi.py