$ sudo subscription-manager register # If not done already
You can remove a cluster that you deployed to OpenStack on user-provisioned infrastructure.
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 Fedora 8. |
Python 3 is installed on your machine.
On a command line, add the repositories:
Register with Red Hat Subscription Manager:
$ sudo subscription-manager register # If not done already
Pull the latest subscription data:
$ sudo subscription-manager attach --pool=$YOUR_POOLID # If not done already
Disable the current repositories:
$ sudo subscription-manager repos --disable=* # If not done already
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
Install the modules:
$ sudo yum install python3-openstackclient ansible python3-openstacksdk
Ensure that the python
command points to python3
:
$ sudo alternatives --set python /usr/bin/python3
You can remove an OKD cluster on OpenStack that uses your own infrastructure. To complete the removal process quickly, run several Ansible playbooks.
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 the bootstrap.yaml
file are reflected in the down-bootstrap.yaml
file.
All of the playbooks are in a common directory.
On a command line, run the playbooks that you downloaded:
$ ansible-playbook -i inventory.yaml \
down-bootstrap.yaml \
down-control-plane.yaml \
down-compute-nodes.yaml \
down-load-balancers.yaml \
down-network.yaml \
down-security-groups.yaml
Remove any DNS record changes you made for the OKD installation.
OKD is removed from your infrastructure.