stack.sh fails on CentOS8 because mod_wsgi not found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
Undecided
|
Hirotaka Wakabayashi |
Bug Description
Hello devstack-team,
I get an error because the mod_wsgi package does not exist[2] when I run devstack on my CentOS 8[1]. I think we should use python3-mod_wsgi instead of mod_wsgi because the ChangeLog of python3-
Thanks in advance,
Hirotaka Wakabayashi
[1] My CentOS8
```
NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_
PRETTY_NAME="CentOS Linux 8 (Core)"
ANSI_COLOR="0;31"
CPE_NAME=
HOME_URL="https:/
BUG_REPORT_URL="https:/
CENTOS_
CENTOS_
REDHAT_
REDHAT_
```
[2] The error log
```
+ functions-
Last metadata expiration check: 0:09:39 ago on Tue 30 Jun 2020 08:00:05 AM JST.
Package httpd-2.
No match for argument: mod_wsgi
Error: Unable to find a match: mod_wsgi
```
[3] python3-
```
2019-12-04 - Lubos Uhliarik <email address hidden> - 4.6.4-4
- Resolves: #1779705 - python3-mod_wsgi: Remove the Provides and Obsoletes for the name `mod_wsgi`
```
https:/
Hello again,
My solution is here. Please see the lines around "install_ apache_ wsgi". I can submit a patch if no problems.
``` apache_ uwsgi {
uwsgi- plugin- python \
uwsgi- plugin- python3 \
libapache2- mod-proxy- uwsgi apache_ uwsgi {
install_ package uwsgi \
uwsgi- plugin- python3
install_ package uwsgi \
uwsgi- python3 \
apache2- mod_uwsgi apache_ uwsgi {
pip_install uwsgi DIR/upper- constraints. txt conf.d/ 000-* prefork. so/s/^/ #/g' /etc/httpd/ conf.modules. d/00-mpm. conf
$ git diff
diff --git a/lib/apache b/lib/apache
index 41c2e3d8..12dceb35 100644
--- a/lib/apache
+++ b/lib/apache
@@ -100,7 +100,7 @@ function install_
- elif [[ $os_VENDOR == "Fedora" ]]; then
+ elif is_fedora; then
# Note httpd comes with mod_proxy_uwsgi and it is loaded by
# default; the mod_proxy_uwsgi package actually conflicts now.
# See:
@@ -109,7 +109,7 @@ function install_
# Thus there is nothing else to do after this install
- elif [[ $os_VENDOR =~ openSUSE ]]; then
+ elif is_suse; then
@@ -123,8 +123,14 @@ function install_
pip download uwsgi -c $REQUIREMENTS_
local uwsgi
- uwsgi=$(ls uwsgi*)
- tar xvf $uwsgi
+ if [ -f uW*.tar.gz ] ; then
+ mkdir uwsgi-latest
+ uwsgi=$(ls uW*.tar.gz)
+ tar xvf $uwsgi -C uwsgi-latest
+ else
+ uwsgi=$(ls uwsgi*)
+ tar xvf $uwsgi
+ fi
cd uwsgi*/apache2
sudo $apxs -i -c mod_proxy_uwsgi.c
popd
@@ -161,7 +167,7 @@ function install_apache_wsgi {
fi
elif is_fedora; then
sudo rm -f /etc/httpd/
- install_package httpd mod_wsgi
+ install_package httpd python3-mod_wsgi
# For consistency with Ubuntu, switch to the worker mpm, as
# the default is event
sudo sed -i '/mod_mpm_
```
Thanks in advance,
Hirotaka Wakabayashi