Comment 12 for bug 1883468

Revision history for this message
Hirotaka Wakabayashi (hiwkby) wrote :

Hello Dr. Jens Harbott,

Thank you very much for your support!

I don't know when and where I should add my comment on this issue, but I think the following lines still have problem for users of CentOS, which is officially supported by OpenStack.
https://opendev.org/openstack/devstack/src/branch/stable/ussuri/lib/apache#L116-L134

I hope this helps us.
```
diff --git a/lib/apache b/lib/apache
index 41c2e3d8..f9829c90 100644
--- a/lib/apache
+++ b/lib/apache
@@ -100,7 +100,7 @@ function install_apache_uwsgi {
                         uwsgi-plugin-python \
                         uwsgi-plugin-python3 \
                         libapache2-mod-proxy-uwsgi
- 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_apache_uwsgi {
         # Thus there is nothing else to do after this install
         install_package uwsgi \
                         uwsgi-plugin-python3
- elif [[ $os_VENDOR =~ openSUSE ]]; then
+ elif is_suse; then
         install_package uwsgi \
                         uwsgi-python3 \
                         apache2-mod_uwsgi
@@ -123,8 +123,14 @@ function install_apache_uwsgi {
         pip_install uwsgi
         pip download uwsgi -c $REQUIREMENTS_DIR/upper-constraints.txt
         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
```

Thanks in advance,
Hirotaka Wakabayashi