-
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 speedup module #2278
base: main
Are you sure you want to change the base?
vmware_guest speedup module #2278
Conversation
Build succeeded. ✔️ ansible-tox-linters SUCCESS in 4m 48s |
also curios why Clone task task = vm_obj.Clone(folder=destfolder, name=self.params['name'], spec=clonespec) dont have |
TODO: also add find_network_by_name function to if nic.device.deviceInfo.summary != network_name:
if 'DVSwitch' not in nic.device.deviceInfo.summary:
nic.device.deviceInfo.summary = network_name
nic_change_detected = True
else: |
Build failed. ✔️ ansible-tox-linters SUCCESS in 4m 38s |
Recheck |
Build succeeded. ✔️ ansible-tox-linters SUCCESS in 4m 26s |
I'm sorry, I didn't find much time to work on this collection during the last weeks. I hope I'm able to review this PR soon. |
SUMMARY
Speedup network search while creating VM using vmware_guest.
ISSUE TYPE
COMPONENT NAME
vmware_guest.py
ADDITIONAL INFORMATION
vmware_guest network search is slow. It use find_obj() from vmware.py that loop through all objects trying to find correct. I have a lag for 5 mins trying. PyVmomi.network_exists_by_name works much faster.