-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vmware_guest_network speedup module #2277
base: main
Are you sure you want to change the base?
vmware_guest_network speedup module #2277
Conversation
Build failed. ❌ ansible-tox-linters FAILURE in 4m 49s |
Build failed. ❌ ansible-tox-linters FAILURE in 4m 29s |
Build failed. ✔️ ansible-tox-linters SUCCESS in 4m 42s |
Build failed. ✔️ ansible-tox-linters SUCCESS in 4m 22s |
guess this failed because esxi MOB is disabled by default, gonna return part of old code to be compatible
|
Build succeeded. ✔️ ansible-tox-linters SUCCESS in 4m 38s |
SUMMARY
Speedup vmware_guest_network module. Current design loop though all networks and slow for big infrastructure with many networks (more then 100).
ISSUE TYPE
COMPONENT NAME
vmware_guest_network.py
ADDITIONAL INFORMATION
In my scenario current module spend 5 min to find network (this function run twice during module work and lead to 10min waiting)
This code loop through networks and check if its name equal to self.params['network_name']. Its slow. Its about 30s to check 100 networks.
vmware.py has perfect function for this. PyVmomi.find_network_by_name works perfect and find network immediately