Symptoms:
- VMware Aria Automation (Formerly VMware vRealize Automation) fails to remove machines from the Ansible inventory during disposal of deployments.
- Destroying machines fails due to a parsing failure. Errors may include:
Unable to parse inventory to obtain existing groups JSON for host <host FQDN or IP>.
Ensure inventory is valid and host exists.. Refer to logs located at: var/tmp/vmware/provider/user_defined_script/<Deployment ID> on Ansible Control Machine for more details.
- When reviewing the Ansible logs you may see the error:
CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
- There is nothing returned when executing the following on the Ansible host:
which python
- To confirm issue, use the following command to see if you receive the Cryptography deprecation warning (replacing host and inventory Path with your ansible host and full path to inventory file):
ANSIBLE_STDOUT_CALLBACK=json ANSIBLE_LOAD_CALLBACK_PLUGINS=true ansible {host} -m debug -a var=group_names -i {inventoryPath}