Re: Shall we plan for a 4.1.0-M1 developer preview?

2014-09-18 Thread Nirmal Fernando
Upon a subscription for a docker Cartridge, now autoscaler calls CC, and CC deploys Kubernetes entities into the Kubernetes host cluster. Please see the following log. [2014-09-19 12:09:01,194] INFO {org.apache.stratos.messaging.message.processor.topology.CompleteTopologyMessageProcessor} - Topo

Re: Shall we plan for a 4.1.0-M1 developer preview?

2014-09-18 Thread Nirmal Fernando
Please note that the environment variable section in the above replicationController is not completed, found a bug! Will change the updated version once it is fixed. Following is a sample auto-generated Kubernetes proxy service; { "kind": "Service", "id": "test2-php-domain", "port": 4

[GitHub] stratos pull request: removing kubernetes cluster monitor on clust...

2014-09-18 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/stratos/pull/42 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enab

[GitHub] stratos pull request: Adding in isPublic property to beans for ten...

2014-09-18 Thread shirolk
GitHub user shirolk opened a pull request: https://github.com/apache/stratos/pull/44 Adding in isPublic property to beans for tenant isolation requirements - for STRATOS-761 You can merge this pull request into a Git repository by running: $ git pull https://github.com/shirol

[GitHub] stratos pull request: Adding in isPublic property to beans for ten...

2014-09-18 Thread shirolk
Github user shirolk closed the pull request at: https://github.com/apache/stratos/pull/43 --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is ena

[GitHub] stratos pull request: Adding in isPublic property to beans for ten...

2014-09-18 Thread shirolk
Github user shirolk commented on the pull request: https://github.com/apache/stratos/pull/43#issuecomment-56138827 Closing since this is missing one file - will open another with the full change ! --- If your project is set up for it, you can reply to this email and have your reply a

[jira] [Commented] (STRATOS-761) Tenant isolation for policies and definitions

2014-09-18 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14140058#comment-14140058 ] ASF GitHub Bot commented on STRATOS-761: GitHub user shirolk opened a pull reques

[jira] [Commented] (STRATOS-761) Tenant isolation for policies and definitions

2014-09-18 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14140054#comment-14140054 ] ASF GitHub Bot commented on STRATOS-761: Github user shirolk commented on the pul

[jira] [Commented] (STRATOS-761) Tenant isolation for policies and definitions

2014-09-18 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14140053#comment-14140053 ] ASF GitHub Bot commented on STRATOS-761: Github user shirolk closed the pull requ

Re: Shall we plan for a 4.1.0-M1 developer preview?

2014-09-18 Thread Nirmal Fernando
Here's a auto-generated Kubernetes replication controller json as of now, for clarity. This could change based on the other testing. { "kind": "ReplicationController", "id": "test2.php.domain", "apiVersion": "v1beta1", "labels": { "name": "test2.php.domain" }, "desi

Re: Shall we plan for a 4.1.0-M1 developer preview?

2014-09-18 Thread Nirmal Fernando
Here's the jsons and requests used. Register Host ClusterHost Json { "groupId": "KubGrp1", "description": "Kubernetes CoreOS cluster on EC2 ", "kubernetesMaster": { "hostId" : "KubHostMaster1", "hostname" : "master.dev.kubernetes.example.org",

Re: Updated Task List

2014-09-18 Thread Isuru Haththotuwa
Hi Martin, It seems the relevant tenant information is not set properly in the thread local carbon context. This is happening since Topology events, such as the Application Created event, are received in a separate thread, and the tenant information is not set in that particular thread. To overcom

RE: Updated Task List

2014-09-18 Thread Martin Eppel (meppel)
Ok, I integrate it with the subscription code in and give it a try, Thanks Martin From: isu...@wso2.com [mailto:isu...@wso2.com] On Behalf Of Isuru Haththotuwa Sent: Thursday, September 18, 2014 9:54 PM To: dev@stratos.apache.org Cc: Martin Eppel (meppel) Subject: Re: Updated Task List Hi Mart

[GitHub] stratos pull request: Adding in isPublic property to beans for ten...

2014-09-18 Thread shirolk
GitHub user shirolk opened a pull request: https://github.com/apache/stratos/pull/43 Adding in isPublic property to beans for tenant isolation requirements - for STRATOS-761 You can merge this pull request into a Git repository by running: $ git pull https://github.com/shirol

[jira] [Commented] (STRATOS-761) Tenant isolation for policies and definitions

2014-09-18 Thread ASF GitHub Bot (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14139985#comment-14139985 ] ASF GitHub Bot commented on STRATOS-761: GitHub user shirolk opened a pull reques

Re: Shall we plan for a 4.1.0-M1 developer preview?

2014-09-18 Thread Nirmal Fernando
On Fri, Sep 19, 2014 at 9:56 AM, Nirmal Fernando wrote: > Hi all, > > I've carried out following testing on the docker integration branch, so > far, and here's the status. > > * Set up a local Kubernetes cluster (master and 2 minions) and tested > basic Kubernetes operations on it. > * Tested Kub

Re: Shall we plan for a 4.1.0-M1 developer preview?

2014-09-18 Thread Nirmal Fernando
Hi all, I've carried out following testing on the docker integration branch, so far, and here's the status. * Set up a local Kubernetes cluster (master and 2 minions) and tested basic Kubernetes operations on it. * Tested Kubernetes host registration and here I faced an issue when hosts getting p

RE: exception handling in StratosManagerTopologyEventReceiver ?

2014-09-18 Thread Martin Eppel (meppel)
Ok, Makes sense, that’s what I implemented Thanks Martin From: isu...@wso2.com [mailto:isu...@wso2.com] On Behalf Of Isuru Haththotuwa Sent: Thursday, September 18, 2014 6:34 PM To: Martin Eppel (meppel) Cc: Reka Thirunavukkarasu; dev@stratos.apache.org Subject: Re: exception handling in Strato

Re: exception handling in StratosManagerTopologyEventReceiver ?

2014-09-18 Thread Isuru Haththotuwa
On Thu, Sep 18, 2014 at 10:27 PM, Martin Eppel (meppel) wrote: > Sounds good, > > > > Thanks > > > > Martin > > > > *From:* Reka Thirunavukkarasu [mailto:r...@wso2.com] > *Sent:* Thursday, September 18, 2014 9:55 AM > *To:* Martin Eppel (meppel) > *Cc:* dev@stratos.apache.org; Isuru Haththotuwa

RE: Updated Task List

2014-09-18 Thread Martin Eppel (meppel)
Hi Isuru, I verified the fix for the jira [1]. https://issues.apache.org/jira/browse/STRATOS-805 and it works, the event gets delivered. However I do face another issue, see exception below, I opened a JIRA for it: https://issues.apache.org/jira/browse/STRATOS-806 Thanks Martin TID: [0] [S

[jira] [Created] (STRATOS-806) Sending an ApplicationCreatedEvent throws Exception (java.lang.NullPointerException: Tenant domain has not been set in CarbonContext)

2014-09-18 Thread Martin Eppel (JIRA)
Martin Eppel created STRATOS-806: Summary: Sending an ApplicationCreatedEvent throws Exception (java.lang.NullPointerException: Tenant domain has not been set in CarbonContext) Key: STRATOS-806 URL: https://issue

Re: Wording at Docker-Kubenetes implementation

2014-09-18 Thread Nirmal Fernando
On Thu, Sep 18, 2014 at 7:58 PM, Lahiru Sandaruwan wrote: > > > On Thu, Sep 18, 2014 at 5:34 PM, Akila Ravihansa Perera < > raviha...@wso2.com> wrote: > >> Hi Lahiru, >> >> Thanks for bringing this up. The wording is bit confusing right now. >> We have referenced the same concept using different

RE: exception handling in StratosManagerTopologyEventReceiver ?

2014-09-18 Thread Martin Eppel (meppel)
Sounds good, Thanks Martin From: Reka Thirunavukkarasu [mailto:r...@wso2.com] Sent: Thursday, September 18, 2014 9:55 AM To: Martin Eppel (meppel) Cc: dev@stratos.apache.org; Isuru Haththotuwa (isu...@wso2.com) Subject: Re: exception handling in StratosManagerTopologyEventReceiver ? Hi Martin,

Re: exception handling in StratosManagerTopologyEventReceiver ?

2014-09-18 Thread Reka Thirunavukkarasu
Hi Martin, If it is in the StratosManagerTopologyEventReceiver when receiving event in the listener, AFAIK we have handled it there itself rather throwing it. I just checked the way it is handled in AutoscalerTopologyEventReceiver. Thanks, Reka On Thu, Sep 18, 2014 at 10:12 PM, Martin Eppel (mep

exception handling in StratosManagerTopologyEventReceiver ?

2014-09-18 Thread Martin Eppel (meppel)
Hi, For the grouping feature (developed on 4.0.0-grouping branch) I am adding the persistence of an application subscription when the ApplicationCreatedEvent is received in the stratos manager (StratosManagerTopologyEventReceiver). Persisting the application required to handle some exception, wh

Re: Wording at Docker-Kubenetes implementation

2014-09-18 Thread Lahiru Sandaruwan
On Thu, Sep 18, 2014 at 5:34 PM, Akila Ravihansa Perera wrote: > Hi Lahiru, > > Thanks for bringing this up. The wording is bit confusing right now. > We have referenced the same concept using different terms in different > components. I think we should come to a mutual agreement on using > these

Re: [Update] Apache Stratos Meta Data Service Review

2014-09-18 Thread Gayan Gunarathne
Please use the following hangout link https://plus.google.com/hangouts/_/hoaevent/AP36tYca58-gKvXH2l6Yg1ws-yYk3NEuhM7ZDBae7mB-v6CrCiLejw?authuser=0&hl=en Thanks, Gayan On Thu, Sep 18, 2014 at 7:04 PM, Gayan Gunarathne wrote: > Please find the hangout link > > > https://plus.google.com/hangout

Re: [Update] Apache Stratos Meta Data Service Review

2014-09-18 Thread Gayan Gunarathne
Please find the hangout link https://plus.google.com/hangouts/_/hoaevent/AP36tYfknq_YPCLi81GfudQzcUfhPrvzl3izhtMkfxZqrR0BS6Vl9w?authuser=0&hl=en On Wed, Sep 17, 2014 at 3:24 PM, Melan Nimesh wrote: > > On Wed, Sep 17, 2014 at 3:21 PM, Isuru Haththotuwa > wrote: > >> Hi Melan, >> >> >> On Wed,

Re: [Discuss] Coding Standards & Best Practices Guidelines

2014-09-18 Thread Mariangela Hills
Hi All, I added the content in [1]. Please let me know if any changed are needed. [1] https://cwiki.apache.org/confluence/display/STRATOS/Coding+Standards+and+Best+Practices Regards, Mariangela *--* Mariangela Hills Senior Technical Writer *WSO2, Inc.*lean.enterprise.middleware. m: +94 773

[jira] [Commented] (STRATOS-745) Wiki - Add a section to explain Stratos configurations

2014-09-18 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-745?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138874#comment-14138874 ] Mariangela Hills commented on STRATOS-745: -- Added configuration details on cartr

[jira] [Resolved] (STRATOS-804) [Wiki] Coding Standards & Best Practices Guidelines

2014-09-18 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariangela Hills resolved STRATOS-804. -- Resolution: Fixed Added content in [1]. [1] https://cwiki.apache.org/confluence/displ

[jira] [Resolved] (STRATOS-795) Stratos forgets about cartridges if they disappear while Stratos isn't running

2014-09-18 Thread Akila (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-795?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Akila resolved STRATOS-795. --- Resolution: Fixed Fix Version/s: 4.1.0 M1 > Stratos forgets about cartridges if they disappear while S

[jira] [Commented] (STRATOS-795) Stratos forgets about cartridges if they disappear while Stratos isn't running

2014-09-18 Thread Akila (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138847#comment-14138847 ] Akila commented on STRATOS-795: --- Fixed in 05e1ddc20a871b73b721487a13a2547cf9b8768d > Strat

Re: Wording at Docker-Kubenetes implementation

2014-09-18 Thread Akila Ravihansa Perera
Hi Lahiru, Thanks for bringing this up. The wording is bit confusing right now. We have referenced the same concept using different terms in different components. I think we should come to a mutual agreement on using these terms. +1 for using the term Docker hosts instead of Kubernetes host. Kube

Re: Meta Data Service Client as a Separate Component

2014-09-18 Thread Isuru Haththotuwa
Hi Akila, I'm not aware if there is a generic carbon component for this. But, I totally agree with the second point; we can implement a generic rest client. Currently we have one in the CLI, and now we are going to have the same for Kubernetes and Meta Data service clients. We can put all the requ

Re: MemberFault event is lost forever when MB is down

2014-09-18 Thread Michiel Blokzijl (mblokzij)
Hi, I’m guessing the fix for [1] will be in 4.1.0, right? I’m glad you managed to resolve both issues with 1 fix! Thanks and best regards, Michiel [1] https://issues.apache.org/jira/browse/STRATOS-795 On 12 Sep 2014, at 15:57, Lahiru Sandaruwan wrote: > Ok cool, Let's resolve the Jira. >

Re: [Discuss] Coding Standards & Best Practices Guidelines

2014-09-18 Thread Nirmal Fernando
I think we can use the general Java coding conventions http://www.oracle.com/technetwork/java/codeconvtoc-136057.html On Wed, Sep 17, 2014 at 10:30 AM, Mariangela Hills wrote: > Lakmal, will do! I have created a JIRA [1] to track this task. > > [1] https://issues.apache.org/jira/browse/STRATOS-8

Re: Updating min number of cartridge instances (partitionMin)..?

2014-09-18 Thread Michiel Blokzijl (mblokzij)
Hi, Ok, I look forward to that in 4.1.0! Thank you very much! Michiel On 12 Sep 2014, at 07:44, Udara Liyanage wrote: > Hi, > > Below is the jira to track the issue. > > [1] https://issues.apache.org/jira/browse/STRATOS-716 > > On Fri, Sep 12, 2014 at 11:00 AM, Lahiru Sandaruwan wrote: > H

Re: Apache Stratos 4.1.0 User Management and Permissions - Design and Code Review

2014-09-18 Thread Lasindu Charith
Hi all, Thank you all for participating in the hangout and I learnt a lot from it. You can find the hangout recording in [1 ] and the set of slides in [2

Re: Meta Data Service Client as a Separate Component

2014-09-18 Thread Akila Ravihansa Perera
Hi Isuru, Thanks for the explanation. Don't we have a Carbon platform component to achieve this? Just making sure we are not replicating the functionality. Can we create a generic REST client that can be used for communicating with other REST services too? For eg - we need to have a REST client

Re: Extending metadata service with service group

2014-09-18 Thread Gayan Gunarathne
+1 for this as above we are sending all the available properties/values, not just the ones want to update. So we can use PUT and get that state idempotent behavior for meta data. On Thu, Sep 18, 2014 at 1:55 PM, Shiroshica Kulatilake wrote: > > > On Thu, Sep 18, 2014 at 1:51 PM, Akila Ravihansa

[jira] [Comment Edited] (STRATOS-775) Error when trying to login as a tenant from Carbon UI

2014-09-18 Thread Lasindu Charith (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14138761#comment-14138761 ] Lasindu Charith edited comment on STRATOS-775 at 9/18/14 11:01 AM:

Re: Meta Data Service Client as a Separate Component

2014-09-18 Thread Isuru Haththotuwa
Hi Akila, On Thu, Sep 18, 2014 at 2:09 PM, Akila Ravihansa Perera wrote: > +1 > > Meta-data service is going to be vital when implementing clustering > support for application services as well. I think it's better to have > it as a separate component. > > Could you please explain what component

[jira] [Resolved] (STRATOS-775) Error when trying to login as a tenant from Carbon UI

2014-09-18 Thread Lasindu Charith (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lasindu Charith resolved STRATOS-775. - Resolution: Fixed This issue is due to cloud-services-desc.xml not having the cloudServic

[jira] [Updated] (STRATOS-775) Error when trying to login as a tenant from Carbon UI

2014-09-18 Thread Lasindu Charith (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lasindu Charith updated STRATOS-775: Affects Version/s: 4.1.0 M2 Fix Version/s: 4.1.0 M2 > Error when trying to login as

Re: Meta Data Service Client as a Separate Component

2014-09-18 Thread Akila Ravihansa Perera
+1 Meta-data service is going to be vital when implementing clustering support for application services as well. I think it's better to have it as a separate component. Could you please explain what components will have dependencies to the meta-data service client? This is going to be a REST cli

Re: Extending metadata service with service group

2014-09-18 Thread Akila Ravihansa Perera
Hi Udara, IMHO, since we are explicitly naming the URL objects when adding dependencies and properties ( ) it's better to use PUT operation instead of POST. PUT operation is idempotent while POST is not. So when creating named resources we should use PUT since repetitive requests will not have a

Re: Extending metadata service with service group

2014-09-18 Thread Shiroshica Kulatilake
On Thu, Sep 18, 2014 at 1:51 PM, Akila Ravihansa Perera wrote: > Hi Udara, > > IMHO, since we are explicitly naming the URL objects when adding > dependencies and properties ( ) > it's better to use PUT operation instead of POST. > > PUT operation is idempotent while POST is not. So when creatin

Re: stratos not starting - how to debug carbon start up?

2014-09-18 Thread chris snow
Oracle JDK does not solve this problem. I've updated the JIRA [1]. --- [1] https://issues.apache.org/jira/browse/STRATOS-776?focusedCommentId=14135339&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14135339 On Mon, Sep 15, 2014 at 8:05 AM, Lasindu Charith wrote: