tripleo-quickstart-extras/roles/overcloud-prep-images/templates/inject-ara.sh.j2
Amol Kahat 140280a24a
Ara installation is failing with pip==21.0
Pip version 21.0 is not compatible, this causing
failures in installing ara. Installing pip stable
version 20.3.4.

Change-Id: I4fb3d6fa55ef528961cfa493231d4434a95b803d
Signed-off-by: Amol Kahat <amolkahat@gmail.com>
2021-01-25 17:29:57 +05:30

24 lines
641 B
Django/Jinja

#!/bin/bash
set -eux
### --start_docs
## Prepare images for deploying the overcloud
## ==========================================
## Prepare Your Environment
## ------------------------
## * Source in the undercloud credentials.
## ::
source {{ working_dir }}/stackrc
container_cli="{{ undercloud_container_cli | default('podman') }}"
cont=$(sudo $container_cli ps | grep executor | awk {'print $1'})
sudo $container_cli exec --user root $cont bash -c "easy_install pip==20.3.4 && pip install 'ara==1.0.0' || pip3 install 'ara==1.0.0'"
# check it
sudo $container_cli exec --user root $cont find /usr -type d -name ara
### --stop_docs