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
It's possible that a NIC hasn't fully come up for a VM when querying with the inventory plugin. If that happens you will get the following traceback when trying to access properties.
[WARNING]: * Failed to parse /runner/inventory/azure_rm.yml with auto plugin:
'properties'
File "/usr/lib/python3.9/site-packages/ansible/inventory/manager.py", line 293, in parse_source
plugin.parse(self._inventory, self._loader, source, cache=cache)
File "/usr/lib/python3.9/site-packages/ansible/plugins/inventory/auto.py", line 59, in parse
plugin.parse(inventory, loader, path, cache=cache)
File "/usr/share/ansible/collections/ansible_collections/azure/azcollection/plugins/inventory/azure_rm.py", line 233, in parse
self._get_hosts()
File "/usr/share/ansible/collections/ansible_collections/azure/azcollection/plugins/inventory/azure_rm.py", line 326, in _get_hosts
if self._filter_exclude_host(inventory_hostname, h.hostvars):
File "/usr/share/ansible/collections/ansible_collections/azure/azcollection/plugins/inventory/azure_rm.py", line 605, in hostvars
for ipc in sorted(nic._nic_model['properties']['ipConfigurations'], key=lambda i: i['properties'].get('primary', False), reverse=True):
[WARNING]: Unable to parse /runner/inventory/azure_rm.yml as an inventory
source
ERROR! No inventory was parsed, please check your configuration and options.
SUMMARY
It's possible that a NIC hasn't fully come up for a VM when querying with the inventory plugin. If that happens you will get the following traceback when trying to access properties.
ISSUE TYPE
COMPONENT NAME
inventory/azure_rm.py
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
RHEL8.9
STEPS TO REPRODUCE
This is difficult to reproduce, It could be related to the number of VM's
The text was updated successfully, but these errors were encountered: