Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-18 Thread Udara Liyanage
Hi Davis, Great to hear it's working. Regarding forceful undeployment, forceful undeployment invokes the graceful undeployment path so that it takes bit time to terminate instances and send relevant events. Ideally application should come to CREATED state after sometime. If not, could you please s

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-18 Thread david hbase
Yes, built the from the master branch this morning. Thanks -D On Mon, May 18, 2015 at 8:21 PM, Rajkumar Rajaratnam wrote: > Great to hear that David! > > BTW, this is master branch right? > > Thanks. > > On Tue, May 19, 2015 at 8:16 AM, david hbase wrote: > >> Thanks Dev Team! >> >> It's worki

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-18 Thread Rajkumar Rajaratnam
Great to hear that David! BTW, this is master branch right? Thanks. On Tue, May 19, 2015 at 8:16 AM, david hbase wrote: > Thanks Dev Team! > > It's working now! Auto-scaling is working great with Openstack! > > -D > > > On Mon, May 18, 2015 at 11:38 AM, Chamila De Alwis > wrote: > >> Hi, >> >

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-18 Thread Chamila De Alwis
Hi, I've modified the PCA code to throw a meaningful exception (GitRepositorySynchronizationException) whenever the APPLICATION_PATH is null. This will help to identify such cases easily. Regards, Chamila de Alwis Software Engineer | WSO2 | +94772207163 Blog: code.chamiladealwis.com On Mon, M

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-18 Thread david hbase
Hi, Udara It's working, Query: where we storage the the application status, can not undeploy with force=true now. May need to update the status directly. Thanks -D On Mon, May 18, 2015 at 1:11 AM, Udara Liyanage wrote: > Hi David, > > Application Path is normally defined in puppet. However if

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-18 Thread Udara Liyanage
Hi David, Application Path is normally defined in puppet. However if Application path is defined in your application definition, it will come with payload. When application path is defined in both places, what is defined in payload is picked up. So could you please provide your* application defini

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-18 Thread david hbase
Auto scaling running well, Thanks -D On Mon, May 18, 2015 at 12:08 AM, david hbase wrote: > Also, please verify the www root value: > [error] [client 10.24.170.89] File does not exist: /var/www/www/www, > referer: http://10.203.30.130/ > > I think should be /var/www/www > > Thanks > -D > > > > >

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-18 Thread david hbase
Also, please verify the www root value: [error] [client 10.24.170.89] File does not exist: /var/www/www/www, referer: http://10.203.30.130/ I think should be /var/www/www Thanks -D On Sun, May 17, 2015 at 11:44 PM, Udara Liyanage wrote: > Hi Raj, > > I am sorry, that variable is coming with

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Udara Liyanage
Hi Raj, I am sorry, that variable is coming with payload. Is there a possibility of sharing the payload. On Mon, May 18, 2015 at 12:10 PM, Rajkumar Rajaratnam wrote: > Here it is; > > root@287318051508:~# cat > /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf > # Licensed to

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Rajkumar Rajaratnam
Here it is; root@287318051508:~# cat /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Udara Liyanage
On Mon, May 18, 2015 at 11:18 AM, Rajkumar Rajaratnam wrote: > Hi Chamila, > > Seems, still there is an issue in processing Artifact Updated Event. > > 2015-05-18 05:35:39,670:DEBUG:Executing handler for event > 'ArtifactUpdatedEvent' > 2015-05-18 05:35:39,670:INFO:Processing Artifact update even

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Rajkumar Rajaratnam
Hi Chamila, Seems, still there is an issue in processing Artifact Updated Event. 2015-05-18 05:35:39,670:DEBUG:Executing handler for event 'ArtifactUpdatedEvent' 2015-05-18 05:35:39,670:INFO:Processing Artifact update event: [tenant] -1234 [cluster] single-cartridge-app01.my-php.php.domain [statu

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Rajkumar Rajaratnam
Hi, Had an offline chat with David, seems there was an issue in upgrading to the latest code base. Puppet modules and Stratos distribution have not been updated properly. I guess that might be the reason why PCA is failing to process Artifact Updated Event. Here is steps you have to follow inorder

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Udara Liyanage
Hi David, You may find that variable in manifests/nodes/.pp On Mon, May 18, 2015 at 8:06 AM, Chamila De Alwis wrote: > Hi David, > > From the log files, it seems the payload param for APPLICATION_PATH has > not been sent from Stratos Manager and it is also not set in the agent.conf > config

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Chamila De Alwis
Hi David, >From the log files, it seems the payload param for APPLICATION_PATH has not been sent from Stratos Manager and it is also not set in the agent.conf config file in the instance. In Puppet this is set from the variable "docroot" which is written to agent.conf. Could you verify that in th

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread david hbase
The log files have been sent. Thanks -D On Sun, May 17, 2015 at 6:37 PM, Chamila De Alwis wrote: > Hi, > > On Mon, May 18, 2015 at 6:14 AM, david hbase wrote: > >> 2015-05-18 00:35:34,667:INFO:Executing git checkout >> 2015-05-18 00:35:34,667:DEBUG:Repo path returned : None >> 2015-05-18 00:35

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Chamila De Alwis
Hi, On Mon, May 18, 2015 at 6:14 AM, david hbase wrote: > 2015-05-18 00:35:34,667:INFO:Executing git checkout > 2015-05-18 00:35:34,667:DEBUG:Repo path returned : None > 2015-05-18 00:35:34,667:DEBUG:Cloning artifacts from > https://github.com/imesh/stratos-php-applications.git for the first tim

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread david hbase
sure, give me a while to regenerate the errors. Updates: After reversed the code base to May,4 (master), the application can be activate now. I will keep to monitor if become inactive or not. Thanks -D On Sun, May 17, 2015 at 6:09 PM, Rajkumar Rajaratnam wrote: > > > On Mon, May 18, 2015 at

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Rajkumar Rajaratnam
On Mon, May 18, 2015 at 6:34 AM, david hbase wrote: > I am going to revert the code base to priors now (May, 4). I will update > here. > ​While you are testing the reverted code base, can you please send us the complete log for the incident where application becomes inactive in 2-3 minutes? We a

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread david hbase
I am going to revert the code base to priors now (May, 4). I will update here. Thanks -D On Sun, May 17, 2015 at 5:59 PM, david hbase wrote: > I just updated to the current code base and got this error, the > application can not be "activate" now. > > I am also trying to find more detail now. >

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Rajkumar Rajaratnam
On Mon, May 18, 2015 at 6:25 AM, Rajkumar Rajaratnam wrote: > Hi David, > > Yes there seems to be an issue with PCA while processing Artifact Updated > Event . Can you please pull the latest code and work on it? > > Also, have you attached the complete stratos log? Because I couldn't see > that t

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread david hbase
I just updated to the current code base and got this error, the application can not be "activate" now. I am also trying to find more detail now. Thanks -D On Sun, May 17, 2015 at 5:57 PM, Imesh Gunaratne wrote: > Hi David, > > It looks like there is an issue in PCA in processing the Artifact U

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Imesh Gunaratne
Hi David, It looks like there is an issue in PCA in processing the Artifact Updated event: TypeError: coercing to Unicode: need string or buffer, NoneType found Chamila: Do you have any thoughts on this? Thanks On Monday, May 18, 2015, david hbase wrote: > Hi, Raj > > The cartridge agent log

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Rajkumar Rajaratnam
Hi David, Yes there seems to be an issue with PCA while processing Artifact Updated Event . Can you please pull the latest code and work on it? Also, have you attached the complete stratos log? Because I couldn't see that the application is activated. If you have the complete log (from applicatio

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Rajkumar Rajaratnam
+ Chamila On Mon, May 18, 2015 at 6:25 AM, Rajkumar Rajaratnam wrote: > Hi David, > > Yes there seems to be an issue with PCA while processing Artifact Updated > Event . Can you please pull the latest code and work on it? > > Also, have you attached the complete stratos log? Because I couldn't s

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread david hbase
The Stratos Log; [2015-05-18 00:33:07,238] INFO {org.apache.stratos.messaging.message.processor.topology.ServiceCreatedMessageProcessor} - Service created: [service] php [2015-05-18 00:33:14,945] INFO {org.apache.stratos.autoscaler.services.impl.AutoscalerServiceImpl} - Adding application: [app

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread david hbase
Hi, Raj The cartridge agent log: (*ERROR:Error processing 'ArtifactUpdatedEvent' event*) 2015-05-18 00:35:34,666:DEBUG:Executing handler for event 'ArtifactUpdatedEvent' 2015-05-18 00:35:34,667:INFO:Processing Artifact update event: [tenant] -1234 [cluster] single-cartridge-app01.my-php.php.domai

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread Rajkumar Rajaratnam
On Mon, May 18, 2015 at 4:33 AM, david hbase wrote: > Hi, Raj > > Thanks for your help, the application can be activated now. > > I got another issue is: After the application activated about 2~5 minutes, > then the application cluster became "inactive", but the instance keep as > "active" status

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-17 Thread david hbase
Hi, Raj Thanks for your help, the application can be activated now. I got another issue is: After the application activated about 2~5 minutes, then the application cluster became "inactive", but the instance keep as "active" status. I have checked our JIRA, there are some tickets related. I will

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-15 Thread Rajkumar Rajaratnam
Hi David, Please attach the complete stratos logs for this scenario. 1. org.apache.stratos.cloud.controller.exception.CloudControllerException: Failed to allocate an IP address. ( not sure the cause ) Thanks. On Thu, May 14, 2015 at 10:36 AM, david hbase wrote: > Thanks for your quick update.

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-13 Thread david hbase
Thanks for your quick update. verify with my config now. -D On Wed, May 13, 2015 at 9:48 PM, Udara Liyanage wrote: > Hi David, > > I am attached the init script I am using. > > My Stratos configuration in *repository/conf/cartridge-config.properties* > > puppet.ip=192.168.30.81 > puppet.hostname

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-13 Thread Udara Liyanage
Hi David, I am attached the init script I am using. My Stratos configuration in *repository/conf/cartridge-config.properties* puppet.ip=192.168.30.81 puppet.hostname=puppet.ppaas.puppetmaster.com After executing init script my */etc/hosts* file content is as below. 825114051510 is a random numb

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-13 Thread david hbase
Additional info: 1. During the instance created, successfully assigned an IP, but Stratos can not get the IP. 2. The init script have issue with the PUPPET_HOSTNAME=puppet-hostname

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-13 Thread david hbase
Hi, Udara I have tried multiple times, Instance creating and termination are working without any error. But got the following errors as: 1. org.apache.stratos.cloud.controller.exception.CloudControllerException: Failed to allocate an IP address. ( not sure the cause ) 2. puppet-agent[1181]: Coul

Re: [Q] Test Stratos 4.1 with OpenStack

2015-05-13 Thread Udara Liyanage
Hi David, I have tested Stratos with Openstack Icehouse and it is working without any issue for the moment. see my exact Openstack version rpm -qa | grep nova-common openstack-nova-common-2014.1.2-1.el6.noarch Instance creating, termination, ip assigning working for me without any issue. On Wed,

[Q] Test Stratos 4.1 with OpenStack

2015-05-13 Thread david hbase
Hi, Dev Team If anyone tested the Stratos 4.1 with Openstack? I am focusing on the 4.1 with icehouse now. Open this email chain to post the issues and solutions. Thanks -D