Deploying Samples - Single Cartridge app in Mock IaaS

2015-03-08 Thread Anuruddha Liyanarachchi
Hi, I am getting following error when trying to do $subject. sudo ./deploy.sh > > /Users/anuruddha/GitRepo/stratos/samples/autoscaling-policies/autoscaling-policy-1.json > Adding autoscale policy... > * Hostname was NOT found in DNS cache > * Trying ::1... > * Connected to localhost (::1) port

Re: Problem with the response string when listing cartridges through CLI

2015-03-08 Thread Vishanth Balasubramaniam
Hi Dinithi, The output of the metadataKeys is a string array or an object array? Please refer [1] and check if that is the issue [1] - http://stackoverflow.com/questions/21374603/com-google-gson-jsonsyntaxexception-java-lang-illegalstateexception-in-android Thank you, Vishanth. On Mon, Mar 9, 2

[GitHub] stratos pull request: Fixed issues in CLI commands

2015-03-08 Thread asfgit
Github user asfgit closed the pull request at: https://github.com/apache/stratos/pull/263 --- 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

Re: Interesting app bursting pattern is implemented in one-after-another algorithm

2015-03-08 Thread Sajith Kariyawasam
Great! :) Couldn't we improve that by using '&' for AND and '|' for OR ? As I understood your implementation supports AND only, and is represented by '|'. Couldn't there be a requirement , say, 2nd app burst in either network-partition-4 *or* network-partition-5 ? On Mon, Mar 9, 2015 at 12:11 PM

[GitHub] stratos pull request: Fixed issues in CLI commands

2015-03-08 Thread dinithis
GitHub user dinithis opened a pull request: https://github.com/apache/stratos/pull/263 Fixed issues in CLI commands Fixed issues found in CLI commands remove-network-partition and describe-deployment-policy You can merge this pull request into a Git repository by running: $ gi

Interesting app bursting pattern is implemented in one-after-another algorithm

2015-03-08 Thread Rajkumar Rajaratnam
Hi Devs, I have extended one-after-another algorithm to support any app bursting pattern of your choice. { "id": "application-policy-4", "algorithm":"one-after-another", "networkPartitions":[ "network-partition-1", "network-partition-2", "network-partition-3",

Re: Changes to deployment policy schema

2015-03-08 Thread Imesh Gunaratne
@Shaheed: We would like to get your feedback on this? Thanks On Mon, Mar 9, 2015 at 9:01 AM, Vishanth Balasubramaniam wrote: > I feel naming from "partitionAlgo" to "algorithm" would be fine > > On Sat, Mar 7, 2015 at 1:34 AM, Imesh Gunaratne wrote: > >> If everyone agrees, I would like to pro

[jira] [Updated] (STRATOS-1201) Improvements for CLI code - Add Application & Application Signup

2015-03-08 Thread Mariangela Hills (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mariangela Hills updated STRATOS-1201: -- Summary: Improvements for CLI code - Add Application & Application Signup (was: Impro

Re: Problem with the response string when listing cartridges through CLI

2015-03-08 Thread Imesh Gunaratne
May be "metadataKeys" property is not marked as an array in CXF configuration in REST API web application. When there is only one element available, CXF does not return an array unless this configuration is there. On Mon, Mar 9, 2015 at 12:04 PM, Dinithi De Silva wrote: > Hi all, > > While listi

Re: Could not persist mock iaas instances in registry

2015-03-08 Thread Rajkumar Rajaratnam
Thanks Imesh, I will do the needful. Thanks. On Mon, Mar 9, 2015 at 12:04 PM, Imesh Gunaratne wrote: > Yes Raj, we need to mark them as transient. > > Thanks > > On Mon, Mar 9, 2015 at 11:33 AM, Rajkumar Rajaratnam > wrote: > >> healthStatNotifierScheduledFuture and instanceNotifierEventReceiv

Problem with the response string when listing cartridges through CLI

2015-03-08 Thread Dinithi De Silva
Hi all, While listing the available cartridges using CLI command "list-cartridges" I got the following exception. com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 112 The response string was as follows. [{"category"

Re: Could not persist mock iaas instances in registry

2015-03-08 Thread Imesh Gunaratne
Yes Raj, we need to mark them as transient. Thanks On Mon, Mar 9, 2015 at 11:33 AM, Rajkumar Rajaratnam wrote: > healthStatNotifierScheduledFuture and instanceNotifierEventReceiver are > not serializable. Shall we make them transient? > > Thanks. > > On Mon, Mar 9, 2015 at 11:20 AM, Rajkumar Ra

Re: Could not persist mock iaas instances in registry

2015-03-08 Thread Rajkumar Rajaratnam
healthStatNotifierScheduledFuture and instanceNotifierEventReceiver are not serializable. Shall we make them transient? Thanks. On Mon, Mar 9, 2015 at 11:20 AM, Rajkumar Rajaratnam wrote: > Hi, > > $Subject in master in Mock. > > [2015-03-09 11:17:28,512] INFO > {org.apache.stratos.mock.iaas.a

Could not persist mock iaas instances in registry

2015-03-08 Thread Rajkumar Rajaratnam
Hi, $Subject in master in Mock. [2015-03-09 11:17:28,512] INFO {org.apache.stratos.mock.iaas.api.MockIaasApi} - Starting mock instance: [member-id] my-php.php.domain4a05f696-4ebc-45d8-8dcd-e76963cfa3ac [2015-03-09 11:17:28,512] INFO {org.apache.stratos.mock.iaas.services.impl.MockInstance} -

Re: [Discuss] Fixing Sample Applications with Deployment Policy Modification

2015-03-08 Thread Vishanth Balasubramaniam
Hi, As we are moving all the autoscaling policy json artifacts from each application to a common folder, still I see "complex-app" application has its autoscaling policy in its artifact folder. Is that a mistake or we have not fixed the "complex-app" application yet? Thank you, Vishanth On Wed,

Re: Changes to deployment policy schema

2015-03-08 Thread Vishanth Balasubramaniam
I feel naming from "partitionAlgo" to "algorithm" would be fine On Sat, Mar 7, 2015 at 1:34 AM, Imesh Gunaratne wrote: > If everyone agrees, I would like to propose to rename "partitionAlgo" to > "algorithm" as we have done in application policy to define the network > partition algorithm. WDYT?

Re: Stratos 4.0 can not deploy the Multi-Tenant Service

2015-03-08 Thread david hbase
Hi, Team The DEBUG log has been attached, looks like the issue from LB, do you have any detail instructions for the LB? I created the LB cartridge same as PHP just change the service name to lb, and the lb json as: { "type": "lb", "provider": "apache", "displayName": "Lb", "description": "

[jira] [Commented] (STRATOS-1234) Software Update Management Solution for Stratos

2015-03-08 Thread Sandaruwan Nanayakkara (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352181#comment-14352181 ] Sandaruwan Nanayakkara commented on STRATOS-1234: - Hi Imesh, I will pre

[Discuss] [GSoC] Apache Stratos Projects for Google Summer of Code 2015

2015-03-08 Thread Imesh Gunaratne
Hi Students, I have seen interest on following Apache Stratos projects from the listed students. Please note that there will be only one student get the opportunity to work on one project. However each student can submit up to five project proposals for five different projects [1]. Once project p

[jira] [Commented] (STRATOS-1211) Introducing "curve fitting" for stat prediction algorithm of Autoscaler

2015-03-08 Thread Imesh Gunaratne (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352157#comment-14352157 ] Imesh Gunaratne commented on STRATOS-1211: -- Hi, As I can see the comments made

[jira] [Commented] (STRATOS-1234) Software Update Management Solution for Stratos

2015-03-08 Thread Imesh Gunaratne (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352148#comment-14352148 ] Imesh Gunaratne commented on STRATOS-1234: -- Hi Sandaruwan, I'm glad to see you

[jira] [Commented] (STRATOS-1234) Software Update Management Solution for Stratos

2015-03-08 Thread Imesh Gunaratne (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352149#comment-14352149 ] Imesh Gunaratne commented on STRATOS-1234: -- Hi Sandaruwan, I'm glad to see you

Re: [jira] [Issue Comment Deleted] (STRATOS-1234) Software Update Management Solution for Stratos

2015-03-08 Thread Imesh Gunaratne
Hi Sandaruwan, I'm glad to see your interest on this project! I think it would be better if you could prepare a Google document with a rough project plan. This will be needed for us to get an idea of the project scope and move forward. Thanks On Sun, Mar 8, 2015 at 10:35 PM, Sandaruwan Nanayakk

Re: [Discuss] Mock member publishes health stats even after it is terminated

2015-03-08 Thread Rajkumar Rajaratnam
Hi Imesh, Sorry I didn't realize that these are common to all instances. You have done it already, yes using the returned future object is the right way to go here. Thanks. On Sun, Mar 8, 2015 at 10:35 PM, Imesh Gunaratne wrote: > A good finding Raj! I can see a slight issue with your fix. > >

Re: [Discuss] Mock member publishes health stats even after it is terminated

2015-03-08 Thread Imesh Gunaratne
s/in on instance/in one instance/g IMO we need to terminate the instance notifier event receiver Runnable and cancel the ScheduledFuture of health stat notifier. Please see the below fix: /** @@ -51,6

[jira] [Commented] (STRATOS-1234) Software Update Management Solution for Stratos

2015-03-08 Thread Sandaruwan Nanayakkara (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352142#comment-14352142 ] Sandaruwan Nanayakkara commented on STRATOS-1234: - Hi Imesh, Thanks for

Re: [jira] [Issue Comment Deleted] (STRATOS-1234) Software Update Management Solution for Stratos

2015-03-08 Thread Sandaruwan Nanayakkara
Hi Imesh, Thanks for all the details and it was really helpful :) I think I started from a good place and I'm configuring the Puppet Master to implement the first step. I will inform you about the progress. Regards Sandaruwan On Sun, Mar 8, 2015 at 12:00 PM, Imesh Gunaratne (JIRA) wrote: > >

Re: [Discuss] Mock member publishes health stats even after it is terminated

2015-03-08 Thread Imesh Gunaratne
A good finding Raj! I can see a slight issue with your fix. The executor service and the scheduled executor service in MockInstance class are shared among all the mock instances. If we shutdown them in on instance it will affect all other instances. On Sun, Mar 8, 2015 at 7:55 PM, Rajkumar Raja

Re: [Discuss] Mock member publishes health stats even after it is terminated

2015-03-08 Thread Rajkumar Rajaratnam
Same applies to eventListenerExecutorService. Fixed both in 8def69fc17125fd6b854a6f114672b8f5f427929 Thanks. On Sun, Mar 8, 2015 at 7:53 PM, Rajkumar Rajaratnam wrote: > Hi Devs, > > If you enable debug logs, you will experience $Subject. The reason is that > we don't shutdown the healthStatNo

[Discuss] Mock member publishes health stats even after it is terminated

2015-03-08 Thread Rajkumar Rajaratnam
Hi Devs, If you enable debug logs, you will experience $Subject. The reason is that we don't shutdown the healthStatNotifierExecutorService when we terminate the mock member. This should be the fix. diff --git a/components/org.apache.stratos.mock.iaas/src/main/java/org/apache/stratos/mock/iaas/s

Re: Can't run strartos server

2015-03-08 Thread Jerad Rutnam
Hi Isuru, Thanks for the tip! Regards, Jerad On Wed, Mar 4, 2015 at 10:28 AM, Isuru Perera wrote: > You can simply use dos2unix command. > http://linuxcommand.org/man_pages/dos2unix1.html > > On Wed, Mar 4, 2015 at 9:32 AM, Jerad Rutnam wrote: > >> Hi Vishanth, Udara, >> >> Vishanth point see

Re: [Discuss] Apache Stratos 4.1.0 GA Release Plan

2015-03-08 Thread Imesh Gunaratne
Hi Devs, It would be great if anyone could contribute to prepare content for the release, we need to review Maven artifacts versions, SNAPSHOT dependencies, README files, LICENSE files, etc: https://cwiki.apache.org/confluence/display/STRATOS/Release+Guide Thanks On Fri, Feb 6, 2015 at 10:45 PM,

Re: Stratos 4.0 can not deploy the Multi-Tenant Service

2015-03-08 Thread Rajkumar Rajaratnam
Hi David, It is not puppet agent which sends health stats to CEP. It is cartridge agent's responsibility. If you do the following things, we can easily sort out your issue. - enable debug log for following loggers in (stratos-home/repository/conf//var/log/*apache*-*stratos*/*cartridge*-

Re: Stratos 4.0 can not deploy the Multi-Tenant Service

2015-03-08 Thread david hbase
+Imesh with this emaill chain The AC ( auto scaling ) still not work. Looks like the puppet agent do not send back the system/health check status. puppet agent test is good but not health status back to master. testing result: root@phpphp301-7c5:~# puppet agent --noop --test Info: Retrieving plug

Re: Stratos 4.0 can not deploy the Multi-Tenant Service

2015-03-08 Thread david hbase
After recreate the CA certificate and the puppet master certificate, the above error has been fixed. But the AC ( auto scaling ) still not work. Looks like the puppet agent do not send back the system/health check status. Any advice? Thanks -D On Sat, Mar 7, 2015 at 8:09 PM, david hbase wrote: