Hi Anuruddha,

I have now fixed this in 4.1.x branch, it will be available with 4.1.2
release:
https://github.com/apache/stratos/commit/6ed9bf6627b665a34111e07a4c99a1b95172c390

Note: I have fixed the same problem in both haproxy and lvs extensions.

Thanks


On Tue, Aug 25, 2015 at 10:55 AM, Anuruddha Premalal <
anuruddhaprema...@gmail.com> wrote:

> Hi Imesh,
>
> I have fixed this locally. Will test with multi-tenant scenarios where we
> have multiple service clusters and send a RP.
>
> Regards,
> Anuruddha.
>
> On Mon, Aug 24, 2015 at 10:45 PM, Imesh Gunaratne <im...@apache.org>
> wrote:
>
>> Thanks for pointing this issue Anuruddha!
>> Please feel free to send a pull request if you were able to fix this
>> problem.
>>
>> Thanks
>>
>> On Mon, Aug 24, 2015 at 3:00 PM, Anuruddha Premalal <
>> anuruddhaprema...@gmail.com> wrote:
>>
>>> Hi Devs,
>>>
>>> I tried-out the nginx extension 4.1.0 for single tenant application
>>> scenario. I created 2 tomcat applications and ran the extension. Generated
>>> nginx.conf file looks lie below[1]. Here the issue is port mappings for
>>> both the http servers are same. In 
>>> org.apache.stratos.nginx.extension.NginxConfigWriter.write()
>>> it's iterating through topology and getting services and passing service
>>> ports to generateConfigurationForCluster() Shouldn't the port map be the
>>> cluster member portMap in single tenant case?
>>>
>>> Also I have added a domain mapping to single-cartridge-app2 but it
>>> doesn't get reflected in the nginx.conf as well .
>>>
>>> [1]
>>> http {
>>>     upstream single-cartridge-app2.tomcat.tomcat.stratos.org {
>>>         server 172.17.8.102:30079;
>>>     }
>>>
>>>     server {
>>>         listen 8281;
>>>         server_name single-cartridge-app2.tomcat.tomcat.stratos.org;
>>>         location / {
>>>             proxy_pass
>>> http://single-cartridge-app2.tomcat.tomcat.stratos.org;
>>>         }
>>>         location /nginx_status {
>>>             stub_status on;
>>>             access_log off;
>>>             allow 127.0.0.1;
>>>             deny all;
>>>         }
>>>     }
>>> }
>>>
>>> http {
>>>     upstream single-cartridge-app.tomcat.tomcat.stratos.org {
>>>         server 172.17.8.102:30079;
>>>     }
>>>
>>>     server {
>>>         listen 8281;
>>>         server_name single-cartridge-app.tomcat.tomcat.stratos.org;
>>>         location / {
>>>             proxy_pass
>>> http://single-cartridge-app.tomcat.tomcat.stratos.org;
>>>         }
>>>         location /nginx_status {
>>>             stub_status on;
>>>             access_log off;
>>>             allow 127.0.0.1;
>>>             deny all;
>>>         }
>>>     }
>>> }
>>>
>>>
>>> Regards,
>>> --
>>> *Anuruddha Premalala (MIEEE)Mobile : +94710461070 <%2B94710461070>E-mail
>>>  : anuruddhaprema...@gmail.com <anuruddhaprema...@gmail.com>web      :
>>> www.regilandvalley.com <http://www.regilandvalley.com>Sri Lanka.*
>>>
>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Senior Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
> *Anuruddha Premalala (MIEEE)Mobile : +94710461070 <%2B94710461070>E-mail
>  : anuruddhaprema...@gmail.com <anuruddhaprema...@gmail.com>web      :
> www.regilandvalley.com <http://www.regilandvalley.com>Sri Lanka.*
>



-- 
Imesh Gunaratne

Senior Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Reply via email to