vmware / vmware/pyvmomi

vcenter 6.5 / pyVmomi.VmomiSupport.UnknownWsdlTypeError: 'HostSubSpecificationUpdateEvent'

Open
#746 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

Hello,

When I run event_collector.ReadNextEvents(event_page_size), I got error:
pyVmomi.VmomiSupport.UnknownWsdlTypeError: 'HostSubSpecificationUpdateEvent'

Should declare this unknown type somewhere in the module pyVmomi ?

My pyVmomi version is at:

pyvmomi 6.7.0.2018.9

And the vCenter data collection level is set to level 3:
https://pubs.vmware.com/vsphere-50/topic/com.vmware.vsphere.monitoring.doc_50/GUID-25800DE4-68E5-41CC-82D9-8811E27924BC.html

traceback:

Traceback (most recent call last):
  File "D:\app\pyenvs\virtu_project\lib\site-packages\pyVmomi\SoapAdapter.py", line 642, in LookupWsdlType
    return GetWsdlType(ns, name)
  File "D:\app\pyenvs\virtu_project\lib\site-packages\pyVmomi\VmomiSupport.py", line 1032, in GetWsdlType
    typ = _LoadVmodlType(_wsdlDefMap[(ns, name)][0])
KeyError: ('urn:vim25', 'HostSubSpecificationUpdateEvent')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\app\pyenvs\virtu_project\lib\site-packages\pyVmomi\SoapAdapter.py", line 509, in ParseData
    parser.ParseFile(data)
  File "c:\_work\4\s\modules\pyexpat.c", line 412, in StartElement
  File "D:\app\pyenvs\virtu_project\lib\site-packages\pyVmomi\SoapAdapter.py", line 687, in StartElementHandler
    dynType = self.LookupWsdlType(ns, name, allowManagedObjectReference=True)
  File "D:\app\pyenvs\virtu_project\lib\site-packages\pyVmomi\SoapAdapter.py", line 652, in LookupWsdlType
    return GuessWsdlType(name)
  File "D:\app\pyenvs\virtu_project\lib\site-packages\pyVmomi\VmomiSupport.py", line 1066, in GuessWsdlType
    raise UnknownWsdlTypeError(name)
pyVmomi.VmomiSupport.UnknownWsdlTypeError: 'HostSubSpecificationUpdateEvent'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the LookupWsdlType and GetWsdlType paths in pyVmomi/SoapAdapter.py and pyVmomi/VmomiSupport.py, then reproduce the failure through event_collector.ReadNextEvents(event_page_size). Done means vCenter 6.5 events containing HostSubSpecificationUpdateEvent are parsed without UnknownWsdlTypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.