ansible/awx-operator

Inflated Total Host Count on Dashboard when Using Constructed Inventory with Existing Inventories

Open

#1,459 opened on Jun 22, 2023

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Jinja (712 forks)auto 404
communitygood first issuehelp wanted

Repository metrics

Stars
 (1,488 stars)
PR merge metrics
 (PR metrics pending)

Description

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that the AWX Operator is open source software provided for free and that I might not receive a timely response.

Bug Summary

Issue Description: When creating a constructed inventory in AWX and selecting existing inventories, the total number of hosts displayed on the AWX dashboard increases. However, the actual number of unique hosts remains the same. This discrepancy in host count leads to misleading information on the dashboard.

AWX Operator version

2.2.1

AWX version

2.2.1

Kubernetes platform

kubernetes

Kubernetes/Platform version

v1.27.3

Modifications

no

Steps to reproduce

Steps to Reproduce:

Create a constructed inventory named "Constructed Inventory". In the "Constructed Inventory" configuration, select multiple existing inventories (e.g., "Inventory A", "Inventory B", and "Inventory C"). Save the changes and navigate to the AWX dashboard. Observe the total host count displayed on the dashboard.

Expected results

Expected Behavior: The total host count on the AWX dashboard should accurately reflect the number of unique hosts present in the constructed inventory, considering any duplication or overlap in the selected inventories.

Actual results

Actual Behavior: The total host count on the AWX dashboard increases when a constructed inventory is created and existing inventories are selected. However, the actual number of unique hosts remains unchanged, leading to an inflated host count on the dashboard.

Additional information

Additional Information: AWX Operator Version: 2.2.1 Platform/Environment: k8s 1.27

Operator Logs

No response

Contributor guide