Troubleshoot automation dashboard configuration and deployment
Use this reference when diagnosing automation dashboard issues including Gateway integration failures, RBAC access problems, UI feature limitations, and data collection errors.
Issue 1: Dashboard returns 403 Forbidden errors (Gateway integration failure) Copy linkLink copied!
Symptom
- Dashboard navigation item appears in Ansible Automation Platform unified UI
- Clicking dashboard link shows authentication errors
- Browser console shows:
HTTP 403 Forbidden: {"detail":"Authentication credentials were not provided."} - Metrics service API endpoints return "no healthy upstream" errors
After enabling FEATURE_DASHBOARD_COLLECTION_ENABLED: true on the Ansible Automation Platform CR (operator deployment), the Gateway did NOT automatically register the metrics service. The dashboard UI navigation appeared, but accessing it resulted in 403 Forbidden errors because:
- No metrics service type/cluster/node/service route created in Gateway
- JWT authentication chain (
ANSIBLE_BASE_JWT_KEY, resource server URL,service_id) not configured between Gateway and metrics service - MetricsService operator did not set
METRICS_SERVICE_FEATURE_DASHBOARD_COLLECTION_ENABLEDenv var from the CR
Root cause
Gateway has not registered metrics service for routing and authentication. The dashboard feature flag enables dashboard collection in metrics service, but does not automatically configure Gateway to route dashboard API calls.
Diagnostic commands
-
Check if metrics service is running:
# Operator deployment kubectl get pods -n ansible-automation-platform | grep metrics # Containerized deployment podman ps | grep automation-metricsExpected: 3 metrics service pods/containers running (web, tasks, scheduler)
-
Check metrics service logs for JWT authentication errors:
# Operator deployment kubectl logs -n ansible-automation-platform <metrics-web-pod> | grep -i "ANSIBLE_BASE_JWT_KEY" # Containerized deployment podman logs automation-metrics-web | grep -i "ANSIBLE_BASE_JWT_KEY"Error indicating Gateway not configured:
ansible_base.jwt_consumer.common.cert Failed to get the setting ANSIBLE_BASE_JWT_KEY -
Check Gateway logs for routing errors:
# Operator deployment kubectl logs -n ansible-automation-platform <gateway-pod> | grep -i metrics # Look for errors accessing /api/metrics/v1/dashboard_reports/Error indicating no upstream registered:
no healthy upstream -
Check metrics service environment variables:
# Operator deployment kubectl exec <metrics-web-pod> -n ansible-automation-platform -- env | grep -A2 DASHBOARD_COLLECTION # Containerized deployment cat /etc/ansible-automation-platform/metrics_service/settings.yaml | grep DASHBOARDExpected output:
# Operator deployment METRICS_SERVICE_FEATURE_DASHBOARD_COLLECTION_ENABLED=true # Containerized deployment FEATURE_ENABLED: {'DASHBOARD_COLLECTION': True}If missing or set to
false:The MetricsService operator did not properly propagate the
FEATURE_DASHBOARD_COLLECTION_ENABLED: truesetting from the Ansible Automation Platform CR to the metrics service container environment.This indicates:
- Dashboard collection does not run (even if Gateway is configured)
- CR setting not applied correctly
- Operator may need restart or CR re-application
Solution
For operator deployments (primary affected scenario):
-
Verify operator version supports Gateway integration:
kubectl get pods -n ansible-automation-platform | grep aap-operatorEnsure operator version is
aap-operator.v2.7.0-0.1776445599or later. -
Check Ansible Automation Platform CR feature flag:
kubectl get AnsibleAutomationPlatform aap -n aap -o yaml | grep -A5 feature_flagsVerify:
feature_flags: FEATURE_DASHBOARD_COLLECTION_ENABLED: true -
Verify Gateway pod restarted after feature flag enabled:
kubectl get pods -n ansible-automation-platform | grep gatewayCheck pod AGE. This should restart after the CR update.
-
If Gateway registration still failing:
Contact Red Hat Support for manual Gateway registration procedure. Manual registration requires:
- Creating service type, cluster, node, and service entries in Gateway database
- Configuring JWT authentication chain
- Setting
METRICS_SERVICE_RESOURCE_SERVER__URLenvironment variable in metrics service pod
For containerized deployments:
Gateway registration should be automatic. If you encounter this issue:
- Verify Gateway and metrics service containers are running
- Check Gateway configuration includes metrics service routes
- Contact Red Hat Support - this issue primarily affects operator deployments
Verification after fix
- Access dashboard UI: Navigate to Ansible Automation Platform UI
Automation dashboard - Verify no authentication errors: Dashboard should load without 403 Forbidden errors
-
Check metrics service API accessible:
# From a machine with access to AAP curl -k -u admin:<password> https://<AAP-FQDN>/api/metrics/v1/dashboard_reports/collection_status/Expected: JSON response (not 403 error)
Issue 2: System Auditor cannot access dashboard (RBAC broken) Copy linkLink copied!
Symptom
- System Auditor role users cannot see dashboard navigation item in Ansible Automation Platform UI
- Attempting to access dashboard URL directly shows access denied or 404
- Only Administrator role users can access dashboard
Expected behavior: System Auditor should have read-only access to dashboard
Actual behavior: Dashboard completely unavailable to System Auditor role
Root cause
Dashboard RBAC permissions not correctly registered for System Auditor role. The dashboard permission model assumes both Administrator (read/write) and System Auditor (read-only) access, but implementation only grants access to Administrators.
Diagnostic commands
-
Verify user role:
# Check user's role assignments in AAP # Navigate to: Access Users [username] RolesConfirm user has System Auditor role.
-
Check dashboard visibility in UI:
Log in as System Auditor user and check if "Automation dashboard" appears in navigation menu.
Solution
Technology Preview Limitation:
If System Auditor access is not working in your Ansible Automation Platform 2.7 build:
-
Grant Administrator role temporarily:
For users who need dashboard access during Technology Preview period:
- Navigate to
- Add Administrator role
Warning This grants full admin access, not just dashboard read-only
-
Use dedicated dashboard admin account:
Create a separate admin account specifically for dashboard access:
- Username:
dashboard-viewer - Role: Administrator
- Purpose: Dashboard viewing only
- Username:
Verification after fix
- Log in as System Auditor: Use account with only System Auditor role (no Administrator role)
- Verify dashboard visible: "Automation dashboard" navigation item appears in Ansible Automation Platform UI
-
Verify read-only access:
- Can view all dashboard data
- Cannot modify cost settings
- Cannot create/modify/delete saved reports (filter sets)
Automation dashboard access (Technology Preview):
- Administrator: Full read/write access
- System Auditor: Not available in Technology Preview. System Auditor access is planned for a future release. Workaround: Grant Administrator role to users requiring dashboard access.
Issue 3: Date range and currency selectors not working (UI features missing) Copy linkLink copied!
Symptom
- Cannot select custom date ranges in dashboard UI
- Date range selector shows only predefined options (or is missing entirely)
- Cannot change currency in dashboard settings
- All cost values display in USD only
Root cause
Custom date range selection and currency selector features are not implemented in Ansible Automation Platform 2.7 Technology Preview dashboard UI.
Impact
Technology Preview Limitations:
- Date filtering: Users can only use predefined date range options (Last 7 days, Last 30 days, Last 90 days, etc.)
- Currency: All cost values display in USD. Multi-currency support not available.
Solution
Workaround:
None available for Technology Preview. These features are planned for future releases.
Expected in GA:
- Custom date range selection (start date / end date picker)
- Currency dropdown selector (USD, EUR, GBP, etc.)
- Currency conversion or re-labeling of cost values
Date range filtering (Technology Preview limitation):
In Ansible Automation Platform 2.7 Technology Preview, dashboard supports the following predefined date ranges:
- Last 7 days
- Last 30 days
- Last 90 days
Custom date range selection (choosing specific start and end dates) is not available in Technology Preview and is planned for a future release.
Cost currency (Technology Preview limitation):
In Ansible Automation Platform 2.7 Technology Preview, all dashboard cost values display in USD ($). Currency selection and multi-currency support are planned for a future release.
Issue 4: Duplicate saved report names allowed Copy linkLink copied!
Symptom
- Creating a saved report (filter set) with an existing name succeeds
- No warning or error message displayed
- No overwrite confirmation dialog
- Results in two different reports with identical names in the list
Root cause
Dashboard does not validate saved report names for uniqueness. The system allows multiple reports with the same name, relying on internal IDs to differentiate them.
Impact
User confusion when multiple reports have the same name. Users must open each report to see its filter configuration to determine which is which.
Solution
Workaround:
Use unique, descriptive names for all saved reports. Include identifying information in the name.
Best practices:
- Good: "Q1-2026-Production-Org", "Weekly-Template-Usage", "EMEA-Region-ROI"
- Avoid: "Test Report", "My Report", "Dashboard" (too generic, likely to duplicate)
Recommended naming convention:
[Purpose]-[Timeframe/Scope]-[Date Created]
Examples:
- Compliance-Audit-Last-90-Days-2026-04-27
- Executive-Summary-Q1-2026
- Development-Org-Weekly-Usage
Managing duplicate names
If you have multiple reports with the same name:
-
Identify each report:
- Open each report with duplicate name
- Note the filter configuration
- Determine purpose/owner
-
Rename to unique names:
- Update each report with descriptive unique name
- Save changes
-
Delete unwanted duplicates:
- Remove any obsolete or test reports
Verification
After fix (future release):
- Attempting to save report with existing name triggers warning
- User can choose to overwrite or rename
- System prevents unintentional duplicates
General dashboard troubleshooting Copy linkLink copied!
Dashboard shows no data
Possible causes:
-
Collection not running:
- Verify metrics service containers running
- Check logs for collection activity
-
No historical data in Controller:
- New Ansible Automation Platform installation with no jobs run yet
- Controller database recently purged
- Solution: Run some jobs and wait for next collection cycle (6 hours)
-
Gateway integration broken:
See Issue 1: Dashboard returns 403 Forbidden errors (Gateway integration failure)
-
RBAC access denied:
See Issue 2: System Auditor cannot access dashboard (RBAC broken)
Diagnostic steps:
- Verify data exists in database
- Check metrics service logs for errors
- Verify user has appropriate role
- Test API access directly (bypass UI)
Dashboard performance is slow
Possible causes:
-
Large dataset:
- 90 days of data with high job volume
- Complex filter queries
-
Database performance:
- Metrics service DB colocated with Controller DB (Tech Preview)
- Resource constraints
-
Network latency:
- Slow connection to Ansible Automation Platform
Solutions:
-
Reduce date range:
- Use shorter predefined ranges (Last 7 days vs Last 90 days)
-
Add filters:
- Filter by specific organization, project, or template
- Reduces dataset size
-
Check database resources:
- Monitor CPU/memory usage during dashboard queries
- Consider separate database for metrics service in GA
Dashboard UI not appearing in navigation
Possible causes:
-
Feature not enabled:
- Dashboard collection flag not set
- Metrics service not installed
-
User role insufficient:
- User lacks Administrator or System Auditor role
-
UI cache:
- Browser cache showing old navigation
Solutions:
-
Verify enablement:
- Check settings.yaml for
FEATURE_DASHBOARD_COLLECTION_ENABLED: true
- Check settings.yaml for
-
Verify user role:
- Ensure user has Administrator role
- NOTE: System Auditor is not working
-
Clear browser cache:
- Hard refresh (Ctrl+F5) or clear cache completely
Getting help Copy linkLink copied!
If dashboard issues persist:
-
Collect diagnostic information:
- Ansible Automation Platform version and build number
- Deployment type (operator/containerized)
- Metrics service logs (last 100 lines)
- Gateway logs (last 100 lines)
- Dashboard configuration (inventory file or CR)
- Specific error messages
-
Contact Red Hat Support:
- Provide diagnostic information
- Reference relevant Jira ticket if applicable
- Specify Technology Preview status