Centos - stack.sh crashes after downloading uwsgi

Bug #1883897 reported by Ignacy Osetek
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
devstack
Won't Fix
Undecided
Unassigned

Bug Description

Script devstack/lib/apache downloads and build uwsgi package.
By downloading uwsgi with PIP there is no information what's the filename of downloaded tar file so to resolve this the script used the following logic.
```
pip download uwsgi -c $REQUIREMENTS_DIR/upper-constraints.txt
local uwsgi
uwsgi=$(ls uwsgi*)
```

However it caused a failure due to the name of downloaded package:
```
Downloading https://mirror.iad.rax.opendev.org/pypifiles/packages/6f/e9/729f0eb15f4847c729c1a841bcbb5e327d08d208de0cbe661224955c9297/uWSGI-2.0.19.tar.gz (804kB)
Saved ./uWSGI-2.0.19.tar.gz
```

The script is case sensitive so this file was not found as the script expects the uwsgi file to be written with lower case.

There needs to be another method for resolving this name.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (stable/queens)

Fix proposed to branch: stable/queens
Review: https://review.opendev.org/736189

Changed in devstack:
assignee: nobody → Ignacy Osetek (iosetek)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.opendev.org/736194

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/741030

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to devstack (stable/queens)

Reviewed: https://review.opendev.org/c/openstack/devstack/+/736189
Committed: https://opendev.org/openstack/devstack/commit/10877d79d63507ceb24f234d66e01ab95ac4da9c
Submitter: "Zuul (22348)"
Branch: stable/queens

commit 10877d79d63507ceb24f234d66e01ab95ac4da9c
Author: iosetek <email address hidden>
Date: Wed Jun 17 14:32:46 2020 +0200

    Fix for downloading uwsgi on centos in lib/apache

    On Centos the lib/apache script in devstack downloads and compiles
    uwsgi package. It uses pip-download to pull uwsgi tar file.
    However, it does not return the full name of downloaded file so
    right now the script looks for filename that starts with prefix
    "uwsgi".
    This method is case sensitive so after downloading file with name
    uWSGI-2.0.19.tar.gz the script was unable to locate this file.

    This change downloads the file to an empty directory and expect
    it to be the only file there so there is no name vulnerability.

    Change-Id: I57e6219d675c951880808ced4e26c2344ef15cee
    Closes-Bug: #1883897

tags: added: in-stable-queens
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on devstack (master)

Change abandoned by "Dr. Jens Harbott <email address hidden>" on branch: master
Review: https://review.opendev.org/c/openstack/devstack/+/736194
Reason: Not needed

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

Rocky jobs are failing with multiple issues now, will be EOLed instead of fixing.

Changed in devstack:
status: In Progress → Won't Fix
assignee: Ignacy Osetek (iosetek) → nobody
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on devstack (stable/rocky)

Change abandoned by "Goutham Pacha Ravi <email address hidden>" on branch: stable/rocky
Review: https://review.opendev.org/c/openstack/devstack/+/741030
Reason: python2.7 is EOL and this fix isn't useful while we have other python2.7 failures. stable/rocky is no longer under active development; we would be EOL'ing support in general across repositories.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.