Hi Nirmal, Yes, I've build from the Git master branch. Also I get another error when deploying the LB cartridge:
org.xml.sax.SAXParseException; columnNumber: 0; cvc-complex-type.2.4.a: Invalid content was found starting with element 'deployment'. One of '{portMapping, iaasProvider, loadBalancer, property}' is expected. My LB definition: { "type": "mongolb", "provider": "lb", "host": "mongolb.mydemo.net", "displayName": "MongoDB Load Balancer", "description": "Mongo LB Cartridge", "version": "4.0", "defaultAutoscalingPolicy": "autoscale-policy-1", "multiTenant": "false", "portMapping": [ { "protocol": "mongodb", "port": "27017", "proxyPort": "27017" } ], "deployment": { }, "iaasProvider": [ { "type": "openstack", "imageId": "RegionOne/a32a76b8-7fda-49b4-94a7-7735f9de99ac", "maxInstanceLimit": "1", "property": [ { "name": "instanceType", "value": "RegionOne/42bebf74-40d0-4467-838c-1a94048dae91" }, { "name": "keyPair", "value": "stratos-s4" } ] } ], "loadBalancer": { }, "property": [ { "name": "load.balancer", "value": "true" } ] } On Mon, Apr 28, 2014 at 12:55 PM, Isuru Haththotuwa <isu...@apache.org> wrote: > I think this is due to recent changes done to validate JSON definitions. > This has been discussed in thread with subject [1]. AFAIU, the problem here > is that we have here is that we allow overriding on these parameters in > several places. > > 1. Validating Inputs to REST API > > > On Mon, Apr 28, 2014 at 12:48 PM, Nirmal Fernando <nirmal070...@gmail.com> > wrote: >> >> Very strange. Is this the trunk version? >> >> On Mon, Apr 28, 2014 at 3:16 AM, Akila Ravihansa Perera >> <raviha...@wso2.com> wrote: >> > Managed to fix it with the following json: >> > >> > { >> > "id": "P1", >> > "provider": "openstack", >> > "property": [ >> > { >> > "name": "region", >> > "value": "RegionOne" >> > }, >> > { >> > "name": "partitionMin", >> > "value": "1" >> > } >> > ], >> > "partitionMin": "1", >> > "partitionMax":"3" >> > } >> > >> > >> > But why have we made partitionMin and partitionMax properties >> > mandatory in partition deployment step? This doesn't comply with what >> > we have on the Wiki. >> > >> > https://cwiki.apache.org/confluence/display/STRATOS/4.0.0+Sample+Partition+Definition >> > >> > >> > >> > On Mon, Apr 28, 2014 at 12:31 PM, Akila Ravihansa Perera >> > <raviha...@wso2.com> wrote: >> >> Hi, >> >> >> >> I get this error when trying to deploy a new partition. >> >> >> >> org.xml.sax.SAXParseException; columnNumber: 0; >> >> cvc-complex-type.2.4.b: The content of element 'partition' is not >> >> complete. One of '{property, partitionMin}' is expected. >> >> >> >> My partition deployment json: >> >> >> >> { >> >> "id": "P1", >> >> "provider": "openstack", >> >> "property": [ >> >> { >> >> "name": "region", >> >> "value": "RegionOne" >> >> } >> >> ] >> >> } >> >> >> >> I'm on OpenStack Havana and end point URLs are all set in >> >> cloud-controller.xml. This happened when I tried installing Stratos >> >> today using a clean maven build. Anyone else having this problem? >> >> >> >> Thanks. >> >> >> >> -- >> >> Akila Ravihansa Perera >> >> Software Engineer >> >> WSO2 Inc. >> >> http://wso2.com >> >> >> >> Phone: +94 77 64 154 38 >> >> Blog: http://ravihansa3000.blogspot.com >> > >> > >> > >> > -- >> > Akila Ravihansa Perera >> > Software Engineer >> > WSO2 Inc. >> > http://wso2.com >> > >> > Phone: +94 77 64 154 38 >> > Blog: http://ravihansa3000.blogspot.com >> >> >> >> -- >> Best Regards, >> Nirmal >> >> Nirmal Fernando. >> PPMC Member & Committer of Apache Stratos, >> Senior Software Engineer, WSO2 Inc. >> >> Blog: http://nirmalfdo.blogspot.com/ > > -- Akila Ravihansa Perera Software Engineer WSO2 Inc. http://wso2.com Phone: +94 77 64 154 38 Blog: http://ravihansa3000.blogspot.com