21.10. Uninstalling a cluster on RHOSP from your own infrastructure
You can remove a cluster that you deployed to Red Hat OpenStack Platform (RHOSP) on user-provisioned infrastructure.
21.10.1. Downloading playbook dependencies Copier lienLien copié sur presse-papiers!
The Ansible playbooks that simplify the removal process on user-provisioned infrastructure require several Python modules. On the machine where you will run the process, add the modules' repositories and then download them.
These instructions assume that you are using Red Hat Enterprise Linux (RHEL) 8.
Conditions préalables
- Python 3 is installed on your machine.
Procédure
On a command line, add the repositories:
S'inscrire auprès du gestionnaire d'abonnements Red Hat :
sudo subscription-manager register # If not done already
$ sudo subscription-manager register # If not done already
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Extraire les données d'abonnement les plus récentes :
sudo subscription-manager attach --pool=$YOUR_POOLID # If not done already
$ sudo subscription-manager attach --pool=$YOUR_POOLID # If not done already
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Disable the current repositories:
sudo subscription-manager repos --disable=* # If not done already
$ sudo subscription-manager repos --disable=* # If not done already
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the required repositories:
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.9-for-rhel-8-x86_64-rpms \ --enable=rhel-8-for-x86_64-appstream-rpms
$ 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.9-for-rhel-8-x86_64-rpms \ --enable=rhel-8-for-x86_64-appstream-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Install the modules:
sudo yum install python3-openstackclient ansible python3-openstacksdk
$ sudo yum install python3-openstackclient ansible python3-openstacksdk
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Ensure that the
python
command points topython3
:sudo alternatives --set python /usr/bin/python3
$ sudo alternatives --set python /usr/bin/python3
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
21.10.2. Removing a cluster from RHOSP that uses your own infrastructure Copier lienLien copié sur presse-papiers!
You can remove an OpenShift Container Platform cluster on Red Hat OpenStack Platform (RHOSP) that uses your own infrastructure. To complete the removal process quickly, run several Ansible playbooks.
Conditions préalables
- Python 3 is installed on your machine.
- You downloaded the modules in "Downloading playbook dependencies."
- You have the playbooks that you used to install the cluster.
-
You modified the playbooks that are prefixed with
down-
to reflect any changes that you made to their corresponding installation playbooks. For example, changes to thebootstrap.yaml
file are reflected in thedown-bootstrap.yaml
file. - All of the playbooks are in a common directory.
Procédure
On a command line, run the playbooks that you downloaded:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Remove any DNS record changes you made for the OpenShift Container Platform installation.
OpenShift Container Platform is removed from your infrastructure.