-
Notifications
You must be signed in to change notification settings - Fork 768
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
Sometimes the API will return no data for specific properties even though it should #20
Comments
Dave, any chance I might get you to write a sample script and post it on gist? It would help me reproduce the issue and nail down what's going wrong. |
Yes I would be happy to do that for you! Give me until tomorrow. Best, Dave From: Shawn Hartsock [mailto:[email protected]] Dave, any chance I might get you to write a sample script and post it on gist? It would help me reproduce the issue and nail down what's going wrong. — |
No rush. I have quite a bit of behind the scenes work to do on this project yet before we can ramp up public development from here. |
Could be related: #24 |
I wrote a samples program to retrieve all of the MAC addresses for all VM's in VC. What I am seeing is the program sometime fails to return MAC addresses for certain VM's regardless of the power state. #!/usr/bin/python import pyVmomi def PrintVmInfo(vm, depth=1): if this is a group it will have children. if it does, recurse into them and then returnif hasattr(vm, 'childEntity'): summary = vm.summary if guest != None: si = SmartConnect(host='1.1.1.1',user='yyyy',pwd='xxxxxx',port=443) Disconnect(si) Code: https://www.dropbox.com/s/amh8r2vak234mlq/pyvmoni-test.py |
Specifically addresses test coverage of the virtual machine guest data object. In particular the ability to retrieve the macAddress attribute. addresses vmware#20
As far as I can tell, this isn't a problem in the pyVmomi library. I've added a test to exercise that code path to demonstrate that the library correctly retrieves mac addresses sent by vCenter. |
Hello! |
I wrote a python program to query the vm.guest.net property so I could get all of the MAC addresses for all VM's. Most of the time, the program will return the correct results, however, sometimes the program will return nothing for vm.guest.net, yet the VM has not changed in any way. If I restart vCenter, the program will again return all of the correct data.
I have seen this same behavior with other properties but vm.guest.net seems to be the most prone to failure.
To test this, you can write a program to record all of the MAC's for each VM in the infrastructure and you will find over the course of a month one or more of those calls will return nothing.
Thanks, I hope this was clear and you can fix the bug.
Best,
Dave
The text was updated successfully, but these errors were encountered: