Re: [Discuss] Deploy Application API Resource Path Updated

2014-12-21 Thread Dakshika Jayathilaka
noticed.. *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Mon, Dec 22, 2014 at 1:23 PM, Imesh Gunaratne wrote: > Hi Devs, > > Please note that we fixed an issue in Deploy Application API method > resource path today and now the resource path looks li

Re: New committer and PMC member: Gayan Gunarathne

2014-12-21 Thread Lasindu Charith
Congratulations Gayan ... On Mon, Dec 22, 2014 at 1:22 PM, Dakshika Jayathilaka wrote: > Congratulations Gayan..! > > *Dakshika Jayathilaka* > Software Engineer > WSO2, Inc. > lean.enterprise.middleware > 0771100911 > > On Mon, Dec 22, 2014 at 1:20 PM, Reka Thirunavukkarasu > wrote: > >> Co

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Rajkumar Rajaratnam
And make sure that the ports are open. Instance activated event will be sent by the agent only if ports are open. Thanks. On Mon, Dec 22, 2014 at 1:15 PM, Udara Liyanage wrote: > Hi Raj, > > Logs are missed since instance is killed as an obsolete member. I will > provide the logs next time. > >

[Discuss] Deploy Application API Resource Path Updated

2014-12-21 Thread Imesh Gunaratne
Hi Devs, Please note that we fixed an issue in Deploy Application API method resource path today and now the resource path looks like below: POST /applications/{applicationId}/deploy Modification: "s" was missing in applications block. Thanks -- Imesh Gunaratne Technical Lead, WSO2 Committ

Re: New committer and PMC member: Gayan Gunarathne

2014-12-21 Thread Dakshika Jayathilaka
Congratulations Gayan..! *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Mon, Dec 22, 2014 at 1:20 PM, Reka Thirunavukkarasu wrote: > Congratz Gayan..!!! > > > Thanks, > Reka > > On Mon, Dec 22, 2014 at 12:21 PM, Imesh Gunaratne > wrote: > >> Congra

Re: New committer and PMC member: Gayan Gunarathne

2014-12-21 Thread Reka Thirunavukkarasu
Congratz Gayan..!!! Thanks, Reka On Mon, Dec 22, 2014 at 12:21 PM, Imesh Gunaratne wrote: > Congratulations Gayan! You made great contributions to Stratos during past > months, hope committership will help you to contribute further. Keep up the > good work. > > Thanks > > On Mon, Dec 22, 2014

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Udara Liyanage
Hi Raj, Logs are missed since instance is killed as an obsolete member. I will provide the logs next time. On Mon, Dec 22, 2014 at 1:13 PM, Rajkumar Rajaratnam wrote: > > Hi Udara, > > Can you attach the agent log? > > Thanks. > > On Mon, Dec 22, 2014 at 1:04 PM, Udara Liyanage wrote: > >> Hi r

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Rajkumar Rajaratnam
Hi Udara, Can you attach the agent log? Thanks. On Mon, Dec 22, 2014 at 1:04 PM, Udara Liyanage wrote: > Hi raj, > > I tested with lates python code base. This time member is in topology and > instance spawned event is also received. But yet instance activated is not > sent. > > *1) Instance s

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Udara Liyanage
Hi raj, I tested with lates python code base. This time member is in topology and instance spawned event is also received. But yet instance activated is not sent. *1) Instance started event received* 2014-12-22 12:53:49,904:DEBUG:Property added: [key] STRATOS_ MEMBER_PROPERTY_PRIMARY[value] fals

[jira] [Created] (STRATOS-1049) Min count is not maintained if a member did not join

2014-12-21 Thread Udara Liyanage (JIRA)
Udara Liyanage created STRATOS-1049: --- Summary: Min count is not maintained if a member did not join Key: STRATOS-1049 URL: https://issues.apache.org/jira/browse/STRATOS-1049 Project: Stratos

[GitHub] stratos pull request: Messaging model changes and MQTT integration

2014-12-21 Thread swgkg
Github user swgkg commented on the pull request: https://github.com/apache/stratos/pull/50#issuecomment-67807297 Thanks Johann for the comments. Added the PR#159 with the context aware error messages. --- If your project is set up for it, you can reply to this email and have

[GitHub] stratos pull request: Refactor messaging util class

