openshift-cluster-acm-status¶
A task to report the status of Red Hat Advanced Cluster Management (ACM) on an OpenShift cluster
Advanced Cluster Management Status Task¶
This task reports the status of Red Hat Advanced Cluster Management (ACM) on an
OpenShift hub cluster. It is the ACM part of the openshift-cluster-status
blueprint: the openshift-config-acm profile adds it to
openshift/cluster-status-flexiflow,
and the blueprint runs it as its own job after the base status task.
Requirements¶
Parameters¶
- openshift/acm-namespace: Namespace that holds the ACM operator and the MultiClusterHub
Cluster Access¶
- ACM installed in the cluster (see
openshift-cluster-acm-install) - Valid kubeconfig with access to the ACM namespace
- Cluster metrics enabled (for
oc adm top pod)
Usage¶
With the Status Blueprint¶
# Runs the base status task, then this task
drpcli clusters work_order add Name:<cluster> openshift-cluster-status
Tasks that the blueprint injects from openshift/cluster-status-flexiflow do
not get their own Prerequisites added. The blueprint has already run
openshift-cluster-tools and openshift-refresh-kubeconfig for the base
status task, and this task writes its kubeconfig from the
openshift/kubeconfig param when it starts. The Prerequisites listed on this
task apply when it is run on its own.
Status Information¶
The task reports, for the ACM namespace:
1. Pod resource usage (oc adm top pod)
2. MultiClusterHub health (oc get mch, oc get multiclusterhub multiclusterhub)
3. Operator versions (oc get csv)
4. Pod status (oc get pods)
5. Service availability (oc get services)
The task fails if any of these commands fails, for example when ACM is not installed yet. A failing task fails the status work order.
Objects that Reference openshift-cluster-acm-status¶
Not used in current content packs
Objects used by openshift-cluster-acm-status¶
- templates openshift-cluster-acm-status.sh.tmpl in field Templates[0].ID as value openshift-cluster-acm-status.sh.tmpl