We are receiving a failed message while executing job template in AWX (13.0) to connect VMware Vcenters, as per our initial observation this failed error message is receiving when unable to find module “community.vmware.vmware_datacenter_info”.
Error message - fatal: [localhost]: FAILED! => {“msg”: “Could not find imported module support code for version. Looked for either LooseVersion.py or version.py”}
We gone through the below Ansible documentation for “community.vmware.vmware_datacenter_info module – Gather information about VMware vSphere Datacenters” and requirements “python >= 2.7 & PyVmomi” exist on Linux server.
https://docs.ansible.com/ansible/latest/collections/community/vmware/vmware_datacenter_info_module.html
We don’t find any other VMware data center info module other than community module.
https://docs.ansible.com/ansible/2.9/collections/community/vmware/vmware_datacenter_info_module.html
Below collections are mentioned in requirements.yml file.
collections:
-
community.general
-
community.vmware
However the same job template is working fine in other AWX environment (19.0) on same server linux server.
Appreciate any help on this issue.
Hi Team,
Appreciate quick response on this issue.
AWX uses a python virtual environment (which can be located in /var/lib/awx/venv/ansible inside the container) in version 13 and uses an execution environment (something like a container) in version 19.
Because of this, the version of the operating system and its packages installed may be irrelevant for the execution of Ansible under AWX.
If this collection is working in 19 and not in 13 you may need to look at the difference between the execution environment you are using in 19 and the virtual environment you are using in version 13.
Once you find those differences you may be able to add an additional virtual environment under version 13 to be able to use this collection from that version of AWX.
You may also want to look at the version of ansible you are using in version 13 and see if there is a different module available to perform this function (older versions of Ansible shipped with built in modules instead of collections).
If you need further support as to what may need to be in the environment in order to use this collection or what modules should be used I would reach out to the collection maintainers.
Hi Team,
Thank you for your response.
We are new to the AWX environment and we request your help to know built in modules for AWX 13 version VMware collections.
We also checked python version under AWX 13 version is 3.6 python.
Appreciate a quick response on this.
Hi Team,
Appreciate If you could reach out to collection maintainers for which modules should be used for AWX 13 version or what may need to be in the environment in order to use this collection/modules.
Looking forward for your response.
Hi Team,
Following up on this request.
Appreciate If you could reach out to collection maintainers for which modules should be used for AWX 13 version or what may need to be in the environment in order to use this collection/modules.
Looking forward for your response.
AWX 13 is extremely old and, like you stated, this works in version 19. AWX is a community project and we have limited time as a team to devote to support. With the age of AWX 13 we will not be able to further help you troubleshoot why the vmware modules are not working there. Our recommendation is that you upgrade from version 13 to a later version of AWX where we know the modules do work. However, if that is not possible and you need to get the modules running under AWX 13 you will need to reach out the maintainers of the vmware modules yourself to see if they are able to help you.
Thank you team for your response.
If you could assist us on how to reach out to collection maintainers for VMware modules, it would be great.
Awaiting your response on same.
please see the bottom of this page https://galaxy.ansible.com/community/vmware
"Communication
We have a dedicated Working Group for VMware. You can find other people interested in this in the #ansible-vmware channel on libera.chat IRC. For more information about communities, meetings and agendas see https://github.com/ansible/community/wiki/VMware."
Hope that is helpful
AWX Team
HI Team,
Thank you for your response.
We will reach out to VMware collection maintainers and will get back to you in case of any help needed.