(fix) Add task to install pip3

Added task to install pip3 to adress the airhsip-shipyard zuul gate issue
where airship-shipyard-airskiff-deployment job fails on:
sudo -H -E pip install 'cmd2<=0.8.7'
sudo: pip: command not found

Updated pip to pip3 to move tom pip to pip3.
Also, updated the openstack-helm-infra commit-id to the latest to use
pip3 instead of pip.

Change-Id: I0d4aef4de3c10a9317acad8c8c9e17e15b309172
This commit is contained in:
Mahmoudi, Ahmad (am495p) 2020-06-23 19:46:27 +00:00
parent 868529d9fc
commit 64c7d012b1
3 changed files with 9 additions and 3 deletions

View File

@ -19,7 +19,7 @@ set -xe
CURRENT_DIR="$(pwd)" CURRENT_DIR="$(pwd)"
: "${INSTALL_PATH:="../"}" : "${INSTALL_PATH:="../"}"
: "${OSH_INFRA_COMMIT:="eacf93722136636dcfbd2b68c59b71f071ffc085"}" : "${OSH_INFRA_COMMIT:="a31bb2b04918107a08cb14201ae72f2b5696cb9d"}"
: "${CLONE_ARMADA:=true}" : "${CLONE_ARMADA:=true}"
: "${CLONE_DECKHAND:=true}" : "${CLONE_DECKHAND:=true}"
: "${CLONE_SHIPYARD:=true}" : "${CLONE_SHIPYARD:=true}"

View File

@ -18,8 +18,8 @@
set -xe set -xe
# Install OpenStack client and create OpenStack client configuration file. # Install OpenStack client and create OpenStack client configuration file.
sudo -H -E pip install "cmd2<=0.8.7" sudo -H -E pip3 install "cmd2<=0.8.7"
sudo -H -E pip install python-openstackclient python-heatclient sudo -H -E pip3 install python-openstackclient python-heatclient
sudo -H mkdir -p /etc/openstack sudo -H mkdir -p /etc/openstack
sudo -H chown -R "$(id -un)": /etc/openstack sudo -H chown -R "$(id -un)": /etc/openstack

View File

@ -23,6 +23,12 @@
daemon_reload: yes daemon_reload: yes
name: systemd-resolved name: systemd-resolved
become: yes become: yes
- name: ensure pip3 installed
apt:
name: "{{ item }}"
with_items:
- python3-pip
become: yes
- name: Clone dependencies - name: Clone dependencies
shell: | shell: |