AWX - Could not find imported module support code for community.vmware (AWX -13.0)

2,174 views
Skip to first unread message

Sagar Dharaskar

unread,
May 25, 2022, 8:12:48 AM5/25/22
to AWX Project

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.

 

Sagar Dharaskar

unread,
May 30, 2022, 2:04:26 AM5/30/22
to AWX Project
Hi Team,

Appreciate quick response on this issue.

AWX Project

unread,
Jun 1, 2022, 8:01:23 AM6/1/22
to AWX Project
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. 

- The AWX Team

Sagar Dharaskar

unread,
Jun 2, 2022, 11:39:00 AM6/2/22
to AWX Project
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.

Sagar Dharaskar

unread,
Jun 7, 2022, 3:01:11 AM6/7/22
to AWX Project
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.                         

Sagar Dharaskar

unread,
Jun 13, 2022, 8:43:37 AM6/13/22
to AWX Project
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 Project

unread,
Jun 14, 2022, 8:45:57 AM6/14/22
to AWX Project
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.

Sagar Dharaskar

unread,
Jun 15, 2022, 3:17:32 AM6/15/22
to AWX Project
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.

AWX Project

unread,
Jun 15, 2022, 4:13:59 PM6/15/22
to AWX Project
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

Sagar Dharaskar

unread,
Jun 17, 2022, 6:48:28 AM6/17/22
to AWX Project
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.
Reply all
Reply to author
Forward
0 new messages