$ sudo subscription-manager register # If not done already
您可以删除部署到用户预置基础设施上的 Red Hat OpenStack Platform (RHOSP) 的集群。
简化用户预置基础设施上删除过程的 Ansible playbook 需要多个 Python 模块。在您将运行该过程的机器上,添加模块的存储库,然后下载它们。
这些说明假设您正在使用 Red Hat Enterprise Linux (RHEL) 8。 |
您的机器上已安装 Python 3。
在命令行上,添加存储库
注册 Red Hat Subscription Manager
$ 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.9-for-rhel-8-x86_64-rpms \
--enable=rhel-8-for-x86_64-appstream-rpms
安装模块
$ sudo yum install python3-openstackclient ansible python3-openstacksdk
确保 `python` 命令指向 `python3`
$ sudo alternatives --set python /usr/bin/python3
您可以删除使用您自己基础设施的 Red Hat OpenStack Platform (RHOSP) 上的 OpenShift Container Platform 集群。要快速完成删除过程,请运行多个 Ansible playbook。
您的机器上已安装 Python 3。
您已在“下载 playbook 依赖项”中下载了模块。
您拥有用于安装集群的 playbook。
您已修改以 `down-` 为前缀的 playbook,以反映您对其相应的安装 playbook 所做的任何更改。例如,对 `bootstrap.yaml` 文件的更改会反映在 `down-bootstrap.yaml` 文件中。
所有 playbook 都位于一个公共目录中。
在命令行上,运行您下载的 playbook
$ 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
删除您为 OpenShift Container Platform 安装所做的任何 DNS 记录更改。
OpenShift Container Platform 已从您的基础设施中删除。