2014-12-21 Thread swgkg
Github user swgkg closed the pull request at: https://github.com/apache/stratos/pull/162 --- 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

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Udara Liyanage
Hi Raj, Thanks for the info. I will check with updated agent. On Mon, Dec 22, 2014 at 12:24 PM, Rajkumar Rajaratnam wrote: > > Hi Udara, > > Are you using the latest python agent? > > Chamila changed the agent yesterday. Member object doesn't have an > attribute called "memberIp anymore. It has

[GitHub] stratos pull request: Refactor messaging util class

2014-12-21 Thread swgkg
Github user swgkg commented on the pull request: https://github.com/apache/stratos/pull/162#issuecomment-67807555 Thanks Imesh for merging --- 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

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Udara Liyanage
Hi Isuru, Raj, Current codebase have below line on 190th line of events.py. May be agent in my puppet master is outdated. I will update it and try again. cluster_obj.hostnames = cluster_str["hostNames"] On Mon, Dec 22, 2014 at 12:22 PM, Rajkumar Rajaratnam wrote: > > Just noticed that there i

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Rajkumar Rajaratnam
Hi Udara, Are you using the latest python agent? Chamila changed the agent yesterday. Member object doesn't have an attribute called "memberIp anymore. It has been changed to defaultPrivateIP. Latest python agent has this changes. Thanks. On Mon, Dec 22, 2014 at 12:22 PM, Rajkumar Rajaratnam

[GitHub] stratos pull request: Refactor messaging util class

2014-12-21 Thread imesh
Github user imesh commented on the pull request: https://github.com/apache/stratos/pull/162#issuecomment-67807282 THanks Gayan, this pull request is not merged to master branch. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as w

[GitHub] stratos pull request: Messaging model changes and MQTT integration

2014-12-21 Thread swgkg
Github user swgkg commented on a diff in the pull request: https://github.com/apache/stratos/pull/50#discussion_r22155958 --- Diff: components/org.apache.stratos.cloud.controller/src/main/java/org/apache/stratos/cloud/controller/internal/CloudControllerDSComponent.java --- @@ -44,

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Rajkumar Rajaratnam
Just noticed that there is an error in parsing complete topology event. So initialization didn't happen as Isuru mentioned. Thanks. On Mon, Dec 22, 2014 at 12:19 PM, Rajkumar Rajaratnam wrote: > Hi, > > AFAIR, agent will wait for two conditions to happen. It will proceed if > either of two cond

Re: New committer and PMC member: Gayan Gunarathne

2014-12-21 Thread Imesh Gunaratne
Congratulations Gayan! You made great contributions to Stratos during past months, hope committership will help you to contribute further. Keep up the good work. Thanks On Mon, Dec 22, 2014 at 12:00 PM, Manula Chathurika Thantriwatte < manu...@wso2.com> wrote: > Hi, > > Congratulations Gayan. >

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Rajkumar Rajaratnam
Hi, AFAIR, agent will wait for two conditions to happen. It will proceed if either of two conditions becomes true. 1. Member should be in the topology 2. Agent should get instance spawned event from CC So either of them didn't happen for you. Thanks. On Mon, Dec 22, 2014 at 12:17 PM, Isuru

Re: Application topology update and some improvements

2014-12-21 Thread Imesh Gunaratne
Hi Dakshika, This is now merged to master branch. Thanks On Mon, Dec 22, 2014 at 11:36 AM, Dakshika Jayathilaka wrote: > Hi Devs, > > can you please merge below pull on $subject. > > https://github.com/apache/stratos/pull/161 > > Now topology supported for multiple instances. > > Thank you, >

Re: Why application is parsed twice

2014-12-21 Thread Imesh Gunaratne
Great thanks Udara! On Mon, Dec 22, 2014 at 10:01 AM, Udara Liyanage wrote: > Hi Imesh, > > I changed this to application creating time, but could not push the > changes. > > On Sun, Dec 21, 2014 at 11:48 PM, Imesh Gunaratne > wrote: >> >> Hi Udara, >> >> Thanks for the information, I see the b

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Isuru Haththotuwa
HI Udara, There is an error log about parsing the complete Topology event. Maybe the event did not get parsed correctly, and the required initialization did not happen. On Mon, Dec 22, 2014 at 12:12 PM, Udara Liyanage wrote: > Hi Chamila, > > I get the ":Waiting for Cartridge Agent to be initia

Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Udara Liyanage
Hi Chamila, I get the ":Waiting for Cartridge Agent to be initialized..." logs continuously even though complete topology and complete tenant event is already received. 2014-12-22 12:04:47,595:DEBUG:Waiting for Cartridge Agent to be initialized... 2014-12-22 12:04:48,596:DEBUG:Waiting for Cartri

[GitHub] stratos pull request: Meta data service improvement with code refa...

2014-12-21 Thread swgkg
Github user swgkg commented on the pull request: https://github.com/apache/stratos/pull/119#issuecomment-67806810 Thanks. This is cover with PR#162 --- 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

[GitHub] stratos pull request: Refactor messaging util class

2014-12-21 Thread swgkg
GitHub user swgkg opened a pull request: https://github.com/apache/stratos/pull/162 Refactor messaging util class This PR will update messaging Util class with constants. You can merge this pull request into a Git repository by running: $ git pull https://github.com/gayangunara

Re: New committer and PMC member: Gayan Gunarathne

2014-12-21 Thread Manula Chathurika Thantriwatte
Hi, Congratulations Gayan. On Mon, Dec 22, 2014 at 11:45 AM, Lakmal Warusawithana wrote: > The Project Management Committee (PMC) for Apache Stratos > has asked Gayan Gunarathne to become a committer and PMC member > and we are pleased to announce that he has accepted. > > Being a committer ena

[jira] [Commented] (STRATOS-895) Stratos only includes max of one private IP and one public IP in topology events

2014-12-21 Thread Rajkumar Rajaratnam (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-895?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14255481#comment-14255481 ] Rajkumar Rajaratnam commented on STRATOS-895: - Fixed in 2f93602e587619d3

[jira] [Assigned] (STRATOS-895) Stratos only includes max of one private IP and one public IP in topology events

2014-12-21 Thread Rajkumar Rajaratnam (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rajkumar Rajaratnam reassigned STRATOS-895: --- Assignee: Rajkumar Rajaratnam > Stratos only includes max of one private IP

[jira] [Resolved] (STRATOS-895) Stratos only includes max of one private IP and one public IP in topology events

2014-12-21 Thread Rajkumar Rajaratnam (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rajkumar Rajaratnam resolved STRATOS-895. - Resolution: Fixed Fix Version/s: 4.1.0 Alpha > Stratos only includes max o

New committer and PMC member: Gayan Gunarathne

2014-12-21 Thread Lakmal Warusawithana
The Project Management Committee (PMC) for Apache Stratos has asked Gayan Gunarathne to become a committer and PMC member and we are pleased to announce that he has accepted. Being a committer enables easier contribution to the project since there is no need to go via the patch submission process.

Application topology update and some improvements

2014-12-21 Thread Dakshika Jayathilaka
Hi Devs, can you please merge below pull on $subject. https://github.com/apache/stratos/pull/161 Now topology supported for multiple instances. Thank you, Bst Regards, *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911

[jira] [Created] (STRATOS-1048) CEP OOM error when used in Single JVM mode for several days

2014-12-21 Thread Lasindu Charith (JIRA)
Lasindu Charith created STRATOS-1048: Summary: CEP OOM error when used in Single JVM mode for several days Key: STRATOS-1048 URL: https://issues.apache.org/jira/browse/STRATOS-1048 Project: Strato

[jira] [Updated] (STRATOS-1048) CEP OOM error when used in Single JVM mode for several days

2014-12-21 Thread Lasindu Charith (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lasindu Charith updated STRATOS-1048: - Attachment: CEP_OOM.patch > CEP OOM error when used in Single JVM mode for several days

[GitHub] stratos pull request: Application topology update and some improve...

2014-12-21 Thread dakshika
GitHub user dakshika opened a pull request: https://github.com/apache/stratos/pull/161 Application topology update and some improvements You can merge this pull request into a Git repository by running: $ git pull https://github.com/dakshika/stratos application-topology-fix

Re: [Dev][ESB] Please merge the below pull request

2014-12-21 Thread Manula Chathurika Thantriwatte
Hi, Sorry this is not relevant for Stratos. Mistakenly I have missed the mailing list. Sorry for the inconvenienced happen. Thanks ! On Mon, Dec 22, 2014 at 11:27 AM, Vanjikumaran Sivajothy wrote: > Hi Manula, > > In this pull request , code is not honoring the code standards. Therefore, > I a

[Dev][ESB] Please merge the below pull request

2014-12-21 Thread Manula Chathurika Thantriwatte
Hi, $subject for [1]. [1] https://github.com/wso2-dev/wso2-synapse/pull/145 Thanks ! -- Regards, Manula Chathurika Thantriwatte Software Engineer WSO2 Inc. : http://wso2.com lean . enterprise . middleware email : manu...@wso2.com / man...@apache.org phone : +94 772492511 blog : http://manula

Re: Why application is parsed twice

2014-12-21 Thread Udara Liyanage
Hi Imesh, I changed this to application creating time, but could not push the changes. On Sun, Dec 21, 2014 at 11:48 PM, Imesh Gunaratne wrote: > > Hi Udara, > > Thanks for the information, I see the below logic > in DefaultApplicationParser: > > private ApplicationClusterContext createApplicati

[GitHub] stratos pull request: Meta data service improvement with code refa...

2014-12-21 Thread muthulee
Github user muthulee commented on a diff in the pull request: https://github.com/apache/stratos/pull/119#discussion_r22154213 --- Diff: components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/util/Util.java --- @@ -169,20 +179,31 @@ public static Integer

Re: [Discuss] Kubernetes Work Flow for 4.1.0 Release

2014-12-21 Thread Imesh Gunaratne
Thanks Lakmal for the clear explanation! Thanks On Mon, Dec 22, 2014 at 7:06 AM, Lakmal Warusawithana wrote: > > > On Mon, Dec 22, 2014 at 4:05 AM, Martin Eppel (meppel) > wrote: > >> Hi Imesh, >> >> >> >> As 4.1 will support grouping for VMs, will it also support docker >> containers and how

Re: [Discuss] Kubernetes Work Flow for 4.1.0 Release

2014-12-21 Thread Lakmal Warusawithana
On Mon, Dec 22, 2014 at 4:05 AM, Martin Eppel (meppel) wrote: > Hi Imesh, > > > > As 4.1 will support grouping for VMs, will it also support docker > containers and how will it integrate with (if at all) Kubernetes ? > > > We have bring grouping and kubernetes into same work flow. Only deferenc

RE: [Discuss] Kubernetes Work Flow for 4.1.0 Release

2014-12-21 Thread Martin Eppel (meppel)
Hi Imesh, As 4.1 will support grouping for VMs, will it also support docker containers and how will it integrate with (if at all) Kubernetes ? Thanks Martin From: Imesh Gunaratne [mailto:im...@apache.org] Sent: Sunday, December 21, 2014 10:06 AM To: dev Subject: Re: [Discuss] Kubernetes Work F

Re: Error at application deployment(Deployment policy persistence)

2014-12-21 Thread Lahiru Sandaruwan
Thanks Imesh! On Mon, Dec 22, 2014 at 1:23 AM, Imesh Gunaratne wrote: > The problem was with the change I did in > org.apache.stratos.common.Property class where value attribute type was > changed from String to Object. > I have now fixed this, please take a pull and build the complete Stratos >

Re: Error at application deployment(Deployment policy persistence)

2014-12-21 Thread Imesh Gunaratne
The problem was with the change I did in org.apache.stratos.common.Property class where value attribute type was changed from String to Object. I have now fixed this, please take a pull and build the complete Stratos package. Sorry about the inconvenience caused. Thanks On Mon, Dec 22, 2014 at 1

Re: Error at application deployment(Deployment policy persistence)

2014-12-21 Thread Lahiru Sandaruwan
hmm. I checked that too, generated "serialVersionUID" also with no luck. On Mon, Dec 22, 2014 at 12:00 AM, Imesh Gunaratne wrote: > Strange, DeploymentPolicy is serializable: > > https://github.com/apache/stratos/blob/master/components/org.apache.stratos.autoscaler/src/main/java/org/apache/strat

Re: Error at application deployment(Deployment policy persistence)

2014-12-21 Thread Imesh Gunaratne
Strange, DeploymentPolicy is serializable: https://github.com/apache/stratos/blob/master/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/pojo/policy/deployment/DeploymentPolicy.java On Sun, Dec 21, 2014 at 11:53 PM, Lahiru Sandaruwan wrote: > Hi all, > > $sub

Re: REST API does not set carbon context when a user is logged

2014-12-21 Thread Imesh Gunaratne
On Sun, Dec 21, 2014 at 10:25 PM, Udara Liyanage wrote: > > Possible solutions came to my mind. > > 1) Add oAuth to Stratos API too. > Yes this is something we need to implement irrespective of this issue. > 2) User get a session first time and uses it for subsequent call > There are two sessi

Error at application deployment(Deployment policy persistence)

2014-12-21 Thread Lahiru Sandaruwan
Hi all, $subject, It seems the DeploymentPolicy object is not serializable at registry persistence attempt, [2014-12-21 23:52:47,640] ERROR {org.apache.stratos.autoscaler.api.AutoScalerServiceImpl} - Application deployment failed org.apache.stratos.autoscaler.exception.AutoScalerException: Coul

Re: Why application is parsed twice

2014-12-21 Thread Imesh Gunaratne
Hi Udara, Thanks for the information, I see the below logic in DefaultApplicationParser: private ApplicationClusterContext createApplicationClusterContext () throws ApplicationDefinitionException { ... String oAuth_token = createToken(appId); payloadData.add(TO

Re: [Discuss] Kubernetes Work Flow for 4.1.0 Release

2014-12-21 Thread Imesh Gunaratne
Hi Devs, I have now completed the initial implementation of the KubernetesIaas and pushed changes to master branch. Functionality: - A member is mapped to a Kubernetes Pod. - A replication controller is created for each member. This is to avoid the following complications that may arise when a r

REST API does not set carbon context when a user is logged

2014-12-21 Thread Udara Liyanage
Hi, Currently authentication handlers of Stratos REST API check whether user is valid. If the user is valid, the API call is allowed to proceed, no user information is set to carbon context. This is OK since CC, AS services are not secured services. The issue occurs when a component tries to call

Re: Why application is parsed twice

2014-12-21 Thread Udara Liyanage
Hi Imesh, Below are the admin services using and operations OAuthAdminService - registerOAuthApplicationData IdentityApplicationManagementService - createApplication, getApplication, updateApplication Since authentication handlers does not set the carbon context, there is no way of identifying t

Re: Replacing latest CC wsdl gives compilation errors in AS

2014-12-21 Thread Dakshika Jayathilaka
Seems members are activating now without an issue.. Thanks Raj.. *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Sun, Dec 21, 2014 at 9:03 PM, Rajkumar Rajaratnam wrote: > Sorry for the noise. Compiling now :) > > Thanks. > > On Sun, Dec 21, 2014 at

Re: Replacing latest CC wsdl gives compilation errors in AS

2014-12-21 Thread Rajkumar Rajaratnam
Sorry for the noise. Compiling now :) Thanks. On Sun, Dec 21, 2014 at 8:55 PM, Rajkumar Rajaratnam wrote: > Hi, > > I added some new fields in MemberContext.java. Then I started the server, > got the new CC wsdl and replaced it. > > When compiling the project, AS gives compilation errors. > > [

Replacing latest CC wsdl gives compilation errors in AS

2014-12-21 Thread Rajkumar Rajaratnam
Hi, I added some new fields in MemberContext.java. Then I started the server, got the new CC wsdl and replaced it. When compiling the project, AS gives compilation errors. [INFO] BUILD FAILURE [INFO] [INFO] Total time: 6.81

Re: Why application is parsed twice

2014-12-21 Thread Imesh Gunaratne
Can you please explain those admin calls Udara? I can see ten user logins for an application having two cartridges for one application parse process: [2014-12-21 04:21:56,892] INFO {org.apache.stratos.autoscaler.api.AutoScalerServiceImpl} - Starting to add application: [application-id] single-gr

Re: Topology changes needed

2014-12-21 Thread Chamila De Alwis
Hi, I've reworked the changes and pushed to remote. Please merge the PR[1]. [1] - https://github.com/apache/stratos/pull/160 Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Sun, Dec 21, 2014 at 7:07 PM, Chamila De Alwis wrote: > Hi Raj, >

[GitHub] stratos pull request: Multiple private and public member IPs - Car...

2014-12-21 Thread chamilad
GitHub user chamilad opened a pull request: https://github.com/apache/stratos/pull/160 Multiple private and public member IPs - Cartridge agent changes You can merge this pull request into a Git repository by running: $ git pull https://github.com/chamilad/stratos master Alte

Re: Topology changes needed

2014-12-21 Thread Chamila De Alwis
Hi Raj, Sorry, I couldn't get online sooner. Doing the rework now. Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Sun, Dec 21, 2014 at 6:15 PM, Rajkumar Rajaratnam wrote: > Hi Chamila, > > I couldn't apply our patches because there were so

Re: Why application is parsed twice

2014-12-21 Thread Udara Liyanage
Hi, Token generation has 2,3 admin calls and since token is generated twice per application (since application is parsed twice). That is why you see many logging logs. Touched, not typed. Erroneous words are a feature, not a typo.

Re: Topology changes needed

2014-12-21 Thread Rajkumar Rajaratnam
Hi Chamila, I couldn't apply our patches because there were some major refactoring, hence conflicts. I have re-done my changes and attached here. Can you also re-do the changes to python agent and send PR? Once you send a PR, I can commit my changes and merge your changes. Thanks. On Sun, Dec 2

Re: Why application is parsed twice

2014-12-21 Thread Imesh Gunaratne
Yes we could persist the parsed application and re-use it in the deployment process. We could do this improvement. BTW why do we see a list of user login statements in the log during the application parse process? Thanks On Sun, Dec 21, 2014 at 12:54 PM, Udara Liyanage wrote: > Hi, > > Applicat

Re: Error while retrieving the group/cluster on latest master

2014-12-21 Thread Lahiru Sandaruwan
On Sun, Dec 21, 2014 at 4:42 PM, Dakshika Jayathilaka wrote: > Hi Devs, > > I'm getting below error on application deployment. ( > https://github.com/rekathiru/grouping-samples/tree/master/group-scaling) > In this sample, childId should be replaced by alias. I have fixed the sample. > > [2014-1

Re: Error while retrieving the group/cluster on latest master

2014-12-21 Thread Dakshika Jayathilaka
Sorry for the buzz.. seems deployment policy json has changed. Thanks Lahiru to pointing out the issue. *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Sun, Dec 21, 2014 at 5:05 PM, Dakshika Jayathilaka wrote: > single cartridge app deployment also

Re: Error while retrieving the group/cluster on latest master

2014-12-21 Thread Dakshika Jayathilaka
single cartridge app deployment also get failed with NPE [2014-12-21 16:54:27,816] ERROR {org.apache.stratos.messaging.message.receiver.topology.TopologyEventMessageDelegator} - Failed to retrieve topology event message java.lang.NullPointerException at org.apache.stratos.autoscaler.pojo.policy.d

Error while retrieving the group/cluster on latest master

2014-12-21 Thread Dakshika Jayathilaka
Hi Devs, I'm getting below error on application deployment. ( https://github.com/rekathiru/grouping-samples/tree/master/group-scaling) [2014-12-21 16:35:00,831] INFO {org.apache.stratos.messaging.domain.applications.locking.ApplicationLockHierarchy} - Added lock for Application appscaling [2014

Re: Clarification on instanceRange check in RuleTaskDelegator

2014-12-21 Thread Reka Thirunavukkarasu
Thanks Lahiru for looking into this..yah..+1 for the above fix.. Thanks, Reka On Sun, Dec 21, 2014 at 4:30 PM, Lahiru Sandaruwan wrote: > I think we can solve it better by adding an "else" part to the logic, > > We can increase the required number instance by one in the case of > "max=min". The

Re: Clarification on instanceRange check in RuleTaskDelegator

2014-12-21 Thread Lahiru Sandaruwan
I think we can solve it better by adding an "else" part to the logic, We can increase the required number instance by one in the case of "max=min". Then it will send the maxOut event in rule evaluation since it is checked already. I'll change the commit as follows, if(instanceRange != 0){ fl

Re: Clarification on instanceRange check in RuleTaskDelegator

2014-12-21 Thread Lahiru Sandaruwan
Hi Reka, On Sun, Dec 21, 2014 at 1:18 PM, Reka Thirunavukkarasu wrote: > Hi Lahiru, > > I saw the following code when calculating required instances. Since it is > checking the instanceRange > 0, whenever the cluster instance reaches it > maximum, this instanceRange is 0. > We get the instance