Re: Problem in Kubernetes with Stratos master branch

2015-06-07 Thread Shavindri Dissanayake
Hi Imesh, Updated Step 3 under - Install Stratos with Kubernetes [1], based on the feedback. Would you please be able to verify the content and suggest changes if any. [1] https://cwiki.apache.org/confluence/display/STRATOS/4.1.0+Install+Stratos+with+Kubernetes+in+a+Testing+Environment Thanks &

Re: Kubernetes on EC2 with Single Cartridge App

2015-06-07 Thread Imesh Gunaratne
Great! Nice to hear that! On Mon, Jun 8, 2015 at 9:03 AM, Pubudu Gunatilaka wrote: > Hi Imesh, > > I rechecked the kubernetes cluster json and changed my CEP_PORT to 7711 > which is the thrift SSL port. I have used the thrift port which is 7611 in > my json. That could be the reason why cartridg

Re: Build failed in Jenkins: Stratos-Master-Commit-Build » Apache Stratos - Integration Tests #652

2015-06-07 Thread Vishanth Balasubramaniam
Hi, This seems like an intermittent issue. Regards, Vishanth On Sun, Jun 7, 2015 at 9:59 PM, Vishanth Balasubramaniam wrote: > Hi Gayan, > > Even I tried building it locally with the latest source and got this build > break at Integration Test. > > *java.io.IOException: input file does not exi

AWS Load Balancing Support for Stratos - Weekly Update

2015-06-07 Thread Swapnil Patil
Hi, This week I worked on 1. Completing configure() method of AWSLoadBalancer. It is almost complete, few bits are remaining. 2. Trying to setup Stratos locally/EC2. Unfortunately, I couldn't complete it because of few issues as discussed on a mail thread. Will try to complete in c

Re: Stratos not starting up

2015-06-07 Thread Swapnil Patil
Thanks Imesh for the feedback. I will try this. Regards, Swapnil On Sun, Jun 7, 2015 at 8:30 PM, Imesh Gunaratne wrote: > A good analysis! You can run both MB and CEP on a single instance. > > On Sat, Jun 6, 2015 at 12:13 PM, Swapnil Patil > wrote: > >> Ok, so I was trying if I can access my l

[GSOC] GCE Load Balancing Support For Stratos - weekly update

2015-06-07 Thread Asanka Sanjaya Herath
Hi All, In this week I was committing my code to this[1] repository. I added basic extension structure. I have written and tested methods for calling GCE API in GCEOperations class. Authorization part is also completed. Currently I'm writing logic for configure and start methods in GCELoadBalancer

Re: AWS Load Balancing Support for Stratos - Weekly Update

2015-06-07 Thread Swapnil Patil
Hi Imesh, Oh yes. I will update all the comments accordingly. Thanks and Regards, Swapnil On Sun, Jun 7, 2015 at 8:24 PM, Imesh Gunaratne wrote: > Hi Swapnil, > > Now it looks much better, I guess you are not using IDE features to auto > generate the method comment text: > > /* > * Returns al

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-06-07 Thread Anuruddha Liyanarachchi
Hi Imesh, ast.literal_eval method evaluate a given variable is valid python variable. In this scenario it check for a python dictionary. On Sat, Jun 6, 2015 at 12:23 AM, Imesh Gunaratne wrote: > Hi Anuruddha, > > On Mon, Jun 1, 2015 at 7:00 PM, Anuruddha Liyanarachchi < > anurudd...@wso2.com> w

Re: Kubernetes on EC2 with Single Cartridge App

2015-06-07 Thread Pubudu Gunatilaka
Hi Imesh, I rechecked the kubernetes cluster json and changed my CEP_PORT to 7711 which is the thrift SSL port. I have used the thrift port which is 7611 in my json. That could be the reason why cartridge agent was unable to send stats to cep. Now kubernetes cluster is working fine. Thank you!

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

2015-06-07 Thread Milindu Sanoj Kumarage
Hi, I added a POM to my module dir, much like Python Agent's one, but without some dependencies and plugins which seems not relevant to Python CLI. Now Python CLI would be treated as a child component :) I finished the @auth decorator as we discussed in previous discussions. Now working well in S

Re: [Discuss] Kubernetes API Client & v1beta3 Support

2015-06-07 Thread Lakmal Warusawithana
+1 Imesh, will use Fabric8 kubernetes client. On Mon, Jun 8, 2015 at 2:40 AM, Imesh Gunaratne wrote: > Hi Devs, > > As you may already know we implemented our own Kubernetes API client in > Stratos and it is currently using v1beta1 API version. According to > Kubernetes blog, v1beta1 and v1beta2

[Discuss] Kubernetes API Client & v1beta3 Support

2015-06-07 Thread Imesh Gunaratne
Hi Devs, As you may already know we implemented our own Kubernetes API client in Stratos and it is currently using v1beta1 API version. According to Kubernetes blog, v1beta1 and v1beta2 APIs have been deprecated and will be removed at the end of June 2015 [1]. In addition Stratos Kubernetes API c

Re: Stratos not starting up

2015-06-07 Thread Imesh Gunaratne
A good analysis! You can run both MB and CEP on a single instance. On Sat, Jun 6, 2015 at 12:13 PM, Swapnil Patil wrote: > Ok, so I was trying if I can access my local machine from an EC2 instance. > But it seems I can't. The reason is I have wifi router at my home and the > public IP I get is t

Re: AWS Load Balancing Support for Stratos - Weekly Update

2015-06-07 Thread Imesh Gunaratne
Hi Swapnil, Now it looks much better, I guess you are not using IDE features to auto generate the method comment text: /* * Returns all the listeners attached to the load balancer. * Useful while deciding if all the listeners are necessary or some should be removed. */ public List getAttachedL

Re: Kubernetes on EC2 with Single Cartridge App

2015-06-07 Thread Imesh Gunaratne
s/it was updated properly/it was not updated properly/g On Mon, Jun 8, 2015 at 1:46 AM, Imesh Gunaratne wrote: > Hi Pubudu, > > Did you update the Kubernetes Cluster JSON with the IP addresses of your > EC2 instances? May be it was updated properly: > > > https://github.com/apache/stratos/blob/m

Re: Kubernetes on EC2 with Single Cartridge App

2015-06-07 Thread Imesh Gunaratne
Hi Pubudu, Did you update the Kubernetes Cluster JSON with the IP addresses of your EC2 instances? May be it was updated properly: https://github.com/apache/stratos/blob/master/samples/kubernetes-clusters/kubernetes-cluster-ec2.json On Sun, Jun 7, 2015 at 4:52 PM, Pubudu Gunatilaka wrote: >

Re: Build failed in Jenkins: Stratos-Master-Commit-Build » Apache Stratos - Integration Tests #652

2015-06-07 Thread Vishanth Balasubramaniam
Hi Gayan, Even I tried building it locally with the latest source and got this build break at Integration Test. *java.io.IOException: input file does not exist*: [/Users/vizzy/Products/vishanth/stratos/products/stratos/modules/ *integration/target/coverage.em*] at com.vladium.emma.data.DataFacto

RE: Cartridge category list from the UI

2015-06-07 Thread Athanasios Tsitsipas
Fine by that, but you have to change the samples, because they state load-balancer and also for the openstack the json file of the stratos-lb exists only in mock :/ … I want something that works for a composite application. How to exactly define the load balancer, with the proper port mapping an

Re: Cartridge category list from the UI

2015-06-07 Thread Gayan Gunarathne
Hi Thanos, In the cartridges we can define only three types of categories. As you mention those are lb, framework and data. Application is the composite of those cartridges. As an example we can treat mysql as a data cartridge and php as a framework cartridge.We can make a application by using co

Re: How to use the Load Balancer with openstack

2015-06-07 Thread Gayan Gunarathne
Hi, On Sun, Jun 7, 2015 at 6:03 PM, Athanasios Tsitsipas < athanasios.tsitsi...@uni-ulm.de> wrote: > Hi Gayan, > > > > Excuse me for the massive mails. > > I fixed the problem with the unknown 7811 port. In thrift-client-config.xml > of lb module it was defind as port the 7711 and maybe the https

Cartridge category list from the UI

