Ansible Automation Platform Cluster Information missing in Automation Analytics console

Solution Verified - Updated -

Environment

  • Ansible Automation Platform 2.x
  • Automation Analytics

Issue

  • One of the clusters which were reported earlier in the Automation Analytics console stopped reporting on the addition of a new cluster.

Resolution

  • Check the endpoints https://controller-name/api/v2/settings/all for all clusters and make sure the base_url and INSTALL_UUID are unique for all.
  • If INSTALL_UUID is the same for two clusters then follow the next step to change it on one of the clusters.
  • We can change the INSTALL_UUID using the following steps on one of the clusters (wherever you want to change install_UUID)
  1. Run the command uuidgen to generate a new uuid.

    # uuidgen
    
  2. Use this new UUID to update the DB using the following command on one of the nodes of one cluster.

    # echo "update conf_setting set value='\"<NEW_UUID>\"' where value='\"OLD_INSTALL_UUID\"';" | awx-manage dbshell
    

    NOTE: The UUID must be between double quotes.

  3. We can double-check the UUID using the following select query

    # echo "select * from conf_setting where key='INSTALL_UUID'" | awx-manage dbshell
    

Root Cause

  • The "INSTALL_UUID" is a unique cluster identifier (but it's the same for all the nodes of the specific cluster) found the same on two separately installed AAP clusters.

Diagnostic Steps

  • Check the Automation Analytics settings on all clusters using the API endpoint and notice the similar INSTALL_UUID

    https://<controller-1>/api/v2/settings/all
    
    Setting Detail
    GET /api/v2/settings/all/
    HTTP 200 OK
    Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
    Content-Type: application/json
    Vary: Accept
    X-API-Node: 10.15.30.144
    X-API-Product-Name: Red Hat Ansible Automation Platform
    X-API-Product-Version: 4.1.2
    X-API-Time: 0.177
    
    {
      "ACTIVITY_STREAM_ENABLED": true,
      "ACTIVITY_STREAM_ENABLED_FOR_INVENTORY_SYNC": true,
      "ORG_ADMINS_CAN_SEE_ALL_USERS": true,
      "MANAGE_ORGANIZATION_AUTH": true,
      "TOWER_URL_BASE": "<base-url-1>",
      "REMOTE_HOST_HEADERS": [
          "REMOTE_ADDR",
          "REMOTE_HOST"
      ],
      "PROXY_IP_ALLOWED_LIST": [],
      "LICENSE": {
          "instance_count": 999999,
          "license_date": "1698811199",
          "license_type": "enterprise",
          "subscription_name": "Red Hat Ansible Automation Platform, Premium (One Year, Enterprise Program)",
          "sku": "ESA0016",
          "support_level": null,
          "product_name": "Red Hat Ansible Automation Platform, Premium (One Year, Enterprise Program)",
          "valid_key": true,
          "pool_id": "2c944090848d39d401849bee4a39085b",
          "satellite": false
    },
      "REDHAT_USERNAME": "l065927",
      "REDHAT_PASSWORD": "$encrypted$",
      "SUBSCRIPTIONS_USERNAME": "",
      "SUBSCRIPTIONS_PASSWORD": "",
      "AUTOMATION_ANALYTICS_URL": "https://cloud.redhat.com/api/ingress/v1/upload",
      "INSTALL_UUID": "91ead8c7-04c3-4aeb-baff-7d34c2c7cb54",
    
    
    https://<controller-2>/api/v2/settings/all
    
    Setting Detail
    GET /api/v2/settings/all/
    HTTP 200 OK
    Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
    Content-Type: application/json
    Vary: Accept
    X-API-Node: 10.15.30.144
    X-API-Product-Name: Red Hat Ansible Automation Platform
    X-API-Product-Version: 4.1.2
    X-API-Time: 0.177
    
    {
      "ACTIVITY_STREAM_ENABLED": true,
      "ACTIVITY_STREAM_ENABLED_FOR_INVENTORY_SYNC": true,
      "ORG_ADMINS_CAN_SEE_ALL_USERS": true,
      "MANAGE_ORGANIZATION_AUTH": true,
      "TOWER_URL_BASE": "<base-url-2>",
      "REMOTE_HOST_HEADERS": [
          "REMOTE_ADDR",
          "REMOTE_HOST"
      ],
      "PROXY_IP_ALLOWED_LIST": [],
      "LICENSE": {
          "instance_count": 999999,
          "license_date": "1698811199",
          "license_type": "enterprise",
          "subscription_name": "Red Hat Ansible Automation Platform, Premium (One Year, Enterprise Program)",
          "sku": "ESA0016",
          "support_level": null,
          "product_name": "Red Hat Ansible Automation Platform, Premium (One Year, Enterprise Program)",
          "valid_key": true,
          "pool_id": "2c944090848d39d401849bee4a39085b",
          "satellite": false
      },
      "REDHAT_USERNAME": "l065927",
      "REDHAT_PASSWORD": "$encrypted$",
      "SUBSCRIPTIONS_USERNAME": "",
      "SUBSCRIPTIONS_PASSWORD": "",
      "AUTOMATION_ANALYTICS_URL": "https://cloud.redhat.com/api/ingress/v1/upload",
      "INSTALL_UUID": "91ead8c7-04c3-4aeb-baff-7d34c2c7cb54",
    
    

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