This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.1.6. Uninstalling a cluster on OpenStack from your own infrastructure
You can remove a cluster that you deployed to Red Hat OpenStack Platform (RHOSP) on user-provisioned infrastructure.
1.6.1. Prerequisites 复制链接链接已复制到粘贴板!
Have on your machine
- A single directory in which you can create files to help you with the removal process
- Python 3
1.6.2. Downloading playbook dependencies 复制链接链接已复制到粘贴板!
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.
Prerequisites
- Python 3 is installed on your machine
Procedure
On a command line, add the repositories:
Register with Red Hat Subscription Manager:
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 Pull the latest subscription data:
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
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, create and run several Ansible playbooks.
Prerequisites
- Python 3 is installed on your machine
- You downloaded the modules in "Downloading playbook dependencies"
You may have the common.yaml
and inventory.yaml
playbooks left over from when you installed OpenShift Container Platform. If you do, you can skip the first two steps of the procedure.
Insert the following content into a local file called
common.yaml
:例 1.17.
common.yaml
Ansible playbookCopy to Clipboard Copied! Toggle word wrap Toggle overflow Insert the following content into a local file called
inventory.yaml
, and edit the values to match your own:例 1.18.
inventory.yaml
Ansible playbookCopy to Clipboard Copied! Toggle word wrap Toggle overflow Optional: If your cluster uses Kuryr, insert the following content into a local file called
down-load-balancers.yaml
:例 1.19.
down-load-balancers.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Insert the following content into a local file called
down-compute-nodes.yaml
:例 1.20.
down-compute-nodes.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Insert the following content into a local file called
down-control-plane.yaml
:例 1.21.
down-control-plane.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Insert the following content into a local file called
down-bootstrap.yaml
:例 1.22.
down-bootstrap.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Insert the following content into a local file called
down-network.yaml
:例 1.23.
down-network.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Insert the following content into a local file called
down-security-groups.yaml
:例 1.24.
down-security-groups.yaml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow On a command line, run the playbooks you created:
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.