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

Reply via email to