Skip to content

Openshift ACM

OpenShift Advanced Cluster Management (ACM) Content Bundle

This content bundle provides automation for deploying and managing Red Hat Advanced Cluster Management (ACM) for Kubernetes on OpenShift clusters. ACM extends OpenShift's capabilities with multi-cluster management, policy-based governance, and application lifecycle management.

Overview

Advanced Cluster Management for Kubernetes provides:

  • Centralized Management: Control multiple Kubernetes clusters from a single console
  • Policy-Based Governance: Define and enforce policies across your entire cluster fleet
  • Application Lifecycle Management: Deploy applications to multiple clusters with consistent governance
  • Observability: Central visibility into cluster health and compliance
  • Security and Compliance: Built-in compliance frameworks and security controls

This content bundle streamlines the installation, configuration, and management of ACM in your OpenShift environment.

Prerequisites

Before deploying ACM, ensure you have:

  • A fully operational OpenShift cluster (4.12+)
  • Sufficient cluster resources:
  • At least 3 worker nodes
  • Minimum 8GB RAM per worker
  • Minimum 4 vCPUs per worker
  • Valid Red Hat subscription with ACM entitlements
  • Cluster administrator privileges

Installation Methods

There are two ways to install ACM with this content bundle:

Method 1: During OpenShift Deployment

Apply the openshift-config-acm profile before deploying your OpenShift cluster:

Bash
# Apply the ACM profile to your cluster configuration
drpcli clusters addprofile demo openshift-config-acm

# Configure ACM parameters if needed (using defaults if not specified)
# The channel is optional; without it the cluster's catalog default is used
drpcli profiles set demo param openshift/acm-channel to "release-2.17"
drpcli profiles set demo param openshift/acm-namespace to "open-cluster-management"

With this profile applied, the OpenShift deployment process will automatically install ACM after the cluster is operational.

Method 2: Post-Deployment Installation

If your OpenShift cluster is already deployed, you can install ACM using the provided blueprint:

Bash
# Get your cluster UUID (replace "demo" with your cluster name)
CLUSTER_UUID=$(drpcli clusters show Name:demo | jq -r .Uuid)

# Create a work order to run the ACM installation blueprint
drpcli clusters work_order add $CLUSTER_UUID openshift-cluster-acm-install

Configuration Parameters

The following parameters customize the ACM installation:

Parameter Description Default Value
openshift/acm-channel Subscription channel for ACM operator empty: the default channel of the cluster's catalog
openshift/acm-namespace Target namespace for ACM open-cluster-management
openshift/acm-operator-name Name of ACM operator subscription advanced-cluster-management
openshift/acm-install-timeout Timeout for operator installation (seconds) 1500
openshift/acm-install-mcm-timeout Timeout for Multi-Cluster Hub installation (seconds) 3600
openshift/acm-enabled Flag to enable ACM installation true (when profile is applied)
openshift/acm-cleanup-timeout Overall timeout for the ACM cleanup (seconds) 1800

Installation Process

The ACM installation process consists of these main steps:

  1. Creating the target namespace if it doesn't exist
  2. Deploying the OperatorGroup configuration
  3. Creating the operator subscription from Red Hat Marketplace
  4. Waiting for the operator to be installed (with configurable timeout)
  5. Deploying the MultiClusterHub instance
  6. Waiting for the MultiClusterHub to be ready (with configurable timeout)

Managing ACM

Accessing ACM

Once installed, ACM is integrated into the OpenShift web console:

  1. Log into the OpenShift web console
  2. Navigate to the menu and find the "Multicluster" section

Alternatively, you can use the oc command line to interact with ACM:

Bash
# Get MultiClusterHub status
oc get multiclusterhub -n open-cluster-management

# Check ACM pod status
oc get pods -n open-cluster-management

Checking ACM Status

