Skip to content

Commit

Permalink
Bug 1810196: Use RPM for UPI dependencies
Browse files Browse the repository at this point in the history
The use of pip is not supported.
  • Loading branch information
pierreprinetti committed Mar 5, 2020
1 parent 58ecac3 commit 532f583
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 9 deletions.
35 changes: 30 additions & 5 deletions docs/user/openstack/install_upi.md
Expand Up @@ -95,13 +95,38 @@ This repository contains [Ansible playbooks][ansible-upi] to deploy OpenShift on
* netaddr
* openstackclient

The file `requirements.txt` included in the playbook directory helps using `pip` for gathering the required dependencies in a Python virtual environment:
### RHEL

From a RHEL 8 box, make sure that the repository origins are all set:

```sh
sudo subscription-manager register # if not done already
sudo subscription-manager attach --pool=$YOUR_POOLID # if not done already
sudo subscription-manager repos --disable=* # if not done already

sudo subscription-manager repos \
--enable=rhel-8-for-x86_64-baseos-rpms \
--enable=openstack-16-tools-for-rhel-8-x86_64-rpms \
--enable=ansible-2.8-for-rhel-8-x86_64-rpms \
--enable=rhel-8-for-x86_64-appstream-rpms
```

Then install the packages:
```sh
sudo yum install python3-openstackclient ansible python3-openstacksdk python3-netaddr
```

Make sure that `python` points to Python3:
```sh
sudo alternatives --set python /usr/bin/python3
```

### Fedora

This command installs all required dependencies on Fedora:

```sh
python -m venv venv
source venv/bin/activate
pip install -U pip
pip install -r requirements.txt
sudo dnf install python-openstackclient ansible python-openstacksdk python-netaddr
```

[ansible-upi]: ../../../upi/openstack "Ansible Playbooks for Openstack UPI"
Expand Down
4 changes: 0 additions & 4 deletions upi/openstack/requirements.txt

This file was deleted.

0 comments on commit 532f583

Please sign in to comment.