Troubleshoot your Operator-based deployment of Ansible Automation Platform
Use the commands and procedures in this section to diagnose and resolve common issues with your Ansible Automation Platform deployment on OpenShift Container Platform. Topics include viewing logs, inspecting resources, and collecting diagnostic data for Red Hat Support.
Understand the automation controller operator logs Copy linkLink copied!
If an AutomationController instance fails to deploy, check the automation-controller-operator container logs. These logs contain the installer role output required to debug deployment issues.
View events in the OpenShift Container Platform Copy linkLink copied!
You can view events in the OpenShift Container Platform web console to monitor for errors and troubleshoot issues. This helps you quickly diagnose problems by examining the status of custom resources and their related events.
About this task Copy linkLink copied!
You can debug by first reviewing the status conditions of the Ansible Automation Platform custom resource (CR) and then checking any nested CRs for errors.
Procedure Copy linkLink copied!
- Log in to the OpenShift Container Platform web console.
- In the navigation menu, select .
- Select your project from the project list.
- To view events for a specific resource, navigate to that resource’s page. Many resource pages, such as pods and deployments, have their own Events tab.
- Select a resource to bring you to the Pod Details page.
Results Copy linkLink copied!
Check the Conditions section on the Pod details page to confirm no errors are listed in the Message column.
View operator logs Copy linkLink copied!
The following procedure is an example of how to view the logs for an automation-controller-operator pod.
Procedure Copy linkLink copied!
Configure log verbosity Copy linkLink copied!
You can enable task output for debugging on any custom resources (CRs) by setting no_log to false in the component section of the AnsibleAutomationPlatform CR.
About this task Copy linkLink copied!
The logs then show output for any failed tasks that originally had no_log set to true. All Ansible Automation Platform components (automation controller, automation hub, and Event-Driven Ansible) support the no_log setting.
Procedure Copy linkLink copied!
Inspect a OpenShift Container Platform resource Copy linkLink copied!
To inspect a OpenShift Container Platform resource, you must use the oc command to get a summary or the full YAML definition of the resource.
Procedure Copy linkLink copied!
Core Ansible Automation Platform resources Copy linkLink copied!
The following table lists and describes the core custom resources (CRs) that the Ansible Automation Platform Operator manages. Understanding these resources will help you with advanced troubleshooting and configuration.
| Resource name | Description |
|---|---|
| |
CR for deploying the entire Ansible Automation Platform. |
| |
CR for creating backups of the entire Ansible Automation Platform instance. |
| |
CR for restoring the entire Ansible Automation Platform instance from a backup. |
| |
CR defining the desired state of an automation controller instance. |
| |
CR for creating backups of automation controller data and configuration. |
| |
CR for restoring the automation controller from a backup. |
| |
CR for deploying an automation hub (Galaxy) instance. |
| |
CR for creating backups of automation hub data and configuration. |
| |
CR for restoring automation hub from a backup. |
| |
CR for deploying an Event-Driven Ansible (EDA) instance. |
| |
CR for creating backups of EDA data and configuration. |
| |
CR for restoring EDA from a backup. |
| |
CR for deploying an Red Hat Ansible Lightspeed instance. |
Standard Kubernetes resources Copy linkLink copied!
Standard Kubernetes resources are a core part of the OpenShift Container Platform. The following table describes the standard resources you can inspect to troubleshoot the state and configuration of an application.
| Resource name | Description |
|---|---|
| |
Smallest deployable unit containing one or more containers running the application workloads. |
| |
Manages pod configuration and scaling. |
| |
A PersistentVolumeClaim (PVC) is a request for storage resources, used for persistent data storage. |
| |
Exposes pods as network services with stable IP addresses and DNS names within the cluster. |
| |
Manages external HTTP and HTTPS access to services within the cluster. |
| |
An OpenShift-specific resource for exposing services externally (similar to an ingress). |
| |
Stores sensitive data like passwords, tokens, and certificates. |
| |
Provides identity for processes running in pods to access permissions to other Kubernetes resources. |
Collect diagnostic data Copy linkLink copied!
Use the oc adm must-gather command to collect comprehensive diagnostic data about your cluster and the Ansible Automation Platform components. This data is essential when contacting Red Hat Support.