Yes, built the from the master branch this morning. Thanks -D
On Mon, May 18, 2015 at 8:21 PM, Rajkumar Rajaratnam <rajkum...@wso2.com> wrote: > Great to hear that David! > > BTW, this is master branch right? > > Thanks. > > On Tue, May 19, 2015 at 8:16 AM, david hbase <davidhb...@gmail.com> 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 <chami...@wso2.com> >> wrote: >> >>> 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, May 18, 2015 at 10:58 PM, david hbase <davidhb...@gmail.com> >>> wrote: >>> >>>> 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 <ud...@wso2.com> wrote: >>>> >>>>> 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 >>>>> definition *and *payload content* for further investigation. >>>>> >>>>> On Mon, May 18, 2015 at 1:31 PM, david hbase <davidhb...@gmail.com> >>>>> wrote: >>>>> >>>>>> Auto scaling running well, Thanks >>>>>> -D >>>>>> >>>>>> On Mon, May 18, 2015 at 12:08 AM, david hbase <davidhb...@gmail.com> >>>>>> 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 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Sun, May 17, 2015 at 11:44 PM, Udara Liyanage <ud...@wso2.com> >>>>>>> wrote: >>>>>>> >>>>>>>> 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 < >>>>>>>> rajkum...@wso2.com> wrote: >>>>>>>> >>>>>>>>> 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 copyright ownership. The ASF licenses this file >>>>>>>>> # to you under the Apache License, Version 2.0 (the >>>>>>>>> # "License"); you may not use this file except in compliance >>>>>>>>> # with the License. You may obtain a copy of the License at >>>>>>>>> # >>>>>>>>> # http://www.apache.org/licenses/LICENSE-2.0 >>>>>>>>> <http://www.google.com/url?q=http%3A%2F%2Fwww.apache.org%2Flicenses%2FLICENSE-2.0&sa=D&sntz=1&usg=AFQjCNFPaSHdvCi6VD7GwgEkKspvD3d_tw> >>>>>>>>> # >>>>>>>>> # Unless required by applicable law or agreed to in writing, >>>>>>>>> # software distributed under the License is distributed on an >>>>>>>>> # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY >>>>>>>>> # KIND, either express or implied. See the License for the >>>>>>>>> # specific language governing permissions and limitations >>>>>>>>> # under the License. >>>>>>>>> >>>>>>>>> [agent] >>>>>>>>> mb.ip =10.203.51.145 >>>>>>>>> mb.port =1883 >>>>>>>>> listen.address =localhost >>>>>>>>> thrift.receiver.ip =10.203.51.145 >>>>>>>>> thrift.receiver.port =7711 >>>>>>>>> thrift.server.admin.username =admin >>>>>>>>> thrift.server.admin.password =admin >>>>>>>>> cep.stats.publisher.enabled =true >>>>>>>>> lb.private.ip = >>>>>>>>> lb.public.ip = >>>>>>>>> enable.artifact.update =true >>>>>>>>> auto.commit =false >>>>>>>>> auto.checkout =true >>>>>>>>> artifact.update.interval =15 >>>>>>>>> port.check.timeout =600000 >>>>>>>>> enable.data.publisher =false >>>>>>>>> monitoring.server.ip =10.203.51.145 >>>>>>>>> monitoring.server.port =7611 >>>>>>>>> monitoring.server.secure.port =7711 >>>>>>>>> monitoring.server.admin.username =admin >>>>>>>>> monitoring.server.admin.password =admin >>>>>>>>> log.file.paths =LOG_FILE_PATHS >>>>>>>>> APPLICATION_PATH =/var/www/www >>>>>>>>> metadata.service.url =https://10.203.51.145:9443 >>>>>>>>> <https://www.google.com/url?q=https%3A%2F%2F10.203.51.145%3A9443&sa=D&sntz=1&usg=AFQjCNGrktHfB6f8bU_jwrbGPwlJrwyB0w> >>>>>>>>> >>>>>>>>> Thanks. >>>>>>>>> >>>>>>>>> On Mon, May 18, 2015 at 11:59 AM, Udara Liyanage <ud...@wso2.com> >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On Mon, May 18, 2015 at 11:18 AM, Rajkumar Rajaratnam < >>>>>>>>>> rajkum...@wso2.com> 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 event: >>>>>>>>>>> [tenant] -1234 [cluster] single-cartridge-app01.my-php.php.domain >>>>>>>>>>> [status] >>>>>>>>>>> None >>>>>>>>>>> 2015-05-18 05:35:39,670:INFO:Executing git checkout >>>>>>>>>>> 2015-05-18 05:35:39,671:DEBUG:Repo path returned : None >>>>>>>>>>> >>>>>>>>>> I had a look at get_repo_path_for_tenant() of eventhandler.py >>>>>>>>>> class. In order to "repo path " to be None, either doc root should >>>>>>>>>> be not >>>>>>>>>> defined. >>>>>>>>>> Could you share the agent.conf or value of MULTITENANT variable >>>>>>>>>> in agent.conf file >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> 2015-05-18 05:35:39,671:DEBUG:Cloning artifacts from >>>>>>>>>>> https://github.com/imesh/stratos-php-applications.git for the >>>>>>>>>>> first time to None >>>>>>>>>>> 2015-05-18 05:35:39,671:DEBUG:Executing git clone: [tenant-id] >>>>>>>>>>> -1234 [repo-url] >>>>>>>>>>> https://github.com/imesh/stratos-php-applications.git, [repo >>>>>>>>>>> path] None >>>>>>>>>>> 2015-05-18 05:35:39,671:ERROR:Error processing >>>>>>>>>>> 'ArtifactUpdatedEvent' event >>>>>>>>>>> Traceback (most recent call last): >>>>>>>>>>> File >>>>>>>>>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/subscriber/eventsubscriber.py", >>>>>>>>>>> line 103, in run >>>>>>>>>>> handler(event_msg) >>>>>>>>>>> File "agent.py", line 193, in on_artifact_updated >>>>>>>>>>> self.__event_handler.on_artifact_updated_event(event_obj) >>>>>>>>>>> File >>>>>>>>>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/event/eventhandler.py", >>>>>>>>>>> line 96, in on_artifact_updated_event >>>>>>>>>>> subscribe_run, updated = AgentGitHandler.checkout(repo_info) >>>>>>>>>>> File >>>>>>>>>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py", >>>>>>>>>>> line 89, in checkout >>>>>>>>>>> git_repo = AgentGitHandler.clone(git_repo) >>>>>>>>>>> File >>>>>>>>>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/agentgithandler.py", >>>>>>>>>>> line 185, in clone >>>>>>>>>>> if os.path.isdir(git_repo.local_repo_path) and >>>>>>>>>>> os.listdir(git_repo.local_repo_path) != []: >>>>>>>>>>> File "/usr/lib/python2.7/genericpath.py", line 41, in isdir >>>>>>>>>>> st = os.stat(s) >>>>>>>>>>> TypeError: coercing to Unicode: need string or buffer, NoneType >>>>>>>>>>> found >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> Do you have any thoughts? $docroot is set by default in php.pp. >>>>>>>>>>> >>>>>>>>>>> Thanks. >>>>>>>>>>> >>>>>>>>>>> On Mon, May 18, 2015 at 10:08 AM, Rajkumar Rajaratnam < >>>>>>>>>>> rajkum...@wso2.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> 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 to use the latest Stratos code base. >>>>>>>>>>>> >>>>>>>>>>>> 1) git clone master >>>>>>>>>>>> 2) mvn clean install >>>>>>>>>>>> 3) Extract stratos.zip and do the configurations >>>>>>>>>>>> 4) Replace the python-agent.zip in puppet master >>>>>>>>>>>> 5) Deploy the application >>>>>>>>>>>> >>>>>>>>>>>> Thanks. >>>>>>>>>>>> >>>>>>>>>>>> On Mon, May 18, 2015 at 8:06 AM, Chamila De Alwis < >>>>>>>>>>>> chami...@wso2.com> 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 file in the instance. In Puppet this >>>>>>>>>>>>> is set >>>>>>>>>>>>> from the variable "docroot" which is written to agent.conf. >>>>>>>>>>>>> >>>>>>>>>>>>> Could you verify that in the cartridge Puppet manifest you're >>>>>>>>>>>>> using, in its node definition, if $docroot is set? >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> Regards, >>>>>>>>>>>>> Chamila de Alwis >>>>>>>>>>>>> Software Engineer | WSO2 | +94772207163 >>>>>>>>>>>>> Blog: code.chamiladealwis.com >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> On Mon, May 18, 2015 at 7:43 AM, david hbase < >>>>>>>>>>>>> davidhb...@gmail.com> wrote: >>>>>>>>>>>>> >>>>>>>>>>>>>> The log files have been sent. >>>>>>>>>>>>>> >>>>>>>>>>>>>> Thanks >>>>>>>>>>>>>> -D >>>>>>>>>>>>>> >>>>>>>>>>>>>> On Sun, May 17, 2015 at 6:37 PM, Chamila De Alwis < >>>>>>>>>>>>>> chami...@wso2.com> wrote: >>>>>>>>>>>>>> >>>>>>>>>>>>>>> Hi, >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> On Mon, May 18, 2015 at 6:14 AM, david hbase < >>>>>>>>>>>>>>> davidhb...@gmail.com> 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 time to None >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> It seems from the above log entries the repository path is >>>>>>>>>>>>>>> empty. That is why the Git clone operation is failing. >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> @David, >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Would you be able to post the following file contents? >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> 1. /tmp/payload/launch_params >>>>>>>>>>>>>>> 2. Complete PCA log at /tmp/agent.screen.log >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> Regards, >>>>>>>>>>>>>>> Chamila de Alwis >>>>>>>>>>>>>>> Software Engineer | WSO2 | +94772207163 >>>>>>>>>>>>>>> Blog: code.chamiladealwis.com >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> -- >>>>>>>>>>>> Rajkumar Rajaratnam >>>>>>>>>>>> Committer & PMC Member, Apache Stratos >>>>>>>>>>>> Software Engineer, WSO2 >>>>>>>>>>>> >>>>>>>>>>>> Mobile : +94777568639 >>>>>>>>>>>> Blog : rajkumarr.com >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> -- >>>>>>>>>>> Rajkumar Rajaratnam >>>>>>>>>>> Committer & PMC Member, Apache Stratos >>>>>>>>>>> Software Engineer, WSO2 >>>>>>>>>>> >>>>>>>>>>> Mobile : +94777568639 >>>>>>>>>>> Blog : rajkumarr.com >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> >>>>>>>>>> Udara Liyanage >>>>>>>>>> Software Engineer >>>>>>>>>> WSO2, Inc.: http://wso2.com >>>>>>>>>> lean. enterprise. middleware >>>>>>>>>> >>>>>>>>>> web: http://udaraliyanage.wordpress.com >>>>>>>>>> phone: +94 71 443 6897 >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Rajkumar Rajaratnam >>>>>>>>> Committer & PMC Member, Apache Stratos >>>>>>>>> Software Engineer, WSO2 >>>>>>>>> >>>>>>>>> Mobile : +94777568639 >>>>>>>>> Blog : rajkumarr.com >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> Udara Liyanage >>>>>>>> Software Engineer >>>>>>>> WSO2, Inc.: http://wso2.com >>>>>>>> lean. enterprise. middleware >>>>>>>> >>>>>>>> web: http://udaraliyanage.wordpress.com >>>>>>>> phone: +94 71 443 6897 >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Udara Liyanage >>>>> Software Engineer >>>>> WSO2, Inc.: http://wso2.com >>>>> lean. enterprise. middleware >>>>> >>>>> web: http://udaraliyanage.wordpress.com >>>>> phone: +94 71 443 6897 >>>>> >>>> >>>> >>> >> > > > -- > Rajkumar Rajaratnam > Committer & PMC Member, Apache Stratos > Software Engineer, WSO2 > > Mobile : +94777568639 > Blog : rajkumarr.com >