I've pushed the relevant PCA changes under commits [1] - [5]. This makes it possible for newer cartridges to work with PPaaS 4.1.0. The PCA will pass the connected MB_IP to the service starter plugin, which will then be able to write it to relevant places along with CONFIG_PARAM_MB_PORT.
[1] - https://github.com/wso2/product-private-paas/commit/8bce7c87105ec0d35c942ba72cca5c17eb593c05 [2] - https://github.com/wso2/product-private-paas/commit/347cfcb1775fa5db2483af29ec6302e392c6c9d9 [3] - https://github.com/wso2/product-private-paas/commit/5b355234b788d36325c81836bccfe19998e57455 [4] - https://github.com/wso2/product-private-paas/commit/c67aea52e7b371c03882e1d0a365ad45b429cd6e [5] - https://github.com/wso2/product-private-paas/commit/bd865fd0c4e7081d14fb12b95935917dd01eeebe Regards, Chamila de Alwis Committer and PMC Member - Apache Stratos Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Tue, Dec 15, 2015 at 11:26 PM, Pubudu Gunatilaka <[email protected]> wrote: > Hi, > > We can do the following changes to support backward compatibility of PCA. > > 1. Update new MB related values such as MB_URLS, MB-USERNAME, etc in > start-agent.sh > > Start-agent script will read the env variables and update the agent.conf > file in PCA. I have already done the fix for this in [1]. > > 2. As we have forked the PCA for PPaas, we will be changing that as > follows. > > Users can send MB_URLS or can send both MB_IP and MB_PORT. PCA will give > the priority for MB_URLS over MB_IP and MB_PORT. PCA will change to handle > both cases. If MB_URLS are sent, PCA will export one of the successful mb > ips as MB_IP for the sake of the plugin. In the plugin we need to know any > of the mb ips for the initialization of the cluster. > > With this change there is no need of changing the plugins and template > modules. If any of the users need to change the default AMQP port, they can > send that from the cartridge definition. Cartridge definition property > values will be exported as ENV values and those will be used with the > configurator when configuring the server. > > [1] - > https://github.com/wso2/private-paas-cartridges/commit/23e6bcdb16d9a032a9f66883f41747469cf45708 > > Thank you! > > > On Tue, Dec 15, 2015 at 1:01 PM, Chamila De Alwis <[email protected]> > wrote: > >> Hi, >> >> I've forked the PCA component and product and started working on the >> fixes for the config compatibility. After that I will merge the other >> critical fixes. >> >> >> Regards, >> Chamila de Alwis >> Committer and PMC Member - Apache Stratos >> Software Engineer | WSO2 | +94772207163 >> Blog: code.chamiladealwis.com >> >> >> >> On Tue, Dec 15, 2015 at 12:59 PM, Imesh Gunaratne <[email protected]> wrote: >> >>> Hi All, >>> >>> The plan is to fork Apache Stratos python cartridge agent in WSO2 >>> Private PaaS product repository and fix this issue until Stratos community >>> does another release fixing this. In addition this would add few >>> performance improvements we did recently in cartridge agent until those are >>> merged to upstream. >>> >>> Thanks >>> >>> On Tue, Dec 15, 2015 at 10:04 AM, Gayan Gunarathne <[email protected]> >>> wrote: >>> >>>> >>>> >>>> On Tue, Dec 15, 2015 at 9:35 AM, Imesh Gunaratne <[email protected]> >>>> wrote: >>>> >>>>> Hi Gayan, >>>>> >>>>> It looks like this modification in cartridge agent is not backward >>>>> compatible [1]. As a result users will need to upgrade all the existing >>>>> cartridges to their latest versions to work with Private PaaS 4.1.1. >>>>> >>>>> IMO we need to fix first. >>>>> >>>>> [1] >>>>> https://github.com/apache/stratos/commit/9c57c7d803f790078963861e553e5b79290d8f2d >>>>> >>>> >>>> Yeah . We need to support MB IP and MB port in the case of that >>>> configurations are there. >>>> >>>>> >>>>> Thanks >>>>> >>>>> On Mon, Dec 14, 2015 at 7:38 PM, Gayan Gunarathne <[email protected]> >>>>> wrote: >>>>> >>>>>> We found that we need to update the Cartridges to support the Stratos >>>>>> Cartridge Agent 4.1.5.We need to update the startup handlers,sample >>>>>> artifact json to support the ActiveMQ HA with WSO2 Cartridges. >>>>>> >>>>>> We will fix those changes and will do the WSO2 PPaaS Cartridges 4.1.3 >>>>>> release. >>>>>> >>>>>> [1] >>>>>> https://github.com/wso2/private-paas-cartridges/blob/master/wso2esb/4.9.0/plugins/wso2esb-490-startup-handler.py#L76 >>>>>> [2] >>>>>> https://github.com/wso2/private-paas-cartridges/blob/master/wso2esb/4.9.0/samples/kubernetes-clusters/kubernetes-cluster-1.json#L36 >>>>>> >>>>>> Thanks, >>>>>> Gayan >>>>>> >>>>>> -- >>>>>> >>>>>> Gayan Gunarathne >>>>>> Technical Lead, WSO2 Inc. (http://wso2.com) >>>>>> Committer & PMC Member, Apache Stratos >>>>>> email : [email protected] | mobile : +94 775030545 <%2B94%20766819985> >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> *Imesh Gunaratne* >>>>> Senior Technical Lead >>>>> WSO2 Inc: http://wso2.com >>>>> T: +94 11 214 5345 M: +94 77 374 2057 >>>>> W: http://imesh.gunaratne.org >>>>> Lean . Enterprise . Middleware >>>>> >>>>> >>>>> >>>>> -- >>>>> *Imesh Gunaratne* >>>>> Senior Technical Lead >>>>> WSO2 Inc: http://wso2.com >>>>> T: +94 11 214 5345 M: +94 77 374 2057 >>>>> W: http://imesh.gunaratne.org >>>>> Lean . Enterprise . Middleware >>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> Gayan Gunarathne >>>> Technical Lead, WSO2 Inc. (http://wso2.com) >>>> Committer & PMC Member, Apache Stratos >>>> email : [email protected] | mobile : +94 775030545 <%2B94%20766819985> >>>> >>>> >>>> >>> >>> >>> >>> -- >>> *Imesh Gunaratne* >>> Senior Technical Lead >>> WSO2 Inc: http://wso2.com >>> T: +94 11 214 5345 M: +94 77 374 2057 >>> W: http://imesh.gunaratne.org >>> Lean . Enterprise . Middleware >>> >>> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > *Pubudu Gunatilaka* > Committer and PMC Member - Apache Stratos > Software Engineer > WSO2, Inc.: http://wso2.com > mobile : +94774079049 <%2B94772207163> > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