2015-06-07 Thread Athanasios Tsitsipas
Hi you state four different categories that might work for the 4.1.0 framework, data, application or load-balancer cartridge At the UI, when I define a cartridge it has only lb, framework and data. The lb with the load-balancer category will behave the same? Does it even matter the category typ

RE: How to use the Load Balancer with openstack

2015-06-07 Thread Athanasios Tsitsipas
Hi Gayan, Excuse me for the massive mails. I fixed the problem with the unknown 7811 port. In thrift-client-config.xml of lb module it was defind as port the 7711 and maybe the https somehow it is configured at the next port 7811. If I define as port the 7611 and secure port 7711, everythi

Re: Install Stratos with Kubernetes on EC2

2015-06-07 Thread Pubudu Gunatilaka
I used CoreOs alpha release. After having a discussion with kubernetes google group, I found the root cause for this. I used their latest master.yaml file and they have replaced a flag *portal-net* with *service-cluster-ip-range* in the Kubernetes Api server service. Due to that, api server hasn't

Re: Kubernetes on EC2 with Single Cartridge App

2015-06-07 Thread Lahiru Sandaruwan
Hi Pubudu, Shall we have a look on cartridge agent logs? Thanks. On Sun, Jun 7, 2015 at 4:52 PM, Pubudu Gunatilaka wrote: > Hi Devs, > > I was able to set up kubernetes on ec2 with master node and one minion > node. Then I pulled the stratos/php:4.1.0 docker image to the minion node > and depl

Kubernetes on EC2 with Single Cartridge App

2015-06-07 Thread Pubudu Gunatilaka
Hi Devs, I was able to set up kubernetes on ec2 with master node and one minion node. Then I pulled the stratos/php:4.1.0 docker image to the minion node and deployed the single cartridge app. But I got the same error mentioned in a previous thread "Problem in Kubernetes with Stratos master branch

RE: How to use the Load Balancer with openstack

2015-06-07 Thread Athanasios Tsitsipas
In the /opt/stratos/apache-stratos-default/repository/conf/data-bridge/data-bridge-config.xml of my stratos setup the 7611 and 7711 is used I don’t know from where it takes the 7811 port! 0.0.0.0 7611 7711 :/ From: Athanasios Tsitsipas

RE: How to use the Load Balancer with openstack

2015-06-07 Thread Athanasios Tsitsipas
Also from the base.pp at the repository [1] there is no reference to 7811 and this is probably the https port as I can see from the exception. Cheers, Thanos [1] https://github.com/apache/stratos/blob/master/tools/puppet3/manifests/nodes/base.pp From: Gayan Gunarathne [mailto:gay..

RE: How to use the Load Balancer with openstack

2015-06-07 Thread Athanasios Tsitsipas
At the thrift-client-config.xml there is a configuration for the client. Which ip and port should I include. By default in the zip file it has: admin admin localhost 7711 At the nginx extention parameters it has also these arguments in the nginx-extension.sh

Re: [Error] Failed to start an instance in GCE

2015-06-07 Thread Asanka Sanjaya Herath
​Thanks for the help Lahiru,Isuru and Gayan, Problem solved once I delete the instance named ha-proxy. I'll follow what you mentioned Lahiru.​ On Sun, Jun 7, 2015 at 7:22 AM, Lahiru Sandaruwan wrote: > Hi Asanka, > > Start your application name with an integer(mentioned in json). We prefix > the

Re: [Error] Failed to start an instance in GCE

2015-06-07 Thread Lahiru Sandaruwan
Hi Asanka, Start your application name with an integer(mentioned in json). We prefix the application name to the member-id. This is a limitation we have when we use GCE. GCE API doesn't like it when the instance name is not started with an integer. Thanks. On Sun, Jun 7, 2015 at 12:14 PM, Gayan

Re: [Error] Failed to start an instance in GCE

2015-06-07 Thread Asanka Sanjaya Herath
Hi Gayan, No, I didn't try to spawn an instance named ha-proxy. I was trying to deploy an application using Stratos in GCE. Before that, I had created an instance named ha-proxy manually in GCE. In that case we cannot create another instance using *any name *(Not ha-proxy or ha) using Jclouds API