Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Asanka Sanjaya Herath
Hi All, I think Stratos is not setting custom meta data properly to instances correctly. In the developers console I cannot see any meta data section called "stratos_usermetadata" from the GCE developers console. I have attached the screenshot here. On Mon, Jun 1, 2015 at 5:47 PM, Isuru Haththotu

Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Isuru Haththotuwa
Hi Asanka, No, we need to get the custom meta data set by Stratos. It is essential for the correct functionality. We need to figure out why this API call is failing. After an instance is spawned, shutdown the Stratos server to stop the instance from being terminated. Then, SSH to the instance and

Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Asanka Sanjaya Herath
content of /tmp/payload/launch-params by using http://metadata.google.internal/computeMetadata/v1/instance/attributes/ as the meta-data URL: jclouds-delete-boot-disk jclouds-group jclouds-image sshKeys

Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Asanka Sanjaya Herath
Hi All, I'm trying to find a relevant metadata URL for GCE instances. I found this[1] but it seems like API structure has not changed. Currently in the config.sh file we are using this[2] as the metadata URL. I think we should remove the last field in the meta data URL(stratos_usermetadata). After

Re: [GSoC 2015] Python CLI for Stratos : Weekly Update

2015-06-01 Thread Milindu Sanoj Kumarage
Hi, Yes :) , and the check sequence would be, First check username and password variables that's in memory, If they are not set, then check the arguments passed. If username and password are not passed as arguments, then check the environment variables. If they are not found, then, if in

Re: Externally Setting Up WSO2 CEP with stratos

2015-06-01 Thread Rajkumar Rajaratnam
Also, I guess if you are using external CEP, you need to give your external CEP information in the following file. Otherwise, Stratos will use the internal CEP bundled with the Stratos distribution itself. *$STRATOS_HOME/repository/conf/thrift-client-config.xml* Thanks. On Mon, Jun 1, 2015 at 10

Re: Externally Setting Up WSO2 CEP with stratos

