Host profile functionality no longer working "XML document element count exceeds configured maximum".
There are too many dvportgroups on VC. That makes API parameter have more than 500000 xml element, that exceed the limit of vpxa.
To resolve the issue, increase the max xml element limitation of vpxa.
To workaround the issue, please follow the below mentioned steps:
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)
Run the script.
python increaseElements.py
Restart vpxa.