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

issue with inventory module. List of Hosts being returned will be missing hosts at random #1515

Open
HichamMourad opened this issue Mar 26, 2024 · 1 comment
Labels
medium_priority Medium priority work in In trying to solve, or in working with contributors

Comments

@HichamMourad
Copy link

SUMMARY

To account for decommissioning in our cloud environment we were using the option overwrite in the inventory module. This allowed the inventory to remove hosts that were also removed from Azure when an inventory was run. Recently hosts have started to be removed during scans that are valid and running. Then during the next run the host is added back since it is a valid host. This means that jobs are may potentially miss hosts as they are dropping out regularly. The hosts that are dropped from the inventory are random. The list and numbers of hosts that are dropped change each time this occurs. We have switched to using only overwrite variables at this time to ensure tagging and groups are updated. However now when hosts are decommissioned, they must be manually removing from ansible. I have attached two job logs with the highest verbosity available showing an instance where two hosts get deleted and re-added.

ISSUE TYPE
  • Bug Report
    Bug
COMPONENT NAME

Inventory module

ANSIBLE VERSION
Ansible automation platform 2.4 on Azure (AAP on Azure managed application)
COLLECTION VERSION
2.2.0
CONFIGURATION

OS / ENVIRONMENT
STEPS TO REPRODUCE

Run the inventory sync with the OVERWRITE option selected. Latest release of the collection.

EXPECTED RESULTS

List of hosts being returned will be accurate, and not missing any hosts

ACTUAL RESULTS

List of Hosts being returned will be missing hosts at random


JOB 40964.
Job where active hosts are dropped during inventory scan - 74.059 DEBUG Deleted host "rcccaprd01", 74.093 DEBUG Deleted host "RCCQYSPRD01"
See attached text file.

Job 40986
Job where active hosts are readded after being removed in previous scheduled inventory scan - 11.989 DEBUG Host "RCCQYSPRD01" added 11.996 DEBUG Host "rcccaprd01" added
See attached text file.

inventory_update_40986.txt
inventory_update_40964.txt

@HichamMourad
Copy link
Author

corresponding issue on jira. https://issues.redhat.com/browse/AAP-22150

@Fred-sun Fred-sun added medium_priority Medium priority work in In trying to solve, or in working with contributors labels Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium_priority Medium priority work in In trying to solve, or in working with contributors
Projects
None yet
Development

No branches or pull requests

2 participants