How to call an admin service from Stratos web app API

2014-12-01 Thread Udara Liyanage
Hi, I am trying to invoke the OAuthAdminService admin service which is in the same Stratos server. When I tried executing the service via stub, it throws unauthorized error. According to the docs, AuthenticationAdmin admin service should be called prior and get session cookie. However it requir

Re: What is the use of /init in Rest API

2014-12-01 Thread Shiroshica Kulatilake
I think this is used by CLI to validate stratos manager url On Tue, Dec 2, 2014 at 12:58 PM, Udara Liyanage wrote: > Hi, > > What is the use of following init(). > > @GET > @Path("/init") > @AuthorizationAction("/permission/admin/restlogin") > public Response initialize() > throws RestAP

What is the use of /init in Rest API

2014-12-01 Thread Udara Liyanage
Hi, What is the use of following init(). @GET @Path("/init") @AuthorizationAction("/permission/admin/restlogin") public Response initialize() throws RestAPIException { StratosApiResponse response = new StratosApiResponse(); response.setMessage("Successfully authenticated"); re

[jira] [Commented] (STRATOS-1017) Adding executor service support for stratos

2014-12-01 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14231072#comment-14231072 ] ASF GitHub Bot commented on STRATOS-1017: - GitHub user swgkg opened a pull reque

[GitHub] stratos pull request: Adding executor service for Startos

2014-12-01 Thread swgkg
GitHub user swgkg opened a pull request: https://github.com/apache/stratos/pull/128 Adding executor service for Startos This PR contains the following changes: Remove unnecessary threads in messaging model Adding executor service for threads Related JIRA -https:

Re: [Discuss] Coding Standards & Best Practices Guidelines

2014-12-01 Thread Nirmal Fernando
Otherwise it contradicts with line length right? On Tue, Dec 2, 2014 at 11:23 AM, Isuru Perera wrote: > Hi NIrmal, > > Thanks for checking. > > On Tue, Dec 2, 2014 at 11:06 AM, Nirmal Fernando > wrote: > >> Hi Isuru, >> >> Thanks for this. >> >> Assignments -> wrap where necessary setting is mi

Re: [Discuss] Coding Standards & Best Practices Guidelines

2014-12-01 Thread Isuru Perera
Hi NIrmal, Thanks for checking. On Tue, Dec 2, 2014 at 11:06 AM, Nirmal Fernando wrote: > Hi Isuru, > > Thanks for this. > > Assignments -> wrap where necessary setting is missing. Is it intentional? > It's seems that, in Eclipse's built-in profile, the default value of Line wrapping policy for

Re: [Discuss] Coding Standards & Best Practices Guidelines

2014-12-01 Thread Nirmal Fernando
Hi Isuru, Thanks for this. Assignments -> wrap where necessary setting is missing. Is it intentional? On Mon, Nov 17, 2014 at 4:49 PM, Isuru Perera wrote: > Hi Everyone! > > Today I managed to take a look at formatter profiles. As mentioned by > Sajith, I also think Eclipse's "[built-in]" prof

Re: Kubernetes host/group registration in Autoscaler

2014-12-01 Thread Lahiru Sandaruwan
On Tue, Dec 2, 2014 at 10:49 AM, Nirmal Fernando wrote: > Earlier, we didn't have the partition concept for docker. That's why it is > added to Autoscaler. (Earlier Autoscaler picked the Kubernetes cluster and > asked CC to spin a docker inside it.). Now, we can move it to back to CC. I > will do

Re: Kubernetes host/group registration in Autoscaler

2014-12-01 Thread Akila Ravihansa Perera
On Tue, Dec 2, 2014 at 10:47 AM, Lakmal Warusawithana wrote: > > > On Tue, Dec 2, 2014 at 10:39 AM, Lahiru Sandaruwan > wrote: > >> >> >> On Tue, Dec 2, 2014 at 9:40 AM, Akila Ravihansa Perera < >> raviha...@wso2.com> wrote: >> >>> This is because Kubernetes cannot be treated as an IaaS level en

Re: Kubernetes host/group registration in Autoscaler

2014-12-01 Thread Nirmal Fernando
Earlier, we didn't have the partition concept for docker. That's why it is added to Autoscaler. (Earlier Autoscaler picked the Kubernetes cluster and asked CC to spin a docker inside it.). Now, we can move it to back to CC. I will do this. On Tue, Dec 2, 2014 at 10:39 AM, Lahiru Sandaruwan wrote:

Re: Kubernetes host/group registration in Autoscaler

2014-12-01 Thread Lakmal Warusawithana
On Tue, Dec 2, 2014 at 10:39 AM, Lahiru Sandaruwan wrote: > > > On Tue, Dec 2, 2014 at 9:40 AM, Akila Ravihansa Perera > wrote: > >> This is because Kubernetes cannot be treated as an IaaS level entity. >> >> What if we're to create a hybrid cloud deployment with kubernetes + >> OpenStack + EC2

Re: [Wiki] How to Merge Pull Requests from Github to Apache Repository

2014-12-01 Thread Mariangela Hills
As suggested I reverted back to the old guide and updated it [1]. [1] https://cwiki.apache.org/confluence/display/STRATOS/Merging+Pull+Requests Regards, Mariangela *--* Mariangela Hills Senior Technical Writer *WSO2, Inc.*lean.enterprise.middleware. w: http://wso2.com

[jira] [Commented] (STRATOS-907) Wiki - Merge Github pull request pages

2014-12-01 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14231002#comment-14231002 ] Mariangela Hills commented on STRATOS-907: -- I have updated [1], based on the sug

Re: Kubernetes host/group registration in Autoscaler

2014-12-01 Thread Lahiru Sandaruwan
On Tue, Dec 2, 2014 at 9:40 AM, Akila Ravihansa Perera wrote: > This is because Kubernetes cannot be treated as an IaaS level entity. > > What if we're to create a hybrid cloud deployment with kubernetes + > OpenStack + EC2 using a single deployment policy? > IMO, we have to leave room for that k

[jira] [Resolved] (STRATOS-887) Intermittent failure on receiving ClusterRemovedEvent at Autoscaler

2014-12-01 Thread Gayan Gunarathne (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gayan Gunarathne resolved STRATOS-887. -- Resolution: Fixed Fixed in 87ab43d0bf43373d813483494c551e8f69b7a4f8 > Intermittent fai

Re: Contributing Apache Stratos

2014-12-01 Thread Bhathiya Supun
Hi Vishanth, Thank you for the help. I will go through wiki, youtube videos. On Tue, Dec 2, 2014 at 9:46 AM, Vishanth Balasubramaniam wrote: > Hi Bhathiya, > > The Stratos wiki covers everything and it will be a very useful guide to > get familiar. There is a youtube channel for Apache Stratos

Re: [Discuss] Groups and Application JSON formats in Stratos 4.1.0

2014-12-01 Thread Manula Chathurika Thantriwatte
Hi Martin, As Udara and Lakmal mentioned, it's easy for the readability. Otherwise we have to scroll up and down to find out the subscribe info about the particular cartridge. When the JSON get large it's difficult. Thanks ! On Tue, Dec 2, 2014 at 9:34 AM, Lakmal Warusawithana wrote: > > > On

Re: [Discuss] Groups and Application JSON formats in Stratos 4.1.0

2014-12-01 Thread Isuru Haththotuwa
Hi Martin, On Mon, Dec 1, 2014 at 10:04 PM, Martin Eppel (meppel) wrote: > Hi Manula, > > > > What is the reason that we change the application format – we used to > define the cartridge subscription info in a separate section > ("subscribableInfo": ) instead inline? > IMHO this format is mor

Re: Kubernetes host/group registration in Autoscaler

2014-12-01 Thread Akila Ravihansa Perera
This is because Kubernetes cannot be treated as an IaaS level entity. What if we're to create a hybrid cloud deployment with kubernetes + OpenStack + EC2 using a single deployment policy? IMO, we have to leave room for that kind of support in the future. Thanks. On 1 Dec 2014 14:06, "Imesh Gunara

Re: Contributing Apache Stratos

2014-12-01 Thread Vishanth Balasubramaniam
Hi Bhathiya, The Stratos wiki covers everything and it will be a very useful guide to get familiar. There is a youtube channel for Apache Stratos [1], where the first few hangout sessions in that could be helpful to get familiar as well. [1] - https://www.youtube.com/channel/UC98lhL72bOiD3Rg2g_j0

Re: CoreOS introduces Rocket!

2014-12-01 Thread Lakmal Warusawithana
Interesting! war against docker? On Mon, Dec 1, 2014 at 11:44 PM, Rajkumar Rajaratnam wrote: > FYI > > https://coreos.com/blog/rocket/ > > Thanks. > > -- > Rajkumar Rajaratnam > Committer & PMC Member, Apache Stratos > Software Engineer, WSO2 > -- Lakmal Warusawithana Vice President, Apache

Re: [Discuss] Groups and Application JSON formats in Stratos 4.1.0

2014-12-01 Thread Lakmal Warusawithana
On Tue, Dec 2, 2014 at 9:20 AM, Udara Liyanage wrote: > Hi, > > Defining inline improves readability since all subscription information > are in same place, no need to go up and down to see all information. > > Yes, it easy to understand whole application while looking at glance IMO. > On Mon,

Re: [Discuss] Groups and Application JSON formats in Stratos 4.1.0

2014-12-01 Thread Udara Liyanage
Hi, Defining inline improves readability since all subscription information are in same place, no need to go up and down to see all information. On Mon, Dec 1, 2014 at 10:04 PM, Martin Eppel (meppel) wrote: > Hi Manula, > > > > What is the reason that we change the application format – we used

CoreOS introduces Rocket!

2014-12-01 Thread Rajkumar Rajaratnam
FYI https://coreos.com/blog/rocket/ Thanks. -- Rajkumar Rajaratnam Committer & PMC Member, Apache Stratos Software Engineer, WSO2

Contributing Apache Stratos

2014-12-01 Thread Bhathiya Supun
Hi, I am interested in contributing Apache Stratos project (possibly as my Fast Track Training Project). Currently I am going through Stratos documentation [1]. Further going through issue tracker I found following issues interesting [2],[3],[4]. I am familiar with Apache jclouds code base to som

RE: [Discuss] Groups and Application JSON formats in Stratos 4.1.0

2014-12-01 Thread Martin Eppel (meppel)
Hi Manula, What is the reason that we change the application format – we used to define the cartridge subscription info in a separate section ("subscribableInfo": ) instead inline? See sample below: "applicationId": "test_app5", "alias": "myapp5", "components": { "groups": [ ],

Re: [Blog] Upcoming Composite Application Support in Apache Stratos 4.1.0

2014-12-01 Thread Lakmal Warusawithana
On Mon, Dec 1, 2014 at 5:32 PM, Vishanth Balasubramaniam wrote: > Hi Lakmal, > > Just a small doubt that I would like to get clarified. According to the > scenario explained in the document, if Cartridge C3 is a faulty member it > doesn't affect C1 since the Cartridge C1 is NOT dependent on Group

[jira] [Updated] (STRATOS-1017) Adding executor service support for stratos

2014-12-01 Thread Gayan Gunarathne (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gayan Gunarathne updated STRATOS-1017: -- Summary: Adding executor service support for stratos (was: Adding executor service su

[jira] [Created] (STRATOS-1017) Adding executor service supports for stratos

2014-12-01 Thread Gayan Gunarathne (JIRA)
Gayan Gunarathne created STRATOS-1017: - Summary: Adding executor service supports for stratos Key: STRATOS-1017 URL: https://issues.apache.org/jira/browse/STRATOS-1017 Project: Stratos Is

Re: Adding ExecutorService for Stratos Threading

2014-12-01 Thread Udara Liyanage
Hi, IMO having a separate configuration file for just executor service is needed. We can have a common file as Imesh suggested where we can define other common parameters too. On Mon, Dec 1, 2014 at 5:50 PM, Imesh Gunaratne wrote: > +1 A good design Gayan! > > On Mon, Dec 1, 2014 at 12:39 PM, G

[Discuss] Groups and Application JSON format in Stratos 4.1.0

2014-12-01 Thread Manula Chathurika Thantriwatte
Hi All, I have started working on $subject. Here I have came up with the more readable way of the new groups definition JSON and the application JSON format. Both of this support nested group definitions. Below I have listed the high level format of the application and group JSON format. Applicat

[Discuss] Groups and Application JSON formats in Stratos 4.1.0

2014-12-01 Thread Manula Chathurika Thantriwatte
Hi All, I have started working on $subject. Here I have came up with the more readable way of the new groups definition JSON and the application JSON format. Both of this support nested group definitions. Below I have listed the high level format of the application and group JSON format. Applicat

Re: Adding ExecutorService for Stratos Threading

2014-12-01 Thread Imesh Gunaratne
+1 A good design Gayan! On Mon, Dec 1, 2014 at 12:39 PM, Gayan Gunarathne wrote: > > As for the $subject, we are identified following modifications. > > 1. We will maintain the map of executor services which returns the > executor service per component. Once the component (eg CC,AS) needs to > c

Re: [Discuss] Groups and Application JSON format in Stratos 4.1.0

2014-12-01 Thread Manula Chathurika Thantriwatte
Please ignore this mail. Mistakenly send it to the group. I'll send the complete mail. On Mon, Dec 1, 2014 at 5:38 PM, Manula Chathurika Thantriwatte < manu...@wso2.com> wrote: > Hi All, > > I have started working on $subject. Here I have came up with the more > readable way of the new groups def

Re: [Blog] Upcoming Composite Application Support in Apache Stratos 4.1.0

2014-12-01 Thread Vishanth Balasubramaniam
Hi Lakmal, Just a small doubt that I would like to get clarified. According to the scenario explained in the document, if Cartridge C3 is a faulty member it doesn't affect C1 since the Cartridge C1 is NOT dependent on Group G2. What happens if C1 is dependent on G2 and C3 is a faulty member (Give

[Blog] Upcoming Composite Application Support in Apache Stratos 4.1.0

2014-12-01 Thread Lakmal Warusawithana
Hi folks, Since we are almost done the feature freeze for 4.1.0, wrote a blog post [1] of combining all information we have discussed in the mailing for $subject. [1] http://lakmalsview.blogspot.com/2014/12/upcoming-composite-application-support.html -- Lakmal Warusawithana Vice President, Apac

Re: Kubernetes host/group registration in Autoscaler

2014-12-01 Thread Imesh Gunaratne
+1 May be there was a reason to do this at the initial stage. Thanks On Mon, Dec 1, 2014 at 11:50 AM, Lahiru Sandaruwan wrote: > Hi all, > > Currently we do $subject. IMO we should have include this in Cloud > Controller. Because that is the place we are keeping IaaS related > information and t