Bug 1809928 - Installation requirement for python env incomplete for fresh rhel7 systems
Summary: Installation requirement for python env incomplete for fresh rhel7 systems
Keywords:
Status: CLOSED DUPLICATE of bug 1810202
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 4.4
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 4.4.0
Assignee: Pierre Prinetti
QA Contact: David Sanz
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-04 08:41 UTC by bart
Modified: 2020-03-05 16:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-05 16:02:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.