2015-06-01 Thread Pranavan Theivendiram
Thanks Raj. I will check. *T. Pranavan* *BSc Eng Undergraduate| Department of Computer Science & Engineering ,University of Moratuwa* *Mobile| *0775136836 On 1 June 2015 at 22:03, Rajkumar Rajaratnam wrote: > - you can check whether the CEP receives events from CA (by enabling > tracing for the

Re: Externally Setting Up WSO2 CEP with stratos

2015-06-01 Thread Rajkumar Rajaratnam
- you can check whether the CEP receives events from CA (by enabling tracing for the streams or looking at CA logs) - you can check whether the CEP processes the events - you can check whether the CEP publishes the events to summarized-health-stats/# topic in MB - you can check whether the AS recei

Re: What is a better way to instantiate/set a new field

2015-06-01 Thread Rajkumar Rajaratnam
It depends on whether the *instanceId* is mandatory or not. If it is mandatory, you should modify the existing constructor and have it in the constructor. If it is not mandatory, you should have a setter. Thanks. On Mon, Jun 1, 2015 at 9:43 PM, Udara Liyanage wrote: > Hi, > > Cloud controller c

Re: What is a better way to instantiate/set a new field

2015-06-01 Thread Isuru Haththotuwa
Hi Swapnil, Member class is used in the Topology hierarchy, to represent each member of a cluster. For me, the easiest way to find where it has been referenced is using the IDE that you are using. For an example, in IntelliJ Idea, you can right click on the Member class's constructor -> click on f

Re: What is a better way to instantiate/set a new field

2015-06-01 Thread Udara Liyanage
Hi, Cloud controller creates a Member object which represents an instance in IaaS. Then it sends an event with the member details so other components get updated. Could you describe what is instanceId you trying to add so we can find a the most suitable approach. On Mon, Jun 1, 2015 at 8:33 PM, S

What is a better way to instantiate/set a new field

2015-06-01 Thread Swapnil Patil
Hi Devs, I am adding a new field in org.apache.stratos.messaging.domain.topology.Member class, called instanceId. For this, what would be a better approach 1. Modifying the existing constructor 2. Adding a new constructor which takes this as an additional argument 3. Just have a setter method.

Externally Setting Up WSO2 CEP with stratos

2015-06-01 Thread Pranavan Theivendiram
Hi All, I have done $subject. Can anyone tell how can I ensure that stratos and cep are connected? Thanks in advance. *T. Pranavan* *BSc Eng Undergraduate| Department of Computer Science & Engineering ,University of Moratuwa* *Mobile| *0775136836

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-06-01 Thread Anuruddha Liyanarachchi
Hi Imesh, This error occurs when your input format is not decalred correctly. The value should be in following format with double quotes. CONFIG_PARAM_WKA_MEMBERS="10.0.0.1:4000,10.0.0.1:5000" On Mon, Jun 1, 2015 at 6:50 PM, Imesh Gunaratne wrote: > I found the following issue in > ConfigPars

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-06-01 Thread Imesh Gunaratne
I found the following issue in ConfigParserUtil.convert_properties_to_dictionary Traceback (most recent call last): File "configurator.py", line 159, in configure() File "configurator.py", line 151, in configure context = generate_context(config_file_path) File "configurator.py", line 110, in gen

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-06-01 Thread Anuruddha Liyanarachchi
Hi Devs, Now I am getting following error. 2015-06-01 18:03:17,287:DEBUG:Running checkout job > Exception in thread Thread-38: > Traceback (most recent call last): > File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner > self.run() > File "/usr/lib/python2.7/threading.py

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-06-01 Thread Anuruddha Liyanarachchi
Hi Devs, I have identified root cause for the error [1]. This is because tenant_id is stored as an unicode string in dictionary and the passed tenant id is an integer. {u'-1234': } I have fixed the issue now in the PR [2]. Please review and merge. [1] > 2015-05-31 23:51:33,583:ERROR:Error pro

[GitHub] stratos pull request: Fixing PCA get_repo method

2015-06-01 Thread anuruddhal
GitHub user anuruddhal opened a pull request: https://github.com/apache/stratos/pull/363 Fixing PCA get_repo method You can merge this pull request into a Git repository by running: $ git pull https://github.com/anuruddhal/stratos master Alternatively you can review and apply

Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Asanka Sanjaya Herath
Hi Isuru and Gayan, Thanks for the help. So It seems like I need to change the metadata URL given in[1] to a valid one. [1]. https://github.com/apache/stratos/blob/master/tools/config-scripts/gce/config.sh On Mon, Jun 1, 2015 at 10:36 AM, Isuru Haththotuwa wrote: > This is a 404 error, indicat

Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Isuru Haththotuwa
This is a 404 error, indicating that the meta data was not found.The final line seems to indicate the reason; the queried URL for meta data is wrong. On Mon, Jun 1, 2015 at 3:59 PM, Asanka Sanjaya Herath wrote: > Hi Gayan, > > This is the content of lunch-params file(Please see attachment). > >

Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Asanka Sanjaya Herath
Hi Gayan, This is the content of lunch-params file(Please see attachment). On Mon, Jun 1, 2015 at 10:19 AM, Gayan Gunarathne wrote: > IOError: [Errno 2] No such file or directory: >>> '/root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0

Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Gayan Gunarathne
> > IOError: [Errno 2] No such file or directory: >> '/root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params' >> > Also as per this error Instance don't have the payload/launch-params file.Seems lauch-params file

Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Asanka Sanjaya Herath
Thanks Gayan. I'll check it and update the thread. On Mon, Jun 1, 2015 at 10:00 AM, Gayan Gunarathne wrote: > Hi Asanka, > > On Mon, Jun 1, 2015 at 3:17 PM, Asanka Sanjaya Herath > wrote: > >> Hi Lahiru, >> >> When I run "python agent.py" command I'm getting following error. >> >> [2015-06-01

Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Gayan Gunarathne
Hi Asanka, On Mon, Jun 1, 2015 at 3:17 PM, Asanka Sanjaya Herath wrote: > Hi Lahiru, > > When I run "python agent.py" command I'm getting following error. > > [2015-06-01 09:44:44,699] DEBUG {config.py:__read_conf_file} - Config > file path : > '/root/stratos/products/python-cartridge-agent/dis

Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Asanka Sanjaya Herath
Hi Lahiru, When I run "python agent.py" command I'm getting following error. [2015-06-01 09:44:44,699] DEBUG {config.py:__read_conf_file} - Config file path : '/root/stratos/products/python-cartridge-agent/distribution/target/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf' [2015

Re: [GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Lahiru Sandaruwan
On Mon, Jun 1, 2015 at 12:51 PM, Asanka Sanjaya Herath wrote: > > ​Hi all, > > Here I have listed the work I have done during last week. > > 1. Completed the design diagram of the extension. > 2. Tested ​GCE LB API using a sample program. > 3. Configured a php cartridge on GCE. But still the cart

Re: Workload and Resource Aware, Proactive Autoscaling with Apache Stratos

2015-06-01 Thread Tharindu Munasinghe
Hi all, Here I am presenting the initial component architecture of the suggested autoscaler. This design was based on the high level understanding of the existing Stratos architecture. Following diagram shows how the 3 major components in our suggested system will connect with the existing compone

[GSOC] GCE Load balancing support for stratos - weekly update

2015-06-01 Thread Asanka Sanjaya Herath
​Hi all, Here I have listed the work I have done during last week. 1. Completed the design diagram of the extension. 2. Tested ​GCE LB API using a sample program. 3. Configured a php cartridge on GCE. But still the cartridge agent is not starting properly. I'm using this[1] fork for commit my co