From 95bb26c1527d6a141a055e92a5baddede02a14c0 Mon Sep 17 00:00:00 2001 From: Amol Kahat Date: Mon, 10 May 2021 15:06:22 +0530 Subject: [PATCH] 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 --- .../tasks/overcloud-prep-containers.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/overcloud-prep-containers/tasks/overcloud-prep-containers.yml b/roles/overcloud-prep-containers/tasks/overcloud-prep-containers.yml index dcbc88271..db72e1d5a 100644 --- a/roles/overcloud-prep-containers/tasks/overcloud-prep-containers.yml +++ b/roles/overcloud-prep-containers/tasks/overcloud-prep-containers.yml @@ -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