Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EA3AF1740F for ; Mon, 3 Nov 2014 09:56:24 +0000 (UTC) Received: (qmail 64389 invoked by uid 500); 3 Nov 2014 09:56:24 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 64345 invoked by uid 500); 3 Nov 2014 09:56:24 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 64335 invoked by uid 99); 3 Nov 2014 09:56:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 09:56:24 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rajkumarr@wso2.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2014 09:55:58 +0000 Received: by mail-ob0-f176.google.com with SMTP id va2so8623957obc.21 for ; Mon, 03 Nov 2014 01:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wso2.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UzV0QoAgzK+MX3VJy8MGVZyxhzu9ccbUlFN9jvnBeZ8=; b=VSoasC9Q+HxKRbSkNvE01yaSWVQSA0kOJwEiHACCFZAcrQj0L15Qt+UFN0FiwvyBWF StQ4bavLwqBEchW2qhiY5K/vxkgb58z09t01EnUETlGCG0jryoBQsq8KqA5XP8FLNmTL mT99BCF3CaoHBYZqCeeT3GJux/OmBMaTkPM8M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=UzV0QoAgzK+MX3VJy8MGVZyxhzu9ccbUlFN9jvnBeZ8=; b=XK5RZzlhsO1S2aKSTS/Xde9NZEw4cGBVCe7RiAKmMP5Vl4DTBYSuUGwoa2Rg+bSXAy MHuyAdF84YLOFwL+IqkBKTs0cH7fAen6vE0hS2h0YRfMmMQ4e59u+eKXGSYhLJ+U8moA Pl1IG3jknaY86SMCFtKW2/bid2kSlMTMtGHsjrK82WrSLkNaBfFIG53lOjmie+vRZ5Eg 71LcnYT2kDxvfW5yGtLaB8EYXv8iM3NW7mId/EjIA+yw8uvMsIPVpt8uQvO31P/gkC5a s2jup76B25AzkvuzJFhSG12esqlyQAkWR0qLVrj6CwdHEunJgYzUlX7pLmyoy8Sq6TG1 g8aw== X-Gm-Message-State: ALoCoQmHJ8788RWYFBQ5Rvu5SCk/huVP42wRcXZ5Gan5anvNgsMKWpqKhQqYzueQB36QJREIb0zT MIME-Version: 1.0 X-Received: by 10.202.207.207 with SMTP id f198mr33714165oig.46.1415008466153; Mon, 03 Nov 2014 01:54:26 -0800 (PST) Received: by 10.182.188.103 with HTTP; Mon, 3 Nov 2014 01:54:26 -0800 (PST) In-Reply-To: References: <07110D8A7AC60C49AE2432100017A3F627792301@xmb-rcd-x12.cisco.com> <07110D8A7AC60C49AE2432100017A3F627792345@xmb-rcd-x12.cisco.com> <07110D8A7AC60C49AE2432100017A3F62779237D@xmb-rcd-x12.cisco.com> Date: Mon, 3 Nov 2014 15:24:26 +0530 Message-ID: Subject: Re: [Important] Merging Grouping Changes to Master Branch From: Rajkumar Rajaratnam To: "dev@stratos.apache.org" Content-Type: multipart/alternative; boundary=001a113df27efad2310506f15425 X-Virus-Checked: Checked by ClamAV on apache.org --001a113df27efad2310506f15425 Content-Type: text/plain; charset=UTF-8 Fixed AS issues On Mon, Nov 3, 2014 at 2:44 PM, Lasindu Charith wrote: > I have fixed some compilation errors in Cloud Controller. > > On Mon, Nov 3, 2014 at 2:07 PM, Manula Chathurika Thantriwatte < > manulac@wso2.com> wrote: > >> Hi, >> >> I have started on grouping CLI commands. >> >> Thanks ! >> >> On Mon, Nov 3, 2014 at 1:53 PM, Rajkumar Rajaratnam >> wrote: >> >>> Fixed messaging component issues. >>> >>> On Mon, Nov 3, 2014 at 1:14 PM, Imesh Gunaratne >>> wrote: >>> >>>> I have now merged latest changes from 4.0.0-grouping branch to >>>> docker-grouping-merge branch. We can now fix merge issues in >>>> docker-grouping-merge branch. >>>> >>>> Once features are stable will move changes to master branch. >>>> >>>> Thanks >>>> >>>> On Sun, Nov 2, 2014 at 9:15 AM, Imesh Gunaratne >>>> wrote: >>>> >>>>> Isuru is working on a major refactoring task ("[Grouping] Branch may >>>>> be Unstable ATM"). Will hold this effort until that is completed. >>>>> >>>>> On Sun, Nov 2, 2014 at 12:19 AM, Lahiru Sandaruwan >>>>> wrote: >>>>> >>>>>> I have tested grouping feature in EC2 up to instance are spawning. >>>>>> Will be testing further. >>>>>> >>>>>> Thanks. >>>>>> >>>>>> On Sat, Nov 1, 2014 at 9:57 PM, Rajkumar Rajaratnam < >>>>>> rajkumarr@wso2.com> wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> When and where are we creating and adding cluster monitors (not app >>>>>>> monitors) to the AutoscalerContext? >>>>>>> I couldn't find any places. >>>>>>> >>>>>>> Thanks. >>>>>>> >>>>>>> On Sat, Nov 1, 2014 at 9:37 PM, Lahiru Sandaruwan >>>>>>> wrote: >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Sat, Nov 1, 2014 at 8:21 PM, Lahiru Sandaruwan >>>>>>> > wrote: >>>>>>>> >>>>>>>>> I get a NPE while trying to deploy the app definition without >>>>>>>>> properties, looking into it. >>>>>>>>> >>>>>>>>> >>>>>>>> I have added a null check. Will commit the fix. >>>>>>>> >>>>>>>>> [2014-11-01 20:17:18,922] ERROR >>>>>>>>> {org.apache.stratos.rest.endpoint.handlers.CustomThrowableExceptionMapper} >>>>>>>>> - Internal server error >>>>>>>>> >>>>>>>>> java.lang.NullPointerException >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.stratos.rest.endpoint.services.ServiceUtils.deployApplicationDefinition(ServiceUtils.java:139) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.stratos.rest.endpoint.services.StratosAdmin.deployApplicationDefinition(StratosAdmin.java:139) >>>>>>>>> >>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>>>>>> >>>>>>>>> at >>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>>>>>>>> >>>>>>>>> at >>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>>>>>>> >>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:606) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) >>>>>>>>> >>>>>>>>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:194) >>>>>>>>> >>>>>>>>> at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:100) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:57) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:93) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:271) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:239) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:223) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:203) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:137) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:159) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286) >>>>>>>>> >>>>>>>>> at >>>>>>>>> org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:206) >>>>>>>>> >>>>>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) >>>>>>>>> >>>>>>>>> On Sat, Nov 1, 2014 at 3:14 PM, Imesh Gunaratne >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> I have now fixed few more issues: >>>>>>>>>> - Removing subscription resource from REST API and CLI. >>>>>>>>>> - Adding isKubernetesCluster property to >>>>>>>>>> ApplicationClusterContext. >>>>>>>>>> - Passing properties from Application definition to the cluster >>>>>>>>>> objects. This is needed for Kubernetes. >>>>>>>>>> - Packaging drools files in stratos distribution (some of the >>>>>>>>>> files were placed in repository/conf while the rest were at >>>>>>>>>> repository/conf/drools). >>>>>>>>>> >>>>>>>>>> Please find the sample application definition file which I have >>>>>>>>>> been using for testing attached with this mail. >>>>>>>>>> >>>>>>>>>> On Sat, Nov 1, 2014 at 3:09 PM, Imesh Gunaratne >>>>>>>>> > wrote: >>>>>>>>>> >>>>>>>>>>> Can a service cluster(say php cluster) span across two >>>>>>>>>>> partitions(in other words two kub cluster)? I guess kubernetes can manage >>>>>>>>>>> their containers within a kub cluster, not between kub clusters? For >>>>>>>>>>> example, if we say we need 3 replicas, it can ensure there are 3 replicas >>>>>>>>>>> in one kub cluster. It can't manage 3 replicas within two kub cluster. Am I >>>>>>>>>>> missing something here? >>>>>>>>>>> >>>>>>>>>>> Raj: A good point, we can handle this in Stratos, shouldn't be a >>>>>>>>>>> problem. >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> Imesh Gunaratne >>>>>>>>>> >>>>>>>>>> Technical Lead, WSO2 >>>>>>>>>> Committer & PMC Member, Apache Stratos >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> -- >>>>>>>>> Lahiru Sandaruwan >>>>>>>>> Committer and PMC member, Apache Stratos, >>>>>>>>> Senior Software Engineer, >>>>>>>>> WSO2 Inc., http://wso2.com >>>>>>>>> lean.enterprise.middleware >>>>>>>>> >>>>>>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/ >>>>>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> -- >>>>>>>> Lahiru Sandaruwan >>>>>>>> Committer and PMC member, Apache Stratos, >>>>>>>> Senior Software Engineer, >>>>>>>> WSO2 Inc., http://wso2.com >>>>>>>> lean.enterprise.middleware >>>>>>>> >>>>>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/ >>>>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Raj >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> -- >>>>>> Lahiru Sandaruwan >>>>>> Committer and PMC member, Apache Stratos, >>>>>> Senior Software Engineer, >>>>>> WSO2 Inc., http://wso2.com >>>>>> lean.enterprise.middleware >>>>>> >>>>>> email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/ >>>>>> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146 >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Imesh Gunaratne >>>>> >>>>> Technical Lead, WSO2 >>>>> Committer & PMC Member, Apache Stratos >>>>> >>>> >>>> >>>> >>>> -- >>>> Imesh Gunaratne >>>> >>>> Technical Lead, WSO2 >>>> Committer & PMC Member, Apache Stratos >>>> >>> >>> >>> >>> -- >>> Raj >>> >> >> >> >> -- >> Regards, >> Manula Chathurika Thantriwatte >> Software Engineer >> WSO2 Inc. : http://wso2.com >> lean . enterprise . middleware >> >> email : manulac@wso2.com / manula@apache.org >> phone : +94 772492511 >> blog : http://manulachathurika.blogspot.com/ >> >> >> >> > > > -- > *Lasindu Charith* > Software Engineer, WSO2 Inc. > Mobile: +94714427192 > Web: blog.lasindu.com > -- Raj --001a113df27efad2310506f15425 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Fixed AS issues

