vmware_guest create from template very slow to start

Hi,

We are using the vmware_guest module to provisioning servers and have noticed its takes up to 1-2 minutes before the task show up and is executed in VMWare.
We have tried it both from a standalone Ansible host and from Ansible Tower with the same result.

We have not seen similar issues with other VMWare modules. Its fast when we using for example vmware_guest_disk/vmware_guest_network adding more disks/networks.

Have anyone else had similar issues with this module and know where to start looking?

Could be DNS issue causing lookup timeouts or something

vmware_guest waits for tasks to get triggered and uses Exponential backoff So it does not get successful status it waits for next request.

You can check the code here - https://github.com/ansible-collections/community.vmware/blob/44ac140e30ff0212470b47a29b105d0cdede4df4/plugins/module_utils/vmware.py#L54

I can imagine one improvement as configurable max_backoff time.

So if our task is hitting some kind of internal VMWare que it can have to wait a minimum of 64 seconds.

lördag 13 februari 2021 kl. 04:14:27 UTC+1 skrev Abhijeet Kasurde: