stack.sh fails because uWSGI directory not found in lib/apache
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
devstack |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Hello devstack-team,
stack.sh fails because "uWSGI directory not found" error:
```
Successfully downloaded uwsgi
+ lib/apache:
++ lib/apache:
ls: cannot access 'uwsgi*': No such file or directory
```
Uwsgi upstream seems to have changed the source package name and the list the contents[1].
https:/
https:/
Here is a simple workaround for me.
```
$ git diff lib/apache
diff --git a/lib/apache b/lib/apache
index 84cec732..68d6a4b7 100644
--- a/lib/apache
+++ b/lib/apache
@@ -95,8 +95,9 @@ function install_
pip_install uwsgi
pip download uwsgi -c $REQUIREMENTS_
local uwsgi
- uwsgi=$(ls uwsgi*)
- tar xvf $uwsgi
+ if [ -f uW*.tar.gz ] ; then mv -f uW*.tar.gz uwsgi-latest.
+ uwsgi=$(ls uwsgi*.tar.gz)
+ tar xvf $uwsgi -C uwsgi-latest
cd uwsgi*/apache2
```
Thanks in advance,
Hirotaka Wakabayashi
[1] uwsgi's changes(filename and list of the contents)
```
$ curl -O https:/
% Total % Received % Xferd Average Speed Time Time Time Current
100 782k 100 782k 0 0 3418k 0 --:--:-- --:--:-- --:--:-- 3403k
-rw-rw-r-- root/root 134 2019-02-09 23:48 uwsgi-2.
$ curl -O https:/
% Total % Received % Xferd Average Speed Time Time Time Current
100 785k 100 785k 0 0 4758k 0 --:--:-- --:--:-- --:--:-- 4758k
-rw-rw-r-- root/root 134 2020-06-15 02:06 uwsgi_main.c
```
Hello,
My stack.sh works fine with the patch below. I can submit a patch if no problem.
``` apache_ uwsgi { DIR/upper- constraints. txt
diff --git a/lib/apache b/lib/apache
index 84cec732..453d7d90 100644
--- a/lib/apache
+++ b/lib/apache
@@ -95,8 +95,14 @@ function install_
pip_install uwsgi
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
```
Thanks in advance,
Hirotaka Wakabayahsi