Merge "Workaround for new pip 20.3 behavior"

This commit is contained in:
Zuul 2021-04-01 20:30:14 +00:00 committed by Gerrit Code Review
commit 336e3afd5f
1 changed files with 6 additions and 1 deletions

View File

@ -1168,8 +1168,13 @@ function install_monasca_agent {
sudo mkdir -p /opt/monasca-agent || true
sudo chown $STACK_USER:monasca /opt/monasca-agent
# TODO: remove the trailing pip version when a proper fix
# arrives for handling this bug https://github.com/pypa/pip/issues/8210
# Similar issue: https://bugs.launchpad.net/devstack/+bug/1906322
if python3_enabled; then
(cd /opt/monasca-agent ; virtualenv -p python3 .)
(cd /opt/monasca-agent ;
virtualenv -p python3 . ;
bin/python3 -m pip install --upgrade pip==20.2.3)
sudo rm -rf /opt/stack/monasca-common/.eggs/
else
(cd /opt/monasca-agent ; virtualenv .)