Re: [Dev] [DEV][puppet-apim] pre-packed IS as the KM throwing The service cannot be found for the endpoint reference (EPR)

2018-01-17 Thread Isuru Uyanage
I got the same issue when implementing [1].

As I identified the reason for this issue is as below.
We are downloading wso2is-prepacked-puppet-module-hieradata-5.3.0.zip

and
copying the hieradata folder. The default.yaml inside the folder contains
following details.

wso2::service_name: wso2is
wso2::hostname: is.dev.wso2.org
wso2::mgt_hostname: is.dev.wso2.org
This profile is referred in /opt/deployment.conf file. The particular
pattern's common.yaml file refers the hostname as km.dev.wso2.org.
Therefore we need to change this to is.dev.wso2.org. Further, as per the
READ.MD file, we can download the wso2is.5.3.0.zip from
http://product-dist.wso2.com/downloads/api-manager/2.1.0/identity-server/wso2is-5.3.0.zip
.


[1] -
https://docs.wso2.com/display/AM210/Using+Puppet+Modules+to+Set+up+WSO2+API-M+with+Pattern+6#5edd67ca3ad54014b6e4e85999c775c8


Thanks
Isuru

*Thanks and Best Regards,*

*Isuru Uyanage*
*Software Engineer - QA | WSO2*
*Mobile : **+94 77 <+94%2077%20767%201807> 55 30752*
*LinkedIn: **https://www.linkedin.com/in/isuru-uyanage/
*




On Fri, Nov 24, 2017 at 2:31 PM, Nuwan Silva  wrote:

> Checked the /etc/hosts file and it seems to be pointing correctly. Im
> using the latest wum packs.
>
> Cheers,
> NuwanS.
>
> On Fri, Nov 24, 2017 at 1:14 PM, Samitha Chathuranga 
> wrote:
>
>> Hi Nuwan,
>>
>> Probably there is a connection issue from store node to is-as-km node.
>> Can you check whether the host mappings are correct in /etc/hosts file?
>>
>> Regards,
>> Samitha
>>
>> On Fri, Nov 24, 2017 at 12:34 PM, Chalitha Waldeniyage > > wrote:
>>
>>> Hi Nuwan,
>>>
>>> I'm working on similar setup and this flow is working for me(using 22nd
>>> WUM pack). I'm suspecting your WUM updated pack is having some issue
>>> Can you please check on this.
>>>
>>> Thank you,
>>> Chalitha
>>>
>>>
>>> On Fri, Nov 24, 2017 at 12:21 PM, Nuwan Silva  wrote:
>>>
 Hi Team,

 While deploying the IS as the KM via puppet I used [1] with the
 pre-packaged IS that is updated through wum "wso2is-km-5.3.0.zip".
 Installation was successful and after deploying I tried to generate keys
 with the Default Application in the store. (please see below logs)

 I've notices this happens when the KM feature is not installed. but
 shouldnt the pre-packaged wum downloadable IS instance come with the
 feature installed?

 TID: [-1234] [] [2017-11-24 06:17:38,007] ERROR
 {org.apache.axis2.engine.AxisEngine} -  The service cannot be found
 for the endpoint reference (EPR) https://km.dev.wso2.org:9443/s
 ervices/APIKeyMgtSubscriberService
 org.apache.axis2.AxisFault: The service cannot be found for the
 endpoint reference (EPR) https://km.dev.wso2.org:9443/s
 ervices/APIKeyMgtSubscriberService
 at org.apache.axis2.engine.DispatchPhase.checkPostConditions(Di
 spatchPhase.java:78)
 at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
 at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
 at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
 at org.apache.axis2.transport.http.HTTPTransportUtils.processHT
 TPPostRequest(HTTPTransportUtils.java:173)
 at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServl
 et.java:147)
 at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonS
 ervlet.java:231)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
 at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
 n.service(ServletRegistration.java:61)
 at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
 ssAlias(ProxyServlet.java:128)
 at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
 ce(ProxyServlet.java:68)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
 at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service
 (DelegationServlet.java:68)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
 lter(ApplicationFilterChain.java:303)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
 licationFilterChain.java:208)
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte
 r.java:52)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
 lter(ApplicationFilterChain.java:241)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
 licationFilterChain.java:208)
 at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilte
 r(HttpHeaderSecurityFilter.java:124)
 at 

Re: [Dev] [DEV][puppet-apim] pre-packed IS as the KM throwing The service cannot be found for the endpoint reference (EPR)

2018-01-17 Thread Isuru Uyanage
Hi Pubudu,

I have already reported following issues.

https://github.com/wso2/product-apim/issues/2337
https://github.com/wso2/product-apim/issues/2311
https://github.com/wso2/product-apim/issues/2333
https://github.com/wso2/product-apim/issues/2340
https://github.com/wso2/product-apim/issues/2341
https://github.com/wso2/product-apim/issues/2342
https://github.com/wso2/product-apim/issues/2346
https://github.com/wso2/product-apim/issues/2355
https://github.com/wso2/product-apim/issues/2357
https://github.com/wso2/product-apim/issues/2359
https://github.com/wso2/product-apim/issues/2360
https://github.com/wso2/product-apim/issues/2367
https://github.com/wso2/product-apim/issues/2368
https://github.com/wso2/product-apim/issues/2369
https://github.com/wso2/product-apim/issues/2373
https://github.com/wso2/product-apim/issues/2374
https://github.com/wso2/product-apim/issues/2450
https://github.com/wso2/product-apim/issues/2449
https://github.com/wso2/product-apim/issues/2442
https://github.com/wso2/product-apim/issues/2451
https://github.com/wso2/product-apim/issues/2452


Thanks
Isuru

*Thanks and Best Regards,*

*Isuru Uyanage*
*Software Engineer - QA | WSO2*
*Mobile : **+94 77 <+94%2077%20767%201807> 55 30752*
*LinkedIn: **https://www.linkedin.com/in/isuru-uyanage/
*




On Wed, Jan 17, 2018 at 5:53 PM, Pubudu Gunatilaka  wrote:

