Fix pip installation failures in overcloud-prep-containers

python2 easy_install command is failing to install pip with
version no. To overcome this issue, first install pip using
easy_install and install pip version with pip.

Closes-Bug: #1927736

Change-Id: Ie07eefb8052e04a40cd93455a8c60b92642ee3c5
Signed-off-by: Amol Kahat <amolkahat@gmail.com>
This commit is contained in:
Amol Kahat 2021-05-10 15:06:22 +05:30
parent 7184a20d9a
commit 95bb26c152
No known key found for this signature in database
GPG Key ID: FDD3BA6C832D7715
1 changed files with 4 additions and 1 deletions

View File

@ -32,7 +32,10 @@
# one being too old to be usable. included in openstack distro.
- name: easy-install pip
command: "{{ python_cmd }} -m easy_install pip==20.3.4"
shell: |-
"{{ python_cmd }} -m easy_install pip"
"{{ python_cmd }} -m pip install pip==20.3.4"
changed_when: true
- name: Update pip
# noqa 403