Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add manual filtering of potential inventory searches #249

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

JacobCallahan
Copy link
Member

We're currently seeing an issue with awx where it's returning multiple possible matches based on substring matches. This is creating false ambiguous matches. This change adds a manual filter to the search results to ensure that we only return exact matches, or at least do a bit better.

We're currently seeing an issue with awx where it's returning multiple
possible matches based on substring matches. This is creating false
ambiguous matches. This change adds a manual filter to the search
results to ensure that we only return exact matches, or at least do a
bit better.
@JacobCallahan JacobCallahan added the enhancement New feature or request label Sep 27, 2023
Copy link
Contributor

@bherrin3 bherrin3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current 0.4.0 Broker

(broker) ➜  broker git:(master) ✗ broker checkout --workflow deploy-rhel --tower_inventory osp-rhos01-satellite-subset-inventory-name
[INFO 230928 10:48:49] Using provider AnsibleTower to checkout
[INFO 230928 10:48:49] Using token authentication
[ERROR 230928 10:48:50] ProviderError: AnsibleTower encountered the following error: Ambigious AnsibleTower inventory name osp-rhos01-satellite-subset-inventory-name
[ERROR 230928 10:48:50] BrokerError: Error during checkout from Broker(host_classes={'host': <class 'broker.hosts.Host'>})
(broker) ➜  broker git:(master) ✗
(broker) ➜  broker git:(master) ✗ pip freeze
awxkit==21.7.0
broker==0.4.0
certifi==2022.9.24
charset-normalizer==2.1.1
click==8.1.3
dynaconf==3.1.11
idna==3.4
logzero==1.7.0
PyYAML==6.0
requests==2.28.1
ssh2-python==1.0.0
urllib3==1.26.12

Current PR broker, same broker_settings.yml file

(broker-249) ➜  broker git:(master) broker checkout --workflow deploy-rhel --tower_inventory osp-rhos01-satellite-subset-inventory-name
[INFO 230928 10:47:56] Using provider AnsibleTower to checkout
[INFO 230928 10:47:56] Using token authentication
[INFO 230928 10:47:57] Using tower inventory: osp-rhos01-satellite-subset-inventory-name
[INFO 230928 10:47:58] Waiting for job:
    API: https://ip-10-0-167-235.rhos-01.prod.psi.rdu2.redhat.com/api/v2/workflow_jobs/28/
    UI: https://ip-10-0-167-235.rhos-01.prod.psi.rdu2.redhat.com/#/jobs/workflow/28/output
    ...
(broker-249) ➜  broker git:(master) pip freeze
awxkit==23.2.0
broker @ file:///Users/bherring/git/review/broker_update/broker
certifi==2023.7.22
charset-normalizer==3.2.0
click==8.1.7
dynaconf==3.2.3
idna==3.4
logzero==1.7.0
PyYAML==6.0.1
requests==2.31.0
ssh2-python==1.0.0
urllib3==2.0.5

@JacobCallahan JacobCallahan merged commit a8a9da6 into SatelliteQE:master Sep 28, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants