Skip to content

Commit 7f7e0c2

Browse files
pshanbhagmjkota
andauthored
Get express functional again for OpenStack (#276)
* Lock down express to work for py2 environments * Add epel repo installation * Update pf9 repo * Install the latest ca-certificates package for redhat/centos * Indention issue fixed Co-authored-by: mjkota <[email protected]>
1 parent 02d8c3d commit 7f7e0c2

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

pf9-express

+12-2
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ install_oscli() {
351351
mkvirtualenv os_cli > ${log} 2>&1
352352

353353
echo "--> Upgrading PIP"
354-
pip install pip --upgrade > ${log} 2>&1
354+
pip install pip==20.3.4 --upgrade > ${log} 2>&1
355355

356356
echo "--> Installing OpenStack CLI"
357357
pip install --upgrade --requirement \
@@ -390,12 +390,22 @@ install_prereqs() {
390390
done
391391

392392
## upgrade pip
393-
sudo pip install --upgrade pip > ${log} 2>&1
393+
sudo pip install --upgrade pip==20.3.4 > ${log} 2>&1
394394
if [ $? -ne 0 ]; then
395395
echo -e "\nERROR: failed to upgrade pip - here's the last 10 lines of the log:\n"
396396
tail -10 ${log}; exit 1
397397
fi
398398

399+
# Install pbr
400+
for pkg in 'pbr==5.6.0'; do
401+
echo -n "${pkg} "
402+
sudo pip install ${pkg} --ignore-installed > ${log} 2>&1
403+
if [ $? -ne 0 ]; then
404+
echo -e "\nERROR: failed to install ${pkg} - here's the last 10 lines of the log:\n"
405+
tail -10 ${log}; exit 1
406+
fi
407+
done
408+
399409
## install additional pip-based packages
400410
for pkg in 'openstacksdk==0.39.0' docker-py; do
401411
echo -n "${pkg} "

roles/common/tasks/redhat.yml

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
state: present
55
name: libselinux-python
66

7+
- name: Install the latest version ca-certificates
8+
yum:
9+
name: ca-certificates
10+
state: latest
11+
712
- name: Modify devpts mount point
813
mount:
914
state: present

roles/neutron-prerequisites/tasks/redhat.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
- name: Add Platform9 Yum repository
5454
yum:
55-
name: https://s3-us-west-1.amazonaws.com/platform9-neutron/noarch/platform9-neutron-repo.noarch.rpm
55+
name: https://s3-us-west-1.amazonaws.com/platform9-neutron/noarch/platform9-neutron-repo-1-0.noarch.rpm
5656
state: present
5757
update_cache: yes
5858

roles/qemu-kvm-ev/tasks/main.yml

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
copy:
66
dest: /etc/yum/vars/contentdir
77
content: 'centos'
8+
9+
- name: install the epel-release repo
10+
yum:
11+
name: epel-release
12+
state: latest
813

914
- name: install the centos-release-qemu-ev repo
1015
yum:

0 commit comments

Comments
 (0)