The openshift-config-acm profile adds the openshift-cluster-acm-status task to the openshift/cluster-status-flexiflow param of the openshift content bundle. On a cluster that carries the profile, the openshift-cluster-status blueprint runs the ACM checks as their own job, after the base status task:

Bash
# Run the cluster status blueprint (replace "demo" with your cluster name)
drpcli clusters work_order add Name:demo openshift-cluster-status

The ACM job reports, for the ACM namespace: pod resource usage, the MultiClusterHub, the installed operator versions, pods and services. It fails, and fails the work order, if ACM is not installed or one of the checks cannot be read.

This needs a version of the openshift content bundle that has the openshift/cluster-status-flexiflow param.

Managed Clusters

To view and manage your connected clusters:

Bash
# List managed clusters
oc get managedclusters -A

Cleanup and Removal

If you need to remove ACM from your cluster, use the provided cleanup blueprint:

Bash
# Get your cluster UUID
CLUSTER_UUID=$(drpcli clusters show demo | jq -r .Uuid)

# Create a work order to run the ACM cleanup blueprint
drpcli clusters work_order add $CLUSTER_UUID openshift-cluster-acm-cleanup

Detach managed clusters first. The cleanup refuses to run while any cluster other than the hub's own local-cluster is attached.

The cleanup process removes: 1. Discovery configurations, the agent service configuration and observability 2. MultiClusterHub instance, and the multicluster engine that the hub installed 3. Operator subscription, its ClusterServiceVersions and the OperatorGroup 4. ACM namespace, with everything left in it 5. The hive and hypershift namespaces, when they hold no workloads, claims or operator subscriptions 6. APIServices and webhook configurations whose service is in an ACM namespace that is gone or terminating

When the hub's own Klusterlet is being deleted and the klusterlet operator no longer exists (no Deployment named klusterlet in any namespace), nothing else can release its operator.open-cluster-management.io/klusterlet-cleanup finalizer. After the Klusterlet has been waiting to be deleted for 60 seconds, the task removes that one finalizer, keeping any others, and logs it.

CustomResourceDefinitions that are not being deleted are left in place. The task fails rather than report success while a CustomResourceDefinition in an ACM API group (open-cluster-management.io, multicluster.openshift.io, hive.openshift.io, hiveinternal.openshift.io, hypershift.openshift.io, agent-install.openshift.io and their subgroups) is still waiting to be deleted, because installing ACM again would meet one that is going away.

The hub removal can take 20 minutes or more. The task waits up to openshift/acm-cleanup-timeout seconds (default 1800) in total and logs what it is waiting on. If the removal is stuck, the task fails and lists the objects that block it, usually objects with a finalizer whose controller is already gone. This is most likely when a hub is removed while it is still installing. Remove those finalizers by hand and run the cleanup again.

Troubleshooting

Common Issues

  1. Timeout during installation: Increase the timeout parameters if your environment has limited resources or network constraints.

    Bash
    drpcli profiles set demo param openshift/acm-install-timeout to 3000
    drpcli profiles set demo param openshift/acm-install-mcm-timeout to 7200
    

  2. Pod scheduling failures: Check for node taints and resource constraints.

    Bash
    oc get nodes -o custom-columns=NAME:.metadata.name,TAINTS:.spec.taints
    oc describe node <node-name> | grep -A 5 Capacity
    

  3. MultiClusterHub stuck in pending state: Check for resource issues or networking problems.

    Bash
    oc get events -n open-cluster-management
    oc describe multiclusterhub multiclusterhub -n open-cluster-management
    

Collecting Diagnostics

For comprehensive diagnostics:

Bash
# Use the must-gather tool for ACM-specific logs
oc adm must-gather --image=registry.redhat.io/rhacm2/acm-must-gather-rhel8:v2.8 --dest-dir=acm-logs

Support

For issues or questions: - Check the Digital Rebar documentation - Review the ACM documentation - Contact RackN support

License

RackN License - See documentation for details.