You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
COMPONENT NAME
Inventory module
ANSIBLE VERSION
COLLECTION VERSION
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
The text was updated successfully, but these errors were encountered: