Host profile functionality no longer working when there are too much dvportgroups
search cancel

Host profile functionality no longer working when there are too much dvportgroups

book

Article ID: 338439

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:

Host profile functionality no longer working "XML document element count exceeds configured maximum".


Environment

VMware vSphere ESXi 7.0.3
VMware vSphere ESXi 8.0.0

Cause

There are too many dvportgroups on VC. That makes API parameter have more than 500000 xml element, that exceed the limit of vpxa.

Resolution

To resolve the issue, increase the max xml element limitation of vpxa.


Workaround:

To workaround the issue, please follow the below mentioned steps:

  1. Create a new py file for example, increaseElements.py with following content on ESX:

import libconfigstorepy as store
cs = store.ConfigStore.GetStore()
csoId = store.ConfigStoreObjectId("vpxa", "services", "esx")
vpxaCso = store.ConfigStoreObject(csoId)
vmomiCso = vpxaCso.CreateSubObject(store.SubObjectId("vmomi"))
soapCso = vmomiCso.CreateSubObject(store.SubObjectId("soap_request"))
soapCso.SetValue("max_elements", 1000000)
cs.Update(vpxaCso)

  1. Run the script.

python increaseElements.py

  1. Restart vpxa.