> Hi Isuru,
>
> Please create a github issue in [1] with your findings to track this. We
> will fix this in the next release.
>
> [1] - https://github.com/wso2/puppet-apim
>
> Thank you!
>
> On Wed, Jan 17, 2018 at 4:15 PM, Isuru Uyanage  wrote:
>
>> I got the same issue when implementing [1].
>>
>> As I identified the reason for this issue is as below.
>> We are downloading wso2is-prepacked-puppet-module-hieradata-5.3.0.zip
>> 
>>  and
>> copying the hieradata folder. The default.yaml inside the folder contains
>> following details.
>>
>> wso2::service_name: wso2is
>> wso2::hostname: is.dev.wso2.org
>> wso2::mgt_hostname: is.dev.wso2.org
>> This profile is referred in /opt/deployment.conf file. The particular
>> pattern's common.yaml file refers the hostname as km.dev.wso2.org.
>> Therefore we need to change this to is.dev.wso2.org. Further, as per the
>> READ.MD file, we can download the wso2is.5.3.0.zip from
>> http://product-dist.wso2.com/downloads/api-manager/2.1.
>> 0/identity-server/wso2is-5.3.0.zip.
>>
>>
>> [1] - https://docs.wso2.com/display/AM210/Using+Puppet+Modules+
>> to+Set+up+WSO2+API-M+with+Pattern+6#5edd67ca3ad54014b6e4e85999c775c8
>>
>>
>> Thanks
>> Isuru
>>
>> *Thanks and Best Regards,*
>>
>> *Isuru Uyanage*
>> *Software Engineer - QA | WSO2*
>> *Mobile : **+94 77 <+94%2077%20767%201807> 55 30752*
>> *LinkedIn: **https://www.linkedin.com/in/isuru-uyanage/
>> *
>>
>>
>>
>>
>> On Fri, Nov 24, 2017 at 2:31 PM, Nuwan Silva  wrote:
>>
>>> Checked the /etc/hosts file and it seems to be pointing correctly. Im
>>> using the latest wum packs.
>>>
>>> Cheers,
>>> NuwanS.
>>>
>>> On Fri, Nov 24, 2017 at 1:14 PM, Samitha Chathuranga 
>>> wrote:
>>>
 Hi Nuwan,

 Probably there is a connection issue from store node to is-as-km node.
 Can you check whether the host mappings are correct in /etc/hosts file?

 Regards,
 Samitha

 On Fri, Nov 24, 2017 at 12:34 PM, Chalitha Waldeniyage <
 chali...@wso2.com> wrote:

> Hi Nuwan,
>
> I'm working on similar setup and this flow is working for me(using
> 22nd WUM pack). I'm suspecting your WUM updated pack is having some issue
> Can you please check on this.
>
> Thank you,
> Chalitha
>
>
> On Fri, Nov 24, 2017 at 12:21 PM, Nuwan Silva  wrote:
>
>> Hi Team,
>>
>> While deploying the IS as the KM via puppet I used [1] with the
>> pre-packaged IS that is updated through wum "wso2is-km-5.3.0.zip".
>> Installation was successful and after deploying I tried to generate keys
>> with the Default Application in the store. (please see below logs)
>>
>> I've notices this happens when the KM feature is not installed. but
>> shouldnt the pre-packaged wum downloadable IS instance come with the
>> feature installed?
>>
>> TID: [-1234] [] [2017-11-24 06:17:38,007] ERROR
>> {org.apache.axis2.engine.AxisEngine} -  The service cannot be found
>> for the endpoint reference (EPR) https://km.dev.wso2.org:9443/s
>> ervices/APIKeyMgtSubscriberService
>> org.apache.axis2.AxisFault: The service cannot be found for the
>> endpoint reference (EPR) https://km.dev.wso2.org:9443/s
>> ervices/APIKeyMgtSubscriberService
>> at org.apache.axis2.engine.DispatchPhase.checkPostConditions(Di
>> spatchPhase.java:78)

Re: [Dev] [DEV][puppet-apim] pre-packed IS as the KM throwing The service cannot be found for the endpoint reference (EPR)

2018-01-17 Thread Pubudu Gunatilaka
Hi Isuru,

Please create a github issue in [1] with your findings to track this. We
will fix this in the next release.

[1] - https://github.com/wso2/puppet-apim

Thank you!

On Wed, Jan 17, 2018 at 4:15 PM, Isuru Uyanage  wrote:

> I got the same issue when implementing [1].
>
> As I identified the reason for this issue is as below.
> We are downloading wso2is-prepacked-puppet-module-hieradata-5.3.0.zip
> 
>  and
> copying the hieradata folder. The default.yaml inside the folder contains
> following details.
>
> wso2::service_name: wso2is
> wso2::hostname: is.dev.wso2.org
> wso2::mgt_hostname: is.dev.wso2.org
> This profile is referred in /opt/deployment.conf file. The particular
> pattern's common.yaml file refers the hostname as km.dev.wso2.org.
> Therefore we need to change this to is.dev.wso2.org. Further, as per the
> READ.MD file, we can download the wso2is.5.3.0.zip from
> http://product-dist.wso2.com/downloads/api-manager/2.1.
> 0/identity-server/wso2is-5.3.0.zip.
>
>
> [1] - https://docs.wso2.com/display/AM210/Using+Puppet+
> Modules+to+Set+up+WSO2+API-M+with+Pattern+6#5edd67ca3ad54014b6e4e85999c775
> c8
>
>
> Thanks
> Isuru
>
> *Thanks and Best Regards,*
>
> *Isuru Uyanage*
> *Software Engineer - QA | WSO2*
> *Mobile : **+94 77 <+94%2077%20767%201807> 55 30752*
> *LinkedIn: **https://www.linkedin.com/in/isuru-uyanage/
> *
>
>
>
>
> On Fri, Nov 24, 2017 at 2:31 PM, Nuwan Silva  wrote:
>
>> Checked the /etc/hosts file and it seems to be pointing correctly. Im
>> using the latest wum packs.
>>
>> Cheers,
>> NuwanS.
>>
>> On Fri, Nov 24, 2017 at 1:14 PM, Samitha Chathuranga 
>> wrote:
>>
>>> Hi Nuwan,
>>>
>>> Probably there is a connection issue from store node to is-as-km node.
>>> Can you check whether the host mappings are correct in /etc/hosts file?
>>>
>>> Regards,
>>> Samitha
>>>
>>> On Fri, Nov 24, 2017 at 12:34 PM, Chalitha Waldeniyage <
>>> chali...@wso2.com> wrote:
>>>
 Hi Nuwan,

 I'm working on similar setup and this flow is working for me(using 22nd
 WUM pack). I'm suspecting your WUM updated pack is having some issue
 Can you please check on this.

 Thank you,
 Chalitha


 On Fri, Nov 24, 2017 at 12:21 PM, Nuwan Silva  wrote:

> Hi Team,
>
> While deploying the IS as the KM via puppet I used [1] with the
> pre-packaged IS that is updated through wum "wso2is-km-5.3.0.zip".
> Installation was successful and after deploying I tried to generate keys
> with the Default Application in the store. (please see below logs)
>
> I've notices this happens when the KM feature is not installed. but
> shouldnt the pre-packaged wum downloadable IS instance come with the
> feature installed?
>
> TID: [-1234] [] [2017-11-24 06:17:38,007] ERROR
> {org.apache.axis2.engine.AxisEngine} -  The service cannot be found
> for the endpoint reference (EPR) https://km.dev.wso2.org:9443/s
> ervices/APIKeyMgtSubscriberService
> org.apache.axis2.AxisFault: The service cannot be found for the
> endpoint reference (EPR) https://km.dev.wso2.org:9443/s
> ervices/APIKeyMgtSubscriberService
> at org.apache.axis2.engine.DispatchPhase.checkPostConditions(Di
> spatchPhase.java:78)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
> at org.apache.axis2.transport.http.HTTPTransportUtils.processHT
> TPPostRequest(HTTPTransportUtils.java:173)
> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServl
> et.java:147)
> at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonS
> ervlet.java:231)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
> n.service(ServletRegistration.java:61)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
> ssAlias(ProxyServlet.java:128)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
> ce(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service
> (DelegationServlet.java:68)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
> lter(ApplicationFilterChain.java:303)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
> licationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte
> r.java:52)

Re: [Dev] [DEV][puppet-apim]

2017-11-24 Thread Prasanna Dangalla
On Fri, Nov 24, 2017 at 10:08 AM, Anuruddha Liyanarachchi <
anurudd...@wso2.com> wrote:

> Hi Nuwan,
>
> As per the current patterns, there is no HA in traffic manager. The
> approach you have taken should work. However, you will need to configure
> dep-sync between two nodes if you are deploying custom policies.
>
I'm not sure whether we are using dep-sync now since in APIM docker
patterns we removed depsync and added rsync.[1]

[1] -
https://github.com/wso2/docker-apim/blob/v2.1.0/docker-compose/pattern-4/gateway-worker-2/worker-manager-rsync.sh

>
> On Fri, Nov 24, 2017 at 9:54 AM, Nuwan Silva  wrote:
>
>> Hi Team,
>>
>> While deploying the puppet-apim [1] I had an issue where there was no
>> pattern for deploying Traffic Manager as an HA deployment. I added the
>> following snippet to achieve HA in the cluster. Do we have another way of
>> doing this? Please advise.
>>
>> wso2::clustering:
>>   enabled: true
>>   domain: tm.am.wso2.domain
>>   sub_domain: mgt
>>   local_member_host: "%{::ipaddress}"
>>   local_member_port: 4000
>> # WKA membership scheme
>>   membership_scheme: wka
>>   wka:
>> members:
>>   -
>> hostname: 192.168.48.33
>> port: 4000
>>   -
>> hostname: 192.168.48.34
>> port: 4000
>>
>>
>> [1] https://github.com/wso2/puppet-apim
>> [2] https://github.com/wso2/puppet-apim/issues/47
>>
>> Cheers,
>> NuwanS.
>> --
>>
>>
>> *Nuwan Silva*
>> *Associate Technical Lead*
>> Mobile: +9477 980 4543 <+94%2077%20980%204543>
>>
>> WSO2 Inc.
>> lean . enterprise . middleware.
>> http://www.wso2.com
>>
>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel  : +94 112 145 345
> a nurudd...@wso2.com
>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][puppet-apim]

2017-11-24 Thread Pubudu Gunatilaka
Hi Nuwan,

It is not actually Spark clustering, you need to do the CEP related
clustering [1] when you are using TM in clustered mode.

Read more on TM articles [2] and [3].

[1] - https://docs.wso2.com/display/CLUSTER44x/Clustering+CEP+4.0.0
[2] -
https://wso2.com/library/articles/2016/10/article-scalable-traffic-manager-deployment-patterns-for-wso2-api-manager-part-1/
[3] -
https://wso2.com/library/articles/2016/10/article-scalable-traffic-manager-deployment-patterns-for-wso2-api-manager-part-2/

Thank you!

On Fri, Nov 24, 2017 at 5:29 PM, Tharindu Dharmarathna 
wrote:

> Hi Nuwan,
>
> I think pubudu get missed understanding as Analytics nodes. We do not need
> to have spark clustering in TM .
>
> On Fri, Nov 24, 2017 at 11:28 AM, Nuwan Silva  wrote:
>
>> Thanks for the info but, do we need to configure spark cluster
>> configurations for traffic manager? If so why?
>>
>> On Fri, Nov 24, 2017 at 10:57 AM, Samitha Chathuranga 
>> wrote:
>>
>>> I'm not sure whether we are using dep-sync now since in APIM docker
 patterns we removed depsync and added rsync.[1]

>>> Using rsync [1] is completely external configuration with wso2 product
>>> configs, hence different to the usage of svn-dep-sync. But if you follow up
>>> with svn dep sync, required templates are already added to the template
>>> files and so you have to add only the required hiera data. Anyway now we
>>> recommend rsync over svn, so better to go with rsync.
>>>
>>> [1] - https://docs.wso2.com/display/AM210/Configuring+rsync+for+De
>>> ployment+Synchronization
>>>
>>> On Fri, Nov 24, 2017 at 10:36 AM, Prasanna Dangalla 
>>> wrote:
>>>

 On Fri, Nov 24, 2017 at 10:08 AM, Anuruddha Liyanarachchi <
 anurudd...@wso2.com> wrote:

> Hi Nuwan,
>
> As per the current patterns, there is no HA in traffic manager. The
> approach you have taken should work. However, you will need to configure
> dep-sync between two nodes if you are deploying custom policies.
>
 I'm not sure whether we are using dep-sync now since in APIM docker
 patterns we removed depsync and added rsync.[1]

 [1] - https://github.com/wso2/docker-apim/blob/v2.1.0/docker-compo
 se/pattern-4/gateway-worker-2/worker-manager-rsync.sh

>
> On Fri, Nov 24, 2017 at 9:54 AM, Nuwan Silva  wrote:
>
>> Hi Team,
>>
>> While deploying the puppet-apim [1] I had an issue where there was no
>> pattern for deploying Traffic Manager as an HA deployment. I added the
>> following snippet to achieve HA in the cluster. Do we have another way of
>> doing this? Please advise.
>>
>> wso2::clustering:
>>   enabled: true
>>   domain: tm.am.wso2.domain
>>   sub_domain: mgt
>>   local_member_host: "%{::ipaddress}"
>>   local_member_port: 4000
>> # WKA membership scheme
>>   membership_scheme: wka
>>   wka:
>> members:
>>   -
>> hostname: 192.168.48.33
>> port: 4000
>>   -
>> hostname: 192.168.48.34
>> port: 4000
>>
>>
>> [1] https://github.com/wso2/puppet-apim
>> [2] https://github.com/wso2/puppet-apim/issues/47
>>
>> Cheers,
>> NuwanS.
>> --
>>
>>
>> *Nuwan Silva*
>> *Associate Technical Lead*
>> Mobile: +9477 980 4543 <+94%2077%20980%204543>
>>
>> WSO2 Inc.
>> lean . enterprise . middleware.
>> http://www.wso2.com
>>
>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel  : +94 112 145 345
> a nurudd...@wso2.com
>


>>>
>>>
>>> --
>>> Samitha Chathuranga
>>> Software Engineer, WSO2 Inc.
>>> lean.enterprise.middleware
>>> Mobile: +94715123761
>>>
>>> [image: http://wso2.com/signature] 
>>>
>>
>>
>>
>> --
>>
>>
>> *Nuwan Silva*
>> *Associate Technical Lead*
>> Mobile: +9477 980 4543 <+94%2077%20980%204543>
>>
>> WSO2 Inc.
>> lean . enterprise . middleware.
>> http://www.wso2.com
>>
>
>
>
> --
>
> *Tharindu Dharmarathna*Senior Software Engineer
> WSO2 Inc.; http://wso2.com
> lean.enterprise.middleware
>
> mobile: *+94779109091 <+94%2077%20910%209091>*
>



-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Senior Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][puppet-apim] pre-packed IS as the KM throwing The service cannot be found for the endpoint reference (EPR)

2017-11-24 Thread Samitha Chathuranga
Hi Nuwan,

Probably there is a connection issue from store node to is-as-km node. Can
you check whether the host mappings are correct in /etc/hosts file?

Regards,
Samitha

On Fri, Nov 24, 2017 at 12:34 PM, Chalitha Waldeniyage 
wrote:

> Hi Nuwan,
>
> I'm working on similar setup and this flow is working for me(using 22nd
> WUM pack). I'm suspecting your WUM updated pack is having some issue
> Can you please check on this.
>
> Thank you,
> Chalitha
>
>
> On Fri, Nov 24, 2017 at 12:21 PM, Nuwan Silva  wrote:
>
>> Hi Team,
>>
>> While deploying the IS as the KM via puppet I used [1] with the
>> pre-packaged IS that is updated through wum "wso2is-km-5.3.0.zip".
>> Installation was successful and after deploying I tried to generate keys
>> with the Default Application in the store. (please see below logs)
>>
>> I've notices this happens when the KM feature is not installed. but
>> shouldnt the pre-packaged wum downloadable IS instance come with the
>> feature installed?
>>
>> TID: [-1234] [] [2017-11-24 06:17:38,007] ERROR
>> {org.apache.axis2.engine.AxisEngine} -  The service cannot be found for
>> the endpoint reference (EPR) https://km.dev.wso2.org:9443/s
>> ervices/APIKeyMgtSubscriberService
>> org.apache.axis2.AxisFault: The service cannot be found for the endpoint
>> reference (EPR) https://km.dev.wso2.org:9443/s
>> ervices/APIKeyMgtSubscriberService
>> at org.apache.axis2.engine.DispatchPhase.checkPostConditions(Di
>> spatchPhase.java:78)
>> at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>> at org.apache.axis2.transport.http.HTTPTransportUtils.processHT
>> TPPostRequest(HTTPTransportUtils.java:173)
>> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServl
>> et.java:147)
>> at org.wso2.carbon.core.transports.CarbonServlet.doPost(
>> CarbonServlet.java:231)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
>> n.service(ServletRegistration.java:61)
>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
>> ssAlias(ProxyServlet.java:128)
>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
>> ce(ProxyServlet.java:68)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service
>> (DelegationServlet.java:68)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:303)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte
>> r.java:52)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilte
>> r(HttpHeaderSecurityFilter.java:124)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilte
>> r(CharacterSetFilter.java:61)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilte
>> r(HttpHeaderSecurityFilter.java:124)
>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>> lter(ApplicationFilterChain.java:241)
>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>> licationFilterChain.java:208)
>> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
>> dWrapperValve.java:219)
>> at org.apache.catalina.core.StandardContextValve.invoke(Standar
>> dContextValve.java:110)
>> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(A
>> uthenticatorBase.java:506)
>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
>> stValve.java:169)
>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
>> rtValve.java:103)
>> at org.wso2.carbon.identity.context.rewrite.valve.TenantContext
>> RewriteValve.invoke(TenantContextRewriteValve.java:80)
>> at org.wso2.carbon.identity.authz.valve.AuthorizationValve.
>> invoke(AuthorizationValve.java:91)
>> at org.wso2.carbon.identity.auth.valve.AuthenticationValve.invo
>> ke(AuthenticationValve.java:60)
>> at 

Re: [Dev] [DEV][puppet-apim]

2017-11-24 Thread Samitha Chathuranga
>
> I'm not sure whether we are using dep-sync now since in APIM docker
> patterns we removed depsync and added rsync.[1]
>
Using rsync [1] is completely external configuration with wso2 product
configs, hence different to the usage of svn-dep-sync. But if you follow up
with svn dep sync, required templates are already added to the template
files and so you have to add only the required hiera data. Anyway now we
recommend rsync over svn, so better to go with rsync.

[1] -
https://docs.wso2.com/display/AM210/Configuring+rsync+for+Deployment+Synchronization

On Fri, Nov 24, 2017 at 10:36 AM, Prasanna Dangalla 
wrote:

>
> On Fri, Nov 24, 2017 at 10:08 AM, Anuruddha Liyanarachchi <
> anurudd...@wso2.com> wrote:
>
>> Hi Nuwan,
>>
>> As per the current patterns, there is no HA in traffic manager. The
>> approach you have taken should work. However, you will need to configure
>> dep-sync between two nodes if you are deploying custom policies.
>>
> I'm not sure whether we are using dep-sync now since in APIM docker
> patterns we removed depsync and added rsync.[1]
>
> [1] - https://github.com/wso2/docker-apim/blob/v2.1.0/
> docker-compose/pattern-4/gateway-worker-2/worker-manager-rsync.sh
>
>>
>> On Fri, Nov 24, 2017 at 9:54 AM, Nuwan Silva  wrote:
>>
>>> Hi Team,
>>>
>>> While deploying the puppet-apim [1] I had an issue where there was no
>>> pattern for deploying Traffic Manager as an HA deployment. I added the
>>> following snippet to achieve HA in the cluster. Do we have another way of
>>> doing this? Please advise.
>>>
>>> wso2::clustering:
>>>   enabled: true
>>>   domain: tm.am.wso2.domain
>>>   sub_domain: mgt
>>>   local_member_host: "%{::ipaddress}"
>>>   local_member_port: 4000
>>> # WKA membership scheme
>>>   membership_scheme: wka
>>>   wka:
>>> members:
>>>   -
>>> hostname: 192.168.48.33
>>> port: 4000
>>>   -
>>> hostname: 192.168.48.34
>>> port: 4000
>>>
>>>
>>> [1] https://github.com/wso2/puppet-apim
>>> [2] https://github.com/wso2/puppet-apim/issues/47
>>>
>>> Cheers,
>>> NuwanS.
>>> --
>>>
>>>
>>> *Nuwan Silva*
>>> *Associate Technical Lead*
>>> Mobile: +9477 980 4543 <+94%2077%20980%204543>
>>>
>>> WSO2 Inc.
>>> lean . enterprise . middleware.
>>> http://www.wso2.com
>>>
>>
>>
>>
>> --
>> *Thanks and Regards,*
>> Anuruddha Lanka Liyanarachchi
>> Software Engineer - WSO2
>> Mobile : +94 (0) 712762611
>> Tel  : +94 112 145 345
>> a nurudd...@wso2.com
>>
>
>


-- 
Samitha Chathuranga
Software Engineer, WSO2 Inc.
lean.enterprise.middleware
Mobile: +94715123761

[image: http://wso2.com/signature] 
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][puppet-apim] pre-packed IS as the KM throwing The service cannot be found for the endpoint reference (EPR)

2017-11-24 Thread Nuwan Silva
Checked the /etc/hosts file and it seems to be pointing correctly. Im using
the latest wum packs.

Cheers,
NuwanS.

On Fri, Nov 24, 2017 at 1:14 PM, Samitha Chathuranga 
wrote:

> Hi Nuwan,
>
> Probably there is a connection issue from store node to is-as-km node. Can
> you check whether the host mappings are correct in /etc/hosts file?
>
> Regards,
> Samitha
>
> On Fri, Nov 24, 2017 at 12:34 PM, Chalitha Waldeniyage 
> wrote:
>
>> Hi Nuwan,
>>
>> I'm working on similar setup and this flow is working for me(using 22nd
>> WUM pack). I'm suspecting your WUM updated pack is having some issue
>> Can you please check on this.
>>
>> Thank you,
>> Chalitha
>>
>>
>> On Fri, Nov 24, 2017 at 12:21 PM, Nuwan Silva  wrote:
>>
>>> Hi Team,
>>>
>>> While deploying the IS as the KM via puppet I used [1] with the
>>> pre-packaged IS that is updated through wum "wso2is-km-5.3.0.zip".
>>> Installation was successful and after deploying I tried to generate keys
>>> with the Default Application in the store. (please see below logs)
>>>
>>> I've notices this happens when the KM feature is not installed. but
>>> shouldnt the pre-packaged wum downloadable IS instance come with the
>>> feature installed?
>>>
>>> TID: [-1234] [] [2017-11-24 06:17:38,007] ERROR
>>> {org.apache.axis2.engine.AxisEngine} -  The service cannot be found for
>>> the endpoint reference (EPR) https://km.dev.wso2.org:9443/s
>>> ervices/APIKeyMgtSubscriberService
>>> org.apache.axis2.AxisFault: The service cannot be found for the endpoint
>>> reference (EPR) https://km.dev.wso2.org:9443/s
>>> ervices/APIKeyMgtSubscriberService
>>> at org.apache.axis2.engine.DispatchPhase.checkPostConditions(Di
>>> spatchPhase.java:78)
>>> at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
>>> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
>>> at org.apache.axis2.transport.http.HTTPTransportUtils.processHT
>>> TPPostRequest(HTTPTransportUtils.java:173)
>>> at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServl
>>> et.java:147)
>>> at org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonS
>>> ervlet.java:231)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> at org.eclipse.equinox.http.servlet.internal.ServletRegistratio
>>> n.service(ServletRegistration.java:61)
>>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce
>>> ssAlias(ProxyServlet.java:128)
>>> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi
>>> ce(ProxyServlet.java:68)
>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
>>> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service
>>> (DelegationServlet.java:68)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:303)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilte
>>> r.java:52)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:241)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilte
>>> r(HttpHeaderSecurityFilter.java:124)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:241)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilte
>>> r(CharacterSetFilter.java:61)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:241)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilte
>>> r(HttpHeaderSecurityFilter.java:124)
>>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFi
>>> lter(ApplicationFilterChain.java:241)
>>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(App
>>> licationFilterChain.java:208)
>>> at org.apache.catalina.core.StandardWrapperValve.invoke(Standar
>>> dWrapperValve.java:219)
>>> at org.apache.catalina.core.StandardContextValve.invoke(Standar
>>> dContextValve.java:110)
>>> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(A
>>> uthenticatorBase.java:506)
>>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHo
>>> stValve.java:169)
>>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo
>>> rtValve.java:103)
>>> at org.wso2.carbon.identity.context.rewrite.valve.TenantContext
>>> 

[Dev] [DEV][puppet-apim] pre-packed IS as the KM throwing The service cannot be found for the endpoint reference (EPR)

2017-11-24 Thread Nuwan Silva
Hi Team,

While deploying the IS as the KM via puppet I used [1] with the
pre-packaged IS that is updated through wum "wso2is-km-5.3.0.zip".
Installation was successful and after deploying I tried to generate keys
with the Default Application in the store. (please see below logs)

I've notices this happens when the KM feature is not installed. but
shouldnt the pre-packaged wum downloadable IS instance come with the
feature installed?

TID: [-1234] [] [2017-11-24 06:17:38,007] ERROR
{org.apache.axis2.engine.AxisEngine} -  The service cannot be found for the
endpoint reference (EPR)
https://km.dev.wso2.org:9443/services/APIKeyMgtSubscriberService
org.apache.axis2.AxisFault: The service cannot be found for the endpoint
reference (EPR)
https://km.dev.wso2.org:9443/services/APIKeyMgtSubscriberService
at
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:78)
at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:173)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:147)
at
org.wso2.carbon.core.transports.CarbonServlet.doPost(CarbonServlet.java:231)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistration.service(ServletRegistration.java:61)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:128)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at
org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.service(DelegationServlet.java:68)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.doFilter(CharacterSetFilter.java:61)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at
org.wso2.carbon.identity.context.rewrite.valve.TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80)
at
org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(AuthorizationValve.java:91)
at
org.wso2.carbon.identity.auth.valve.AuthenticationValve.invoke(AuthenticationValve.java:60)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99)
at
org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47)
at
org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57)
at
org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47)
at
org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62)
at
org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)
at
org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57)
at

Re: [Dev] [DEV][puppet-apim]

2017-11-24 Thread Tharindu Dharmarathna
Hi Nuwan,

I think pubudu get missed understanding as Analytics nodes. We do not need
to have spark clustering in TM .

On Fri, Nov 24, 2017 at 11:28 AM, Nuwan Silva  wrote:

> Thanks for the info but, do we need to configure spark cluster
> configurations for traffic manager? If so why?
>
> On Fri, Nov 24, 2017 at 10:57 AM, Samitha Chathuranga 
> wrote:
>
>> I'm not sure whether we are using dep-sync now since in APIM docker
>>> patterns we removed depsync and added rsync.[1]
>>>
>> Using rsync [1] is completely external configuration with wso2 product
>> configs, hence different to the usage of svn-dep-sync. But if you follow up
>> with svn dep sync, required templates are already added to the template
>> files and so you have to add only the required hiera data. Anyway now we
>> recommend rsync over svn, so better to go with rsync.
>>
>> [1] - https://docs.wso2.com/display/AM210/Configuring+rsync+for+De
>> ployment+Synchronization
>>
>> On Fri, Nov 24, 2017 at 10:36 AM, Prasanna Dangalla 
>> wrote:
>>
>>>
>>> On Fri, Nov 24, 2017 at 10:08 AM, Anuruddha Liyanarachchi <
>>> anurudd...@wso2.com> wrote:
>>>
 Hi Nuwan,

 As per the current patterns, there is no HA in traffic manager. The
 approach you have taken should work. However, you will need to configure
 dep-sync between two nodes if you are deploying custom policies.

>>> I'm not sure whether we are using dep-sync now since in APIM docker
>>> patterns we removed depsync and added rsync.[1]
>>>
>>> [1] - https://github.com/wso2/docker-apim/blob/v2.1.0/docker-compo
>>> se/pattern-4/gateway-worker-2/worker-manager-rsync.sh
>>>

 On Fri, Nov 24, 2017 at 9:54 AM, Nuwan Silva  wrote:

> Hi Team,
>
> While deploying the puppet-apim [1] I had an issue where there was no
> pattern for deploying Traffic Manager as an HA deployment. I added the
> following snippet to achieve HA in the cluster. Do we have another way of
> doing this? Please advise.
>
> wso2::clustering:
>   enabled: true
>   domain: tm.am.wso2.domain
>   sub_domain: mgt
>   local_member_host: "%{::ipaddress}"
>   local_member_port: 4000
> # WKA membership scheme
>   membership_scheme: wka
>   wka:
> members:
>   -
> hostname: 192.168.48.33
> port: 4000
>   -
> hostname: 192.168.48.34
> port: 4000
>
>
> [1] https://github.com/wso2/puppet-apim
> [2] https://github.com/wso2/puppet-apim/issues/47
>
> Cheers,
> NuwanS.
> --
>
>
> *Nuwan Silva*
> *Associate Technical Lead*
> Mobile: +9477 980 4543 <+94%2077%20980%204543>
>
> WSO2 Inc.
> lean . enterprise . middleware.
> http://www.wso2.com
>



 --
 *Thanks and Regards,*
 Anuruddha Lanka Liyanarachchi
 Software Engineer - WSO2
 Mobile : +94 (0) 712762611
 Tel  : +94 112 145 345
 a nurudd...@wso2.com

>>>
>>>
>>
>>
>> --
>> Samitha Chathuranga
>> Software Engineer, WSO2 Inc.
>> lean.enterprise.middleware
>> Mobile: +94715123761
>>
>> [image: http://wso2.com/signature] 
>>
>
>
>
> --
>
>
> *Nuwan Silva*
> *Associate Technical Lead*
> Mobile: +9477 980 4543 <+94%2077%20980%204543>
>
> WSO2 Inc.
> lean . enterprise . middleware.
> http://www.wso2.com
>



-- 

*Tharindu Dharmarathna*Senior Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware

mobile: *+94779109091*
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][puppet-apim] pre-packed IS as the KM throwing The service cannot be found for the endpoint reference (EPR)

2017-11-23 Thread Chalitha Waldeniyage
Hi Nuwan,

I'm working on similar setup and this flow is working for me(using 22nd WUM
pack). I'm suspecting your WUM updated pack is having some issue
Can you please check on this.

Thank you,
Chalitha


On Fri, Nov 24, 2017 at 12:21 PM, Nuwan Silva  wrote:

> Hi Team,
>
> While deploying the IS as the KM via puppet I used [1] with the
> pre-packaged IS that is updated through wum "wso2is-km-5.3.0.zip".
> Installation was successful and after deploying I tried to generate keys
> with the Default Application in the store. (please see below logs)
>
> I've notices this happens when the KM feature is not installed. but
> shouldnt the pre-packaged wum downloadable IS instance come with the
> feature installed?
>
> TID: [-1234] [] [2017-11-24 06:17:38,007] ERROR 
> {org.apache.axis2.engine.AxisEngine}
> -  The service cannot be found for the endpoint reference (EPR)
> https://km.dev.wso2.org:9443/services/APIKeyMgtSubscriberService
> org.apache.axis2.AxisFault: The service cannot be found for the endpoint
> reference (EPR) https://km.dev.wso2.org:9443/services/
> APIKeyMgtSubscriberService
> at org.apache.axis2.engine.DispatchPhase.checkPostConditions(
> DispatchPhase.java:78)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:329)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:261)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:167)
> at org.apache.axis2.transport.http.HTTPTransportUtils.
> processHTTPPostRequest(HTTPTransportUtils.java:173)
> at org.apache.axis2.transport.http.AxisServlet.doPost(
> AxisServlet.java:147)
> at org.wso2.carbon.core.transports.CarbonServlet.
> doPost(CarbonServlet.java:231)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
> at org.eclipse.equinox.http.servlet.internal.
> ServletRegistration.service(ServletRegistration.java:61)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.
> processAlias(ProxyServlet.java:128)
> at org.eclipse.equinox.http.servlet.internal.ProxyServlet.
> service(ProxyServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
> at org.wso2.carbon.tomcat.ext.servlet.DelegationServlet.
> service(DelegationServlet.java:68)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:303)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.tomcat.websocket.server.WsFilter.doFilter(
> WsFilter.java:52)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(
> HttpHeaderSecurityFilter.java:124)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.wso2.carbon.tomcat.ext.filter.CharacterSetFilter.
> doFilter(CharacterSetFilter.java:61)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(
> HttpHeaderSecurityFilter.java:124)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:241)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:208)
> at org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:219)
> at org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:110)
> at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:506)
> at org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:169)
> at org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:103)
> at org.wso2.carbon.identity.context.rewrite.valve.
> TenantContextRewriteValve.invoke(TenantContextRewriteValve.java:80)
> at org.wso2.carbon.identity.authz.valve.AuthorizationValve.invoke(
> AuthorizationValve.java:91)
> at org.wso2.carbon.identity.auth.valve.AuthenticationValve.
> invoke(AuthenticationValve.java:60)
> at org.wso2.carbon.tomcat.ext.valves.CompositeValve.
> continueInvocation(CompositeValve.java:99)
> at org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.
> invoke(CarbonTomcatValve.java:47)
> at org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(
> TenantLazyLoaderValve.java:57)
> at org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.
> 

Re: [Dev] [DEV][puppet-apim]

2017-11-23 Thread Chamila Adhikarinayake
+ samitha

On Fri, Nov 24, 2017 at 9:54 AM, Nuwan Silva  wrote:

> Hi Team,
>
> While deploying the puppet-apim [1] I had an issue where there was no
> pattern for deploying Traffic Manager as an HA deployment. I added the
> following snippet to achieve HA in the cluster. Do we have another way of
> doing this? Please advise.
>
> wso2::clustering:
>   enabled: true
>   domain: tm.am.wso2.domain
>   sub_domain: mgt
>   local_member_host: "%{::ipaddress}"
>   local_member_port: 4000
> # WKA membership scheme
>   membership_scheme: wka
>   wka:
> members:
>   -
> hostname: 192.168.48.33
> port: 4000
>   -
> hostname: 192.168.48.34
> port: 4000
>
>
> [1] https://github.com/wso2/puppet-apim
> [2] https://github.com/wso2/puppet-apim/issues/47
>
> Cheers,
> NuwanS.
> --
>
>
> *Nuwan Silva*
> *Associate Technical Lead*
> Mobile: +9477 980 4543 <+94%2077%20980%204543>
>
> WSO2 Inc.
> lean . enterprise . middleware.
> http://www.wso2.com
>



-- 
Regards,
Chamila Adhikarinayake
Senior Software Engineer
WSO2, Inc.
Mobile - +94712346437
Email  - chami...@wso2.com
Blog  -  http://helpfromadhi.blogspot.com/
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][puppet-apim]

2017-11-23 Thread Nuwan Silva
Thanks for the info but, do we need to configure spark cluster
configurations for traffic manager? If so why?

On Fri, Nov 24, 2017 at 10:57 AM, Samitha Chathuranga 
wrote:

> I'm not sure whether we are using dep-sync now since in APIM docker
>> patterns we removed depsync and added rsync.[1]
>>
> Using rsync [1] is completely external configuration with wso2 product
> configs, hence different to the usage of svn-dep-sync. But if you follow up
> with svn dep sync, required templates are already added to the template
> files and so you have to add only the required hiera data. Anyway now we
> recommend rsync over svn, so better to go with rsync.
>
> [1] - https://docs.wso2.com/display/AM210/Configuring+rsync+for+
> Deployment+Synchronization
>
> On Fri, Nov 24, 2017 at 10:36 AM, Prasanna Dangalla 
> wrote:
>
>>
>> On Fri, Nov 24, 2017 at 10:08 AM, Anuruddha Liyanarachchi <
>> anurudd...@wso2.com> wrote:
>>
>>> Hi Nuwan,
>>>
>>> As per the current patterns, there is no HA in traffic manager. The
>>> approach you have taken should work. However, you will need to configure
>>> dep-sync between two nodes if you are deploying custom policies.
>>>
>> I'm not sure whether we are using dep-sync now since in APIM docker
>> patterns we removed depsync and added rsync.[1]
>>
>> [1] - https://github.com/wso2/docker-apim/blob/v2.1.0/docker-
>> compose/pattern-4/gateway-worker-2/worker-manager-rsync.sh
>>
>>>
>>> On Fri, Nov 24, 2017 at 9:54 AM, Nuwan Silva  wrote:
>>>
 Hi Team,

 While deploying the puppet-apim [1] I had an issue where there was no
 pattern for deploying Traffic Manager as an HA deployment. I added the
 following snippet to achieve HA in the cluster. Do we have another way of
 doing this? Please advise.

 wso2::clustering:
   enabled: true
   domain: tm.am.wso2.domain
   sub_domain: mgt
   local_member_host: "%{::ipaddress}"
   local_member_port: 4000
 # WKA membership scheme
   membership_scheme: wka
   wka:
 members:
   -
 hostname: 192.168.48.33
 port: 4000
   -
 hostname: 192.168.48.34
 port: 4000


 [1] https://github.com/wso2/puppet-apim
 [2] https://github.com/wso2/puppet-apim/issues/47

 Cheers,
 NuwanS.
 --


 *Nuwan Silva*
 *Associate Technical Lead*
 Mobile: +9477 980 4543 <+94%2077%20980%204543>

 WSO2 Inc.
 lean . enterprise . middleware.
 http://www.wso2.com

>>>
>>>
>>>
>>> --
>>> *Thanks and Regards,*
>>> Anuruddha Lanka Liyanarachchi
>>> Software Engineer - WSO2
>>> Mobile : +94 (0) 712762611
>>> Tel  : +94 112 145 345
>>> a nurudd...@wso2.com
>>>
>>
>>
>
>
> --
> Samitha Chathuranga
> Software Engineer, WSO2 Inc.
> lean.enterprise.middleware
> Mobile: +94715123761
>
> [image: http://wso2.com/signature] 
>



-- 


*Nuwan Silva*
*Associate Technical Lead*
Mobile: +9477 980 4543

WSO2 Inc.
lean . enterprise . middleware.
http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][puppet-apim]

2017-11-23 Thread Pubudu Gunatilaka
Hi Nuwan,

Yes, this is the recommended the approach.

You may need to add other Spark related clustering configurations as well.

Thank you!

On Fri, Nov 24, 2017 at 12:38 PM, Anuruddha Liyanarachchi <
anurudd...@wso2.com> wrote:

> Hi Nuwan,
>
> As per the current patterns, there is no HA in traffic manager. The
> approach you have taken should work. However, you will need to configure
> dep-sync between two nodes if you are deploying custom policies.
>
> On Fri, Nov 24, 2017 at 9:54 AM, Nuwan Silva  wrote:
>
>> Hi Team,
>>
>> While deploying the puppet-apim [1] I had an issue where there was no
>> pattern for deploying Traffic Manager as an HA deployment. I added the
>> following snippet to achieve HA in the cluster. Do we have another way of
>> doing this? Please advise.
>>
>> wso2::clustering:
>>   enabled: true
>>   domain: tm.am.wso2.domain
>>   sub_domain: mgt
>>   local_member_host: "%{::ipaddress}"
>>   local_member_port: 4000
>> # WKA membership scheme
>>   membership_scheme: wka
>>   wka:
>> members:
>>   -
>> hostname: 192.168.48.33
>> port: 4000
>>   -
>> hostname: 192.168.48.34
>> port: 4000
>>
>>
>> [1] https://github.com/wso2/puppet-apim
>> [2] https://github.com/wso2/puppet-apim/issues/47
>>
>> Cheers,
>> NuwanS.
>> --
>>
>>
>> *Nuwan Silva*
>> *Associate Technical Lead*
>> Mobile: +9477 980 4543 <+94%2077%20980%204543>
>>
>> WSO2 Inc.
>> lean . enterprise . middleware.
>> http://www.wso2.com
>>
>
>
>
> --
> *Thanks and Regards,*
> Anuruddha Lanka Liyanarachchi
> Software Engineer - WSO2
> Mobile : +94 (0) 712762611
> Tel  : +94 112 145 345
> a nurudd...@wso2.com
>



-- 
*Pubudu Gunatilaka*
Committer and PMC Member - Apache Stratos
Senior Software Engineer
WSO2, Inc.: http://wso2.com
mobile : +94774078049 <%2B94772207163>
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] [DEV][puppet-apim]

2017-11-23 Thread Anuruddha Liyanarachchi
Hi Nuwan,

As per the current patterns, there is no HA in traffic manager. The
approach you have taken should work. However, you will need to configure
dep-sync between two nodes if you are deploying custom policies.

On Fri, Nov 24, 2017 at 9:54 AM, Nuwan Silva  wrote:

> Hi Team,
>
> While deploying the puppet-apim [1] I had an issue where there was no
> pattern for deploying Traffic Manager as an HA deployment. I added the
> following snippet to achieve HA in the cluster. Do we have another way of
> doing this? Please advise.
>
> wso2::clustering:
>   enabled: true
>   domain: tm.am.wso2.domain
>   sub_domain: mgt
>   local_member_host: "%{::ipaddress}"
>   local_member_port: 4000
> # WKA membership scheme
>   membership_scheme: wka
>   wka:
> members:
>   -
> hostname: 192.168.48.33
> port: 4000
>   -
> hostname: 192.168.48.34
> port: 4000
>
>
> [1] https://github.com/wso2/puppet-apim
> [2] https://github.com/wso2/puppet-apim/issues/47
>
> Cheers,
> NuwanS.
> --
>
>
> *Nuwan Silva*
> *Associate Technical Lead*
> Mobile: +9477 980 4543 <+94%2077%20980%204543>
>
> WSO2 Inc.
> lean . enterprise . middleware.
> http://www.wso2.com
>



-- 
*Thanks and Regards,*
Anuruddha Lanka Liyanarachchi
Software Engineer - WSO2
Mobile : +94 (0) 712762611
Tel  : +94 112 145 345
a nurudd...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[Dev] [DEV][puppet-apim]

2017-11-23 Thread Nuwan Silva
Hi Team,

While deploying the puppet-apim [1] I had an issue where there was no
pattern for deploying Traffic Manager as an HA deployment. I added the
following snippet to achieve HA in the cluster. Do we have another way of
doing this? Please advise.

wso2::clustering:
  enabled: true
  domain: tm.am.wso2.domain
  sub_domain: mgt
  local_member_host: "%{::ipaddress}"
  local_member_port: 4000
# WKA membership scheme
  membership_scheme: wka
  wka:
members:
  -
hostname: 192.168.48.33
port: 4000
  -
hostname: 192.168.48.34
port: 4000


[1] https://github.com/wso2/puppet-apim
[2] https://github.com/wso2/puppet-apim/issues/47

Cheers,
NuwanS.
-- 


*Nuwan Silva*
*Associate Technical Lead*
Mobile: +9477 980 4543

WSO2 Inc.
lean . enterprise . middleware.
http://www.wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev