openshift-cluster-acm-cleanup¶
A blueprint for safely removing Advanced Cluster Management from an OpenShift cluster
OpenShift ACM Cleanup Blueprint¶
This blueprint orchestrates the removal of Red Hat Advanced Cluster Management (ACM) from an OpenShift cluster. It ensures a clean and complete removal of all ACM components and resources.
Requirements¶
Cluster State¶
- ACM must be installed
- No active managed clusters
- Backup of any critical ACM data
- Cluster admin access
Usage¶
Select this blueprint from the cluster management menu when you need to remove Advanced Cluster Management from your cluster. Common scenarios include:
- Decommissioning ACM
- Preparing for fresh ACM installation
- Cluster cleanup operations
- Troubleshooting ACM issues
Verification¶
After the blueprint completes, verify removal by checking: - ACM namespace absence - MultiClusterHub resource removal - Operator subscription cleanup - Related resource cleanup
Cleanup Process¶
The blueprint executes these tasks in sequence:
1. openshift-cluster-acm-cleanup:
- Refuses to run while managed clusters are attached
- Removes MultiClusterHub and waits for it, up to
openshift/acm-cleanup-timeout seconds
- Deletes operator subscriptions
- Removes namespace
- Cleans up stale APIServices and webhook configurations, and the engine's
hive and hypershift namespaces when they hold no workloads, claims or
operator subscriptions
- Removes the operator.open-cluster-management.io/klusterlet-cleanup
finalizer from the hub's Klusterlet when it is being deleted and the
klusterlet operator no longer exists, since nothing else can release it
- Fails rather than report success while a CustomResourceDefinition in an
ACM API group is still waiting to be deleted
- Fails with a report of the blocking objects when the removal is stuck
Objects that Reference openshift-cluster-acm-cleanup¶
Not used in current content packs
Objects used by openshift-cluster-acm-cleanup¶
- tasks openshift-cluster-acm-cleanup in field Tasks as value openshift-cluster-acm-cleanup