Re: [Discuss] Kubernetes Cluster Definition Changes

2015-02-13 Thread Lakmal Warusawithana
Hi, I have seen following error while keeping some times after activate single cartridge sample. And this error keep looping in the log. [2015-02-14 02:28:56,850] INFO {org.apache.stratos.autoscaler.monitor.cluster.ClusterMonitor} - Executing scaling rule as statistics have been reset Exceptio

Re: [Discuss] Kubernetes Cluster Definition Changes

2015-02-13 Thread Lakmal Warusawithana
Hi Imesh, I have test the changes on top of EC2. Kubernetes member public IP came as expected. Now only missing are private and public ports mapping and cluster level kubernetes service IP and port. thanks On Fri, Feb 13, 2015 at 10:00 PM, Imesh Gunaratne wrote: > Thanks Lakmal! It would be gr

Re: Errors when running Stratos Kubernetes Setup

2015-02-13 Thread Mariangela Hills
Imesh, I added this information as a new post in the forum. Hopefully, we will get a solution to the problem. Thanks. Mariangela *--* Mariangela Hills Senior Technical Writer *WSO2, Inc.*lean.enterprise.middleware. w: http://wso2.com On Fri, Feb 13, 2015 at 7:26 PM,

Re: [Discuss] Kubernetes Cluster Definition Changes

2015-02-13 Thread Imesh Gunaratne
I have now updated the UI: ​ On Fri, Feb 13, 2015 at 10:00 PM, Imesh Gunaratne wrote: > Thanks Lakmal! It would be great if you could verify the member's public > IP address in EC2 with this modification. > > Thanks > > On Fri, Feb 13, 2015 at 8:48 PM, Lakmal Warusawithana > wrote: > >> Thank

Re: [Discuss] Kubernetes Cluster Definition Changes

2015-02-13 Thread Imesh Gunaratne
Thanks Lakmal! It would be great if you could verify the member's public IP address in EC2 with this modification. Thanks On Fri, Feb 13, 2015 at 8:48 PM, Lakmal Warusawithana wrote: > Thanks Imesh. Will run a test with it > > > On Friday, February 13, 2015, Imesh Gunaratne wrote: > >> Hi Lakm

Autoscale proposal - transition compensated continuous scaling

2015-02-13 Thread Michael Hall (michaha2)
Hi Imesh, Lakmal, Devs, Following the attached email thread, this email is intended as a starting point in formalising the proposal of the proceeding autoscale enhancement. Kind regards, Mike… Proposal for ‘Transition Compensated Continuous Scaling’ enhancement to be added to Apache Stratos A

Re: [Discuss] Kubernetes Cluster Definition Changes

2015-02-13 Thread Lakmal Warusawithana
Thanks Imesh. Will run a test with it On Friday, February 13, 2015, Imesh Gunaratne wrote: > Hi Lakmal, > > I have now added private and public IP addresses attribtues to Kubernetes > hosts in Kubernetes cluster definition and pushed changes to master branch: > > - Updated Kubernets master and h

[Discuss] Kubernetes Cluster Definition Changes

2015-02-13 Thread Imesh Gunaratne
Hi Lakmal, I have now added private and public IP addresses attribtues to Kubernetes hosts in Kubernetes cluster definition and pushed changes to master branch: - Updated Kubernets master and host definitions - Updated Kubernetes IaaS to set member public IP address if a mapping Kubernetes public

[jira] [Updated] (STRATOS-1185) Kubernetes Hosts need to have Public IP Addresses

2015-02-13 Thread Imesh Gunaratne (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Imesh Gunaratne updated STRATOS-1185: - Summary: Kubernetes Hosts need to have Public IP Addresses (was: In Kubernetes Cluster

Re: REST API methods for managing deployment policies

2015-02-13 Thread Gayan Gunarathne
Sample JSON: https://github.com/apache/stratos/blob/4.1.0-beta-deployment-policy-fix/samples/applications/single-cartridge/artifacts/deployment-policy.json Sample curl request : curl -X POST -H "Content-Type: application/json" -d "@deployment-policy.json" -k -v -u admin:admin https:// ${host_ip}:$

Re: REST API methods for managing deployment policies

2015-02-13 Thread Gayan Gunarathne
Sure. Will update the samples. Thanks, Gayan On Fri, Feb 13, 2015 at 7:22 PM, Dakshika Jayathilaka wrote: > Hi Gayan, > > Can you share JSON as wel. > > Thanks > > *Dakshika Jayathilaka* > Software Engineer > WSO2, Inc. > lean.enterprise.middleware > 0771100911 > > On Fri, Feb 13, 2015 at 7:12

Re: Errors when running Stratos Kubernetes Setup

2015-02-13 Thread Imesh Gunaratne
Hi Mari, I think we need to check this with Kubernetes user group. Shall we send this to their google group: https://groups.google.com/forum/#!forum/google-containers Thanks On Fri, Feb 13, 2015 at 7:19 PM, Mariangela Hills wrote: > Hi, > > I tried to execute the steps mentioned in [1] with ma

Re: REST API methods for managing deployment policies

2015-02-13 Thread Dakshika Jayathilaka
Hi Gayan, Can you share JSON as wel. Thanks *Dakshika Jayathilaka* Software Engineer WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Feb 13, 2015 at 7:12 PM, Gayan Gunarathne wrote: > Added two REST API methods for global deployment policy add/update. I have > pushed those changes to

Re: Errors when running Stratos Kubernetes Setup

2015-02-13 Thread Mariangela Hills
Hi, I tried to execute the steps mentioned in [1] with master, minion-1, minion-2 and discovery on the following 2 PCs: - [M1] Lenovo 8GB machine with the following SW: - Ubuntu 14.04 - vagrant_1.6.5 - VirtualBox-4.3.20 - [M2] Mac 8GB machine with the following SW: - OS X

REST API methods for managing deployment policies

2015-02-13 Thread Gayan Gunarathne
Added two REST API methods for global deployment policy add/update. I have pushed those changes to the "4.1.0-beta-deployment-policy-fix" branch. POST /deploymentpolicy Add a deployment policyPUT/deploymen

[jira] [Created] (STRATOS-1185) In Kubernetes Cluster each Host needs to have a Public and Private IP address pair

2015-02-13 Thread Imesh Gunaratne (JIRA)
Imesh Gunaratne created STRATOS-1185: Summary: In Kubernetes Cluster each Host needs to have a Public and Private IP address pair Key: STRATOS-1185 URL: https://issues.apache.org/jira/browse/STRATOS-1185

[jira] [Issue Comment Deleted] (STRATOS-1184) Docker image for php:4.1.0-alpha does not get downloaded

2015-02-13 Thread Imesh Gunaratne (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Imesh Gunaratne updated STRATOS-1184: - Comment: was deleted (was: We have now re-uploaded the stratos/php:4.1.0-alpha docker im

[jira] [Commented] (STRATOS-1184) Docker image for php:4.1.0-alpha does not get downloaded

2015-02-13 Thread Imesh Gunaratne (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320033#comment-14320033 ] Imesh Gunaratne commented on STRATOS-1184: -- We have now re-uploadede the strato

[jira] [Commented] (STRATOS-1184) Docker image for php:4.1.0-alpha does not get downloaded

2015-02-13 Thread Imesh Gunaratne (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320035#comment-14320035 ] Imesh Gunaratne commented on STRATOS-1184: -- We have now re-uploaded the stratos

[jira] [Comment Edited] (STRATOS-1184) Docker image for php:4.1.0-alpha does not get downloaded

2015-02-13 Thread Imesh Gunaratne (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14320033#comment-14320033 ] Imesh Gunaratne edited comment on STRATOS-1184 at 2/13/15 12:50 PM: --

Re: [Discuss] Fixing Python Cartridge Agent (PCA) Issues

2015-02-13 Thread Imesh Gunaratne
Hi Lakmal, That's a great news! :-) Very nice to hear that. Yes definitely we were lacking port information on the UI/API method. I will add them and also add the public IP addresses to the Kubernetes cluster model ASAP. Thanks On Fri, Feb 13, 2015 at 4:24 PM, Lakmal Warusawithana wrote: >

Re: 4.1 deployment policy questions

2015-02-13 Thread Imesh Gunaratne
Hi Shaheed, Please find comments inline: On Fri, Feb 13, 2015 at 3:27 PM, Shaheedur Haque (shahhaqu) < shahh...@cisco.com> wrote: > Thanks, I must have missed this thread before. CIL…but remember that I > am talking conceptually only as I don’t know the implementation. > > > > *From:* Imesh Gun

Re: autoscale architecture

2015-02-13 Thread Michael Hall (michaha2)
That’s a good plan, My work number is +442088242650 I’m around now, but will break for a while for lunch in an hour or so. Cheers From: Lakmal Warusawithana mailto:lak...@wso2.com>> Date: Friday, 13 February 2015 11:24 To: "dev@stratos.apache.org" mailto:dev@stra

Re: autoscale architecture

2015-02-13 Thread Lakmal Warusawithana
Shall we go for a call, it will be more productive. On Fri, Feb 13, 2015 at 4:45 PM, Lakmal Warusawithana wrote: > Hi Michael > > On Fri, Feb 13, 2015 at 4:14 PM, Michael Hall (michaha2) < > micha...@cisco.com> wrote: > >> Hi Imesh, >> >> So ‘transistion compensated’ refers to cartridges, whic

Re: autoscale architecture

2015-02-13 Thread Lakmal Warusawithana
Hi Michael On Fri, Feb 13, 2015 at 4:14 PM, Michael Hall (michaha2) wrote: > Hi Imesh, > > So ‘transistion compensated’ refers to cartridges, which are > ’transistioning’ between SPAWNED-ACTIVE, and TERMINATING-TERMINATED. > > What it really means, is that if the 'aggregated average’ (Referre

Re: 4.1 deployment policy questions

2015-02-13 Thread Gayan Gunarathne
Hi Shaheedur, Please find my comments on blue. Thanks, Gayan On Fri, Feb 13, 2015 at 3:27 PM, Shaheedur Haque (shahhaqu) < shahh...@cisco.com> wrote: > Thanks, I must have missed this thread before. CIL…but remember that I > am talking conceptually only as I don’t know the implementation. > >

Re: [Discuss] Fixing Python Cartridge Agent (PCA) Issues

2015-02-13 Thread Lakmal Warusawithana
HI Imesh, Thanks, I have tested on EC2 and single-cartridge kubernetes application deployed and activated successfully. Few more things need to complete end to end. - In the case of running docker/kubernetes on top of of EC2/IaaSs we need to provide Kubernetes host's private and public IPs

Re: autoscale architecture

2015-02-13 Thread Michael Hall (michaha2)
Hi Imesh, So ‘transistion compensated’ refers to cartridges, which are ’transistioning’ between SPAWNED-ACTIVE, and TERMINATING-TERMINATED. What it really means, is that if the 'aggregated average’ (Referred to this as PredictedValue in scaling.drl) is compensated: 1. As if the ‘spawning’ c

Errors when running Stratos Kubernetes Setup

2015-02-13 Thread Mariangela Hills
Hi, I was trying to run the Kubernetes setup documented in [1] to verify whether there were any documentation gaps. Initially, I was facing an issue where the networking aspect was not getting automatically configured in VirtualBox. This was probably because I had an older version of VirtualBox,

RE: 4.1 deployment policy questions

2015-02-13 Thread Shaheedur Haque (shahhaqu)
Thanks, I must have missed this thread before. CIL…but remember that I am talking conceptually only as I don’t know the implementation. From: Imesh Gunaratne [mailto:im...@apache.org] Sent: 13 February 2015 09:28 To: dev; Shaheedur Haque (shahhaqu) Subject: Re: 4.1 deployment policy questions [A

Re: 4.1 deployment policy questions

2015-02-13 Thread Imesh Gunaratne
[Adding Shaheed] On Fri, Feb 13, 2015 at 8:31 AM, Imesh Gunaratne wrote: > I agree with Udara. We could take the following approach to improve the > efficiency: > > 1. Implement deployment policy management logic and service methods in CC > without affecting any other modules > 2. Implement dpel

Re: [Discuss] Fixing Python Cartridge Agent (PCA) Issues

2015-02-13 Thread Imesh Gunaratne
No, docker image is stratos/php:4.1.0-beta, source tag for this fix is 4.1.0-beta-kubernetes-v1. I have now made the above Thrift receiver hostname 0.0.0.0 by default to make it much easier to use the product. Thanks On Fri, Feb 13, 2015 at 1:56 PM, Lakmal Warusawithana wrote: > Do you mean do

Re: [Discuss] Fixing Python Cartridge Agent (PCA) Issues

2015-02-13 Thread Lakmal Warusawithana
Do you mean docker image with tag 4.1.0-beta-kubernetes-v1 ? On Fri, Feb 13, 2015 at 1:53 PM, Imesh Gunaratne wrote: > I have created a tag: 4.1.0-beta-kubernetes-v1 to mark this fix. > > Thanks > > On Fri, Feb 13, 2015 at 1:48 PM, Imesh Gunaratne wrote: > >> Kubernetes workflow works fine now!

Re: [Discuss] Fixing Python Cartridge Agent (PCA) Issues

2015-02-13 Thread Imesh Gunaratne
I have created a tag: 4.1.0-beta-kubernetes-v1 to mark this fix. Thanks On Fri, Feb 13, 2015 at 1:48 PM, Imesh Gunaratne wrote: > Kubernetes workflow works fine now! :-) > > There was an issue in the single-cartridge application and fixed. Please > take a pull and update data-bridge-config.xml

Re: [Discuss] Fixing Python Cartridge Agent (PCA) Issues

2015-02-13 Thread Imesh Gunaratne
Kubernetes workflow works fine now! :-) There was an issue in the single-cartridge application and fixed. Please take a pull and update data-bridge-config.xml to bind CEP thrift receiver to 0.0.0.0: apache-stratos-4.1.0-SNAPSHOT/repository/conf/data-bridge/data-bridge-config.xml 0.0.0.0

Re: [Discuss] Fixing Python Cartridge Agent (PCA) Issues

2015-02-13 Thread Imesh Gunaratne
I just tested Kubernetes workflow with the lastest fixes in PCA and PCA works fine with an unprotected Git repository. Will update the status of the Kubernetes workflow soon. PHP docker image has been pushed to docker hub with the latest PCA (stratos/php:4.1.0-beta). Thanks On Fri, Feb 13, 2015