Bug 1809928

Summary: Installation requirement for python env incomplete for fresh rhel7 systems
Product: OpenShift Container Platform Reporter: bart
Component: InstallerAssignee: Pierre Prinetti <pprinett>
Installer sub component: OpenShift on OpenStack QA Contact: David Sanz <dsanzmor>
Status: CLOSED DUPLICATE Docs Contact:
Severity: unspecified    
Priority: unspecified CC: pprinett
Version: 4.4   
Target Milestone: ---   
Target Release: 4.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-05 16:02:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description bart 2020-03-04 08:41:18 UTC
Description of problem:


In the documentation found here: 
https://github.com/openshift/installer/blob/master/docs/user/openstack/install_upi.md

In the section were the python environment is created, the commands fail as the required python requirements are not installed or specified.

python -m venv venv
source venv/bin/activate
pip install -U pip
pip install -r requirements.txt

On rhel-server-7.7-update-1-x86_64-kvm.qcow2 there is only python2 untill you install python3



Version-Release number of the following components:
rpm -q openshift-ansible
rpm -q ansible
ansible --version

How reproducible:

Steps to Reproduce:

subscription-manager register
subscription-manager attach --pool=8a85f98c60c2c2b40160c32447481b48
sudo subscription-manager repos --disable=*
sudo subscription-manager repos --enable=rhel-7-server-rpms  \
   --enable=rhel-7-server-extras-rpms

yum install -y git vim python-virtualenv
git clone https://github.com/openshift/installer.git
mkdir ~/upi-playbook
cp -r . ~/upi-playbook
cd ~/upi-playbook


Actual results:
[cloud-user@ansible-node ~]$ python -m venv venv
/usr/bin/python: No module named venv


Expected results:
Installation process to proceed

Comment 1 bart 2020-03-04 08:56:52 UTC
sudo subscription-manager repos --enable=rhel-7-server-rpms  \
   --enable=rhel-7-server-extras-rpms --enable=rhel-7-server-optional-rpms

yum install -y git vim gcc python3 python3-devel

is needed for 
python3 -m venv venv
source venv/bin/activate
pip install -U pip
pip install -r requirements.txt

to work

Comment 2 Pierre Prinetti 2020-03-05 16:02:47 UTC
Thank you for reporting. We are working on removing pip, and providing steps for installing from repository.

*** This bug has been marked as a duplicate of bug 1810202 ***