Quantcast
Channel: VMware Communities : Unanswered Discussions - Virtual Disk Development Kit
Viewing all articles
Browse latest Browse all 872

The provided XML has too many elements: 10,041. The maximum is 2,048.

$
0
0

Hello,

 

I'm using the following version of vmware products :

- vCloud Director 5.1.1.868405

- vCloudApi SDK PHP 5.1.0-819742

 

We are working on the benchmarks/performances of the vmware vcloud director edgeGateway. We have tested different network flow on the edge network. In a first test part we tested that without Firewall rules and 8 or 9 NAT rules. We've got interresting values. and now we want to test it with different amount of firewall rules. So to do that I created a php script to generate randomly a lot of firewall rules. So my first attempt was to generate 1000 fw rules. and I've got the following message :

 

 

PUT https://vcd-demo.ecocenter.fr/api/admin/edgeGateway/30e126f7-2e05-4a73-a925-8ea35747f868 failed, error code: 400, error: <?xml version="1.0" encoding="UTF-8"?>
<Error xmlns="http://www.vmware.com/vcloud/v1.5" stackTrace="com.vmware.vcloud.api.rest.handlers.exceptions.BadRequestRestApiException: The provided XML has too many elements: 10,041. The maximum is 2,048.
at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.getBadRequestApiException(ErrorHandler.java:90)
at com.vmware.vcloud.api.rest.common.handlers.ErrorHandler.errorBadRequest(ErrorHandler.java:47)
at sun.reflect.GeneratedMethodAccessor14798.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:173)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:89)
at org.apache.cxf. in /home/yconan/e2cEngine/branch/5.1-sdk-5.1-wip/lib/library/VMware/VCloud-5.1.0-819742/ServiceAbstract.php on line 215

 

after some tests. I saw that the maximum of firewal rules that we can set with the API is 200. each rules need 10 xml element to describe it.

 

Is there a way to change that limit for the API or to add new rules without delete the former created ? It seems that the way the API works you have to get all former rules, add to the xml the new rules and re-send the former and the new rules to update the firewall rules configuration.

 

Any ideas ?

 

regards,

 

Yann CONAN


Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>