Saving in additional cost driver fails after saving couple of entries.
Aria Operations 8.18.x
VCF Operations 9.0
The request from UI fails due to payload size limits
Workaround to create additional cost drivers through Suite-api
Use suite-api to create additional cost drivers. There are no payload size limits through the suite-api route.
Use this API with POST /internal/costdrivers/additional for additional cost driver creation.
To retrieve the existing additional cost configs use GET /internal/costdrivers/additional
NOTE: When using the suite-api POST route to create new additional cost configs, all the existing configs have to be provided in the payload along with the new config to be added. This should be done to prevent overwriting of the older configs with the new config.
Workaround to create additional cost drivers through UI
/usr/lib/vmware-vcops/tomcat-web-app/webapps/ui/WEB-INF/classes/struts.xml in edit mode./usr/lib/vmware-vcops/tomcat-web-app/webapps/ui/WEB-INF/classes/struts.xmlstruts.multipart.maxStringLength value to preferably double the existing size.<constant name="struts.multipart.maxStringLength" value="16384"/> to <constant name="struts.multipart.maxStringLength" value="32678"/> in all the nodessystemctl restart vmware-vcops-web.service