On Mon, Nov 3, 2014 at 2:44 PM, Lasindu Charith <l= asindu@wso2.com> wrote:
I have fixed some compilation errors in Cloud Controller.

On Mon, Nov 3, 2014 at 2:07 PM, Manula Chathurika Thantriwatte <man= ulac@wso2.com> wrote:
Hi,

I have started on grouping CLI commands.=

Thanks !

On Mon, Nov 3, 2014 at 1:53 PM, Rajk= umar Rajaratnam <rajkumarr@wso2.com> wrote:
Fixed messaging component issues.

On = Mon, Nov 3, 2014 at 1:14 PM, Imesh Gunaratne <imesh@apache.org> wrote:
I have now me= rged latest changes from 4.0.0-grouping branch to docker-grouping-merge bra= nch. We can now fix merge issues in docker-grouping-merge branch.

<= /div>
Once features are stable will move changes to master branch.
=
Thanks

On Sun, Nov 2, 2014 at 9:15 AM, Imesh Gunar= atne <imesh@apache.org> wrote:
Isuru is working on a major refactoring task ("[G= rouping] Branch may be Unstable ATM"). Will hold this effort until tha= t is completed.

On Sun, Nov 2, 2014 at 12:19 AM, Lahiru Sandaruwan <lahirus@= wso2.com> wrote:
I have tested grouping feature in EC2 up to instance are spawning.= Will be testing further.

Thanks.

On Sat, Nov 1, 2014 at 9= :57 PM, Rajkumar Rajaratnam <rajkumarr@wso2.com> wrote:
=
Hi,

= When and where are we creating and adding cluster monitors (not app monitor= s) to the AutoscalerContext?
I couldn't find any places.

Thanks.

On Sat, Nov 1, 2014 at 9:37 PM, Lahiru Sandaruwan <l= ahirus@wso2.com> wrote:


On Sat, Nov 1, 2014 at 8:21 PM, Lahiru Sandaruwan = <lahirus@wso2.com<= /a>> wrote:
I get a NPE while trying to deploy the app definition without pr= operties, looking into it.


=
I have added a null check. Will commit the fix.=C2=A0

[2014-11-01 20:17:18,922] ERROR {org.apache.stratos.rest.endpoint.= handlers.CustomThrowableExceptionMapper} -=C2=A0 Internal server error

java.lang.NullPointerException

at org.apache.stratos.rest.endpoint.services.Service= Utils.deployApplicationDefinition(ServiceUtils.java:139)

at org.apache.stratos.rest.endpoint.services.Stratos= Admin.deployApplicationDefinition(StratosAdmin.java:139)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Nati= ve Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Nativ= eMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(D= elegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)<= /span>

at org.apache.cxf.service.invoker.AbstractInvoker.pe= rformInvocation(AbstractInvoker.java:180)

at org.apache.cxf.service.invoker.AbstractInvoker.in= voke(AbstractInvoker.java:96)

at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInv= oker.java:194)

at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInv= oker.java:100)

at org.apache.cxf.interceptor.ServiceInvokerIntercep= tor$1.run(ServiceInvokerInterceptor.java:57)

at org.apache.cxf.interceptor.ServiceInvokerIntercep= tor.handleMessage(ServiceInvokerInterceptor.java:93)

at org.apache.cxf.phase.PhaseInterceptorChain.doInte= rcept(PhaseInterceptorChain.java:271)

at org.apache.cxf.transport.ChainInitiationObserver.= onMessage(ChainInitiationObserver.java:121)

at org.apache.cxf.transport.http.AbstractHTTPDestina= tion.invoke(AbstractHTTPDestination.java:239)

at org.apache.cxf.transport.servlet.ServletControlle= r.invokeDestination(ServletController.java:223)

at org.apache.cxf.transport.servlet.ServletControlle= r.invoke(ServletController.java:203)

at org.apache.cxf.transport.servlet.ServletControlle= r.invoke(ServletController.java:137)

at org.apache.cxf.transport.servlet.CXFNonSpringServ= let.invoke(CXFNonSpringServlet.java:159)

at org.apache.cxf.transport.servlet.AbstractHTTPServ= let.handleRequest(AbstractHTTPServlet.java:286)

at org.apache.cxf.transport.servlet.AbstractHTTPServ= let.doPost(AbstractHTTPServlet.java:206)

at javax.servlet.http.HttpServlet.service(HttpServle= t.java:755)


=
On Sat, Nov 1, 2014 at 3:14 PM, Imesh Gunaratne = <imesh@apache.org> wrote:
<= div dir=3D"ltr">I have now fixed few more issues:
- Removing subscripti= on resource from REST API and CLI.
- Adding isKubernetesCluster p= roperty to ApplicationClusterContext.
- Passing properties from App= lication definition to the cluster objects. This is needed for Kubernetes.<= /div>
- Packaging drools files in stratos distribution (some of the fil= es were placed in repository/conf while the rest were at repository/conf/dr= ools).

Please find the sample application definiti= on file which I have been using for testing attached with this mail.
<= /div>

= On Sat, Nov 1, 2014 at 3:09 PM, Imesh Gunaratne <imesh@apache.org> wrote:
Can a= service cluster(say php cluster) span across two partitions(in other words= two kub cluster)? I guess kubernetes can manage their containers within a = kub cluster, not between kub clusters? For example, if we say we need 3 rep= licas, it can ensure there are 3 replicas in one kub cluster. It can't = manage 3 replicas within two kub cluster. Am I missing something here?
<= div>
Raj: A good point, we can handle this in Stratos,= shouldn't be a problem.



--
Imesh Gunaratne

Technical Lead, W= SO2
Committer & PMC Member, Apache Stratos



<= font color=3D"#888888">--
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior=C2=A0Softw= are Engineer,
WSO2 Inc., h= ttp://wso2.com



--
--
Lahiru Sandaruwan
Committ= er and PMC member, Apache Stratos,
Senior=C2=A0Software Engineer,
WSO= 2 Inc., http://wso2.com



--
Raj



--
--
Lahiru Sandaruwan
Committer and PMC member, Apa= che Stratos,
Senior=C2=A0Software Engineer,
WSO2 Inc., http://wso2.com
=



--
<= div dir=3D"ltr">Imesh Gunaratne

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



--
=
Imesh Gunaratne

Technical Lead, WS= O2
Committer & PMC Member, Apache Stratos=



= --
=
Raj



<= font color=3D"#888888">--
<= span>
=
Regards,
Ma= nula Chathurika Thantriwatte
Software Engineer
= WSO2 Inc. : http://wso2.com
= phone : +94 772492511






--
Las= indu Charith
Software Engineer, WSO2 Inc.
Mobile: <= a href=3D"tel:%2B94714427192" value=3D"+94714427192" target=3D"_blank">+947= 14427192



--
<= div dir=3D"ltr">
Raj
--001a113df27efad2310506f15425--