Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Anuruddha Liyanarachchi
Hi Devs, I am working on the PCA error, in the undeployment process. On Mon, Jun 1, 2015 at 9:20 AM, Isuru Haththotuwa wrote: > > > On Mon, Jun 1, 2015 at 9:12 AM, Isuru Haththotuwa > wrote: > >> Hi Lahiru, >> >> Had a look. Here, the method call 'AgentGitHandler.get_repo(tenant_id)' >> seems

Re: LVS load balancer support for Apche Stratos

2015-05-31 Thread Gayan Gunarathne
Sure. Will schedule the Google Hangout on 2nd Week of June. Thanks, Gayan On Sat, May 30, 2015 at 9:16 PM, Imesh Gunaratne wrote: > Great work Gayan! > As we discussed earlier may be we can do a public Google Hangout to > demonstrate this feature. Can you please arrange one may be on 2nd week o

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

2015-05-31 Thread Anuruddha Liyanarachchi
Hi Milindu, All the requests sent to Stratos needs an username and a password for > authentications, right? I was thinking if I can create a python decorator ( > maybe as @auth ) to check if the username and password is known before > sending the request. If we use a decorator, for each api c

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Isuru Haththotuwa
On Mon, Jun 1, 2015 at 9:12 AM, Isuru Haththotuwa wrote: > Hi Lahiru, > > Had a look. Here, the method call 'AgentGitHandler.get_repo(tenant_id)' > seems to be not returning the expected git_repo object. Its returning a > NoneType object, similar to NULL. The root cause AFAIS is the git > reposit

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Isuru Haththotuwa
Hi Lahiru, Had a look. Here, the method call 'AgentGitHandler.get_repo(tenant_id)' seems to be not returning the expected git_repo object. Its returning a NoneType object, similar to NULL. The root cause AFAIS is the git repository being removed upon receiving application signup removed event in e

AWS Load Balancing Support for Stratos - Weekly Update

2015-05-31 Thread Swapnil Patil
Hi, This week I started coding. I am committing code changes at Github repository [1]. Currently I am writing code for configure method of AWSLoadBalancer. In that I have added logic to create AWS load balancer and registering and de-registering instances to it. I will try to finish the configure

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Lahiru Sandaruwan
On Tue, May 26, 2015 at 2:08 PM, Imesh Gunaratne wrote: > I did an end to end test with Kubernetes, single-cartridge application and > found the below error in PCA when un-deploying the application: > I have committed fix sent by Chamila and it solves this. Then i got an issue in tenant id retr

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Udara Liyanage
HI Imesh, You are correct. I fixed it in 02f9f530 On Sun, May 31, 2015 at 7:38 PM, Udara Liyanage wrote: > Hi Imesh, > > I will have a look. I did n't try this scenario > > On Sun, May 31, 2015 at 7:35 PM, Imesh Gunaratne wrote: > >> Hi Udara, >> >> I'm on the master branch, latest commit revi

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Udara Liyanage
Hi Imesh, I will have a look. I did n't try this scenario On Sun, May 31, 2015 at 7:35 PM, Imesh Gunaratne wrote: > Hi Udara, > > I'm on the master branch, latest commit revision. I think the problem > occurs when the Authorization header is added without a token value: > > curl -v -X GET -H "C

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Imesh Gunaratne
Hi Udara, I'm on the master branch, latest commit revision. I think the problem occurs when the Authorization header is added without a token value: curl -v -X GET -H "Content-Type: application/json" -k -H "Authorization: Bearer " https://172.17.8.1:9443/metadata/api/applications/tomcat-single-si

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Udara Liyanage
Hi, Values are returned as an array. Are you sure you are using latest Stratos? curl -X GET -H "Content-Type: application/json" -k -H "Authorization: Bearer eyJhbGciOiJSUzI1NiJ9.eyJleHAiOi0xNDc3NTIyNTU3LCJzdWIiOiJhZG1pbiIsImF6cCI6IjhpbWs5WEpkUHM5UEtYWTk1Xzk2MTl0MzVBa2EiLCJhcHBJZCI6InNpbmdsZS1j

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Udara Liyanage
Hi Imesh, I tested the mentioned API without the token, it returns 403 Forbidden curl -X GET -H "Content-Type: application/json" -k -k https://localhost:9443/metadata/api/applications/single-cartridge-app/properties -v * Hostname was NOT found in DNS cache * Trying 127.0.0.1... * Connected

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Imesh Gunaratne
Another problem, the values element is not returned as an array: {"properties":[{"key":"CALLBACK_URL","values":"http:\/\/ tomcat-single-signon.mytomcat3.tomcat.stratos.org:4500\/travelocity.com \/home.jsp"},{"key":"SSO_ISSUER","values":"travelocity.com"}]} May be values is not there in the array

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Imesh Gunaratne
I found another issue in the Metadata API, the following API method works even without a Token: /metadata/api/applications/{application-id}/properties On Sun, May 31, 2015 at 3:10 PM, Imesh Gunaratne wrote: > I have now fixed the above problem in the following commit revision: > > https://github

Re: PHP Application is not accessible from proxy port

2015-05-31 Thread Asanka Sanjaya Herath
Thanks for the help Lahiru. On Sun, May 31, 2015 at 8:47 AM, Lahiru Sandaruwan wrote: > > > On Sun, May 31, 2015 at 2:11 PM, Asanka Sanjaya Herath > wrote: > >> Hi Lahiru, >> >> Thanks for the help. I'm using offset as 0 in carbon.xml. Is there any >> other thing to check? >> > > ah.. It seems

Re: [Discuss] Release Apache Stratos 4.1.0 RC2.

2015-05-31 Thread Imesh Gunaratne
I have now fixed the above problem in the following commit revision: https://github.com/apache/stratos/commit/35a99acf3e764a95b1f1fd140362503bf79e95cb Port mapping can now include a name property and it will be included in PORT_MAPPINGS payload parameter: "portMapping": [ { "name": "mgt-cons

Re: PHP Application is not accessible from proxy port

2015-05-31 Thread Lahiru Sandaruwan
On Sun, May 31, 2015 at 2:11 PM, Asanka Sanjaya Herath wrote: > Hi Lahiru, > > Thanks for the help. I'm using offset as 0 in carbon.xml. Is there any > other thing to check? > ah.. It seems you are trying to access the application using the IP. You cannot access your application using the IP of

Re: PHP Application is not accessible from proxy port

2015-05-31 Thread Asanka Sanjaya Herath
Hi Lahiru, Thanks for the help. I'm using offset as 0 in carbon.xml. Is there any other thing to check? On Sun, May 31, 2015 at 8:30 AM, Lahiru Sandaruwan wrote: > Hi Asanka, > > Thanks. > > On Sun, May 31, 2015 at 1:54 PM, Asanka Sanjaya Herath > wrote: > >> Hi All, >> >> I have configured Ap

Re: PHP Application is not accessible from proxy port

2015-05-31 Thread Lahiru Sandaruwan
Hi Asanka, Thanks. On Sun, May 31, 2015 at 1:54 PM, Asanka Sanjaya Herath wrote: > Hi All, > > I have configured Apache Stratos for GCE and created a PHP cartridge > successfully using puppet. But I can't connect to Apache server using the > proxy port I have mentioned in cartridge definition(

PHP Application is not accessible from proxy port

2015-05-31 Thread Asanka Sanjaya Herath
Hi All, I have configured Apache Stratos for GCE and created a PHP cartridge successfully using puppet. But I can't connect to Apache server using the proxy port I have mentioned in cartridge definition( https://Stratos_node_public_IP:8280). This is the cartridge configuration I used. I'm not sure