Private Automation Hub, how to correctly configure the connection to the controller
Environment
- Automation Hub operator 2.3
- Automation Hub operator 2.2
- Automation Hub operator 2.1
Issue
-
Need to configure the connection between the Ansible Automation controller and the Automation Hub installed on OpenShift.
No Controllers available If the Controller is not listed in the table, check settings.py
Resolution
-
Use "oc" command to patch the current Automation hub instance on OpenShift :
# oc patch automationhubs.automationhub.ansible.com/[Hub Instance Name] --type merge -p '{"spec": {"pulp_settings": {"CONNECTED_ANSIBLE_CONTROLLERS": ["https://Ansible Automation Controller FQDN"]}}}' -
Restart all Hub pods.
Root Cause
- Automation Hub has been installed separately and it is not configured to be connected to the Controller.
Diagnostic Steps
-
Try to "Use in Controller" any of the current Execution Environments on the Hub.
No Controllers available If the Controller is not listed in the table, check settings.py -
The list of controllers connected to the Hub is empty:
https://[Hub FQDN]/api/galaxy/_ui/v1/controllers/
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments