the error "can not connect to vcenter " occured frequency!!!!
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- api, infrastructure
Research direction
Start with vm_service/tasks.py at schedule_update_vms_state and vm_service/vSphere_client.py at get_vm_resource and _connect_vcenter, then trace the pyVim SmartConnect call shown in the traceback. Reproduce the vCenter connection failure and determine why the empty DataObject exception occurs; done means the cause and a verified resolution are documented.
Written by the indexing model from the issue text.
Description
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/celery/app/trace.py", line 438, in protected_call
return self.run(*args, **kwargs)
File "/var/www/vm-service/trunk/vm_service/tasks.py", line 864, in schedule_update_vms_state
vm_resource = vc.get_vm_resource(vm.name)
File "/var/www/vm-service/trunk/vm_service/vSphere_client.py", line 1503, in get_vm_resource
content, error_code, error_msg = self._connect_vcenter()
File "/var/www/vm-service/trunk/vm_service/vSphere_client.py", line 65, in _connect_vcenter
port=self.port)
File "build/bdist.linux-x86_64/egg/pyVim/connect.py", line 590, in SmartConnect
File "build/bdist.linux-x86_64/egg/pyVim/connect.py", line 234, in Connect
File "build/bdist.linux-x86_64/egg/pyVim/connect.py", line 319, in __Login
File "build/bdist.linux-x86_64/egg/pyVim/connect.py", line 307, in __Login
File "build/bdist.linux-x86_64/egg/pyVmomi/VmomiSupport.py", line 566, in
File "build/bdist.linux-x86_64/egg/pyVmomi/VmomiSupport.py", line 375, in _InvokeMethod
File "build/bdist.linux-x86_64/egg/pyVmomi/SoapAdapter.py", line 1304, in InvokeMethod
Exception: (DataObject) {
}
^C
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 763
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vmware/pyvmomi
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100