Troubleshoot installation
Common installation issues include preflight failures, operator timeouts, database connectivity problems, and orphaned cluster resources.
Start by identifying the error message or symptom in your terminal output, then follow the matching procedure to resolve the issue.
Resolve preflight check failures
If aapctl preflight reports one or more failures, identify and address the specific failure before you install.
Procedure
Resolve CatalogSource not ready
If the install command times out while waiting for the operator, the CatalogSource might not be ready.
Procedure
Resolve operator installation timeout
If aapctl install reports a timeout or appears to hang, investigate the Subscription and Operator Lifecycle Manager (OLM) state.
About this task
A common symptom is the error timed out waiting for InstallPlan or context deadline exceeded.
Procedure
Resolve operator deployment failure
If the ClusterServiceVersion (CSV) reports a failed phase with a reason such as InstallCheckFailed, investigate the CSV and operator pod.
Procedure
Resolve orphaned CSV blocking reinstall
If the install fails with a resolution error about an unreferenced ClusterServiceVersion (CSV), delete the orphaned CSV and reinstall.
About this task
The aapctl CLI detects orphaned CSVs and deletes them automatically. If automatic recovery fails, delete the CSV manually.
Procedure
Resolve PostgreSQL connection failure
If the automation orchestrator operator reports a Degraded status condition and backend pods are in CrashLoopBackOff, the PostgreSQL connection might be misconfigured.
Procedure
Resolve CloudNativePG databases not ready
If aapctl status ao shows databases as "not applied," the CloudNativePG Cluster might not have any ready instances.
Procedure
Resolve install skipping existing resources
If re-running aapctl install does not update resources that already exist on the cluster, aapctl is skipping them by default.
Procedure
--force flag to overwrite existing resources:
$ aapctl install ao --forceAlternatively, uninstall first and then install again:
$ aapctl uninstall ao
$ aapctl install aoInterpret aapctl failure output
When an install command fails, aapctl automatically prints a resource status snapshot that shows which resources it deployed and which it did not.
aapctl is a Technology Preview feature. Technology Preview features provide early access to upcoming product innovations, enabling you to test functionality and provide feedback during the development process. Technology Preview features are not fully supported under Red Hat production SLA and may not be functionally complete. Red Hat does not recommend using Technology Preview features in production. For more information on the support scope for Technology Preview features, see Technology Preview Features Support Scope.
The following example shows a typical failure output:
[apply] Namespace "aap"
[apply] OperatorGroup "ansible-automation-platform-operator"
[apply] Subscription "ansible-automation-platform-operator"
[wait] waiting for AAP operator to be ready...
Resource status at time of failure:
Namespace/aap
OperatorGroup/ansible-automation-platform-operator (aap)
Subscription/ansible-automation-platform-operator (aap) no currentCSV
Error: timed out waiting for CRD to be registered: context deadline exceededThis diagnostic runs only in live mode, not with --dry-run.
Use aapctl status after installation to recheck resource readiness at any time.
Check resource status after a failed installation
After an install command fails, check which resources aapctl deployed and identify the root cause of the failure.