Return-Path: X-Original-To: apmail-stratos-dev-archive@minotaur.apache.org Delivered-To: apmail-stratos-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 99EE010E20 for ; Mon, 18 May 2015 00:45:03 +0000 (UTC) Received: (qmail 53055 invoked by uid 500); 18 May 2015 00:44:58 -0000 Delivered-To: apmail-stratos-dev-archive@stratos.apache.org Received: (qmail 53000 invoked by uid 500); 18 May 2015 00:44:58 -0000 Mailing-List: contact dev-help@stratos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stratos.apache.org Delivered-To: mailing list dev@stratos.apache.org Received: (qmail 52988 invoked by uid 99); 18 May 2015 00:44:58 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 May 2015 00:44:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9AA7EC0B1C for ; Mon, 18 May 2015 00:44:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.216 X-Spam-Level: **** X-Spam-Status: No, score=4.216 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, NUMERIC_HTTP_ADDR=0.001, URIBL_BLOCKED=0.001, URI_HEX=1.313, WEIRD_QUOTING=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id TCK1Kib_Wo9L for ; Mon, 18 May 2015 00:44:42 +0000 (UTC) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 4A19F43C8F for ; Mon, 18 May 2015 00:44:41 +0000 (UTC) Received: by labbd9 with SMTP id bd9so196451814lab.2 for ; Sun, 17 May 2015 17:44:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=1UrJaOuO1NCsJvyqnkN3bpYHMbxmDCyOmgjbthA2wec=; b=nEODshOLjtwUlO9s/raYBD/kNiSGu3VLeYl0jCYgLQGblT2Z2cljxm+PKetQfP/tuD SqAASkFxMhX9X2e/py9/fJUauU86HtgoSXNOD753Y1QWsou04FtT+DRzeKzCVhBZHwu9 PAodkQOpQhgaRpx/e8442svSxz45b0qaSX6s+J0UbyNMEhwxRG70Z8AtZ1fy5f+S+RW/ GmSHOV/MN295ZIl5hhHjxwZFnCDNMFtzlwE9/J5NIY73Gg0plELWUf28yKhFt0cX1jYL KpSaaA7ASoIAgS3zB2FDdRsXrICCrhpcGgA17QYzrTaE+H+ATbjzp1VdCv7EZ/X87JYd aYIA== MIME-Version: 1.0 X-Received: by 10.112.168.165 with SMTP id zx5mr15253748lbb.111.1431909873782; Sun, 17 May 2015 17:44:33 -0700 (PDT) Received: by 10.112.40.225 with HTTP; Sun, 17 May 2015 17:44:33 -0700 (PDT) In-Reply-To: References: Date: Sun, 17 May 2015 17:44:33 -0700 Message-ID: Subject: Re: [Q] Test Stratos 4.1 with OpenStack From: david hbase To: "dev@stratos.apache.org" Content-Type: multipart/alternative; boundary=001a11c234526094b20516507f34 --001a11c234526094b20516507f34 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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.domain [status] None 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 2015-05-18 00:35:34,667:DEBUG:Executing git clone: [tenant-id] -1234 [repo-url] https://github.com/imesh/stratos-php-applications.git, [repo path] None 2015-05-18 00:35:34,667:ERROR:Error processing 'ArtifactUpdatedEvent' event Traceback (most recent call last): File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/subscrib= er/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/ev= enthandler.py", line 96, in on_artifact_updated_event subscribe_run, updated =3D AgentGitHandler.checkout(repo_info) File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifact= mgt/git/agentgithandler.py", line 89, in checkout git_repo =3D AgentGitHandler.clone(git_repo) File "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifact= mgt/git/agentgithandler.py", line 185, in clone if os.path.isdir(git_repo.local_repo_path) and os.listdir(git_repo.local_repo_path) !=3D []: File "/usr/lib/python2.7/genericpath.py", line 41, in isdir st =3D os.stat(s) TypeError: coercing to Unicode: need string or buffer, NoneType found 2015-05-18 00:35:34,669:INFO:MemberStartedEvent Extension executed. [output]: Mon May 18 00:35:34 UTC 2015: Member Started Event: MEMBER_ID: , MEMBER_IP: , CLUSTER_ID: , LB_CLUSTER_ID: , NETWORK_PARTITION_ID: , SERVICE_NAME: , PORTS: , STRATOS_LB_IP: , STRATOS_LB_PUBLIC_IP: , APPLICATION_PATH: , STRATOS_PARAM_FILE_PATH: Member List: Topology: --------------- 2015-05-18 00:35:34,670:INFO:MemberStartedEvent Extension executed. [output]: Mon May 18 00:35:34 UTC 2015: Member Started Event: MEMBER_ID: , MEMBER_IP: , CLUSTER_ID: , LB_CLUSTER_ID: , NETWORK_PARTITION_ID: , SERVICE_NAME: , PORTS: , STRATOS_LB_IP: , STRATOS_LB_PUBLIC_IP: , APPLICATION_PATH: , STRATOS_PARAM_FILE_PATH: Member List: Topology: --------------- 2015-05-18 00:35:34,671:DEBUG:No plugins registered for event MemberStartedEvent 2015-05-18 00:36:27,472:DEBUG:Message received: topology/CompleteTopologyEvent: {"topology":{"clusterMap":{},"serviceMap":{"php":{"serviceName":"php","serv= iceType":"SingleTenant","clusterIdClusterMap":{"single-cartridge-app01.my-p= hp.php.domain":{"serviceName":"php","clusterId":"single-cartridge-app01.my-= php.php.domain","autoscalePolicyName":"autoscaling-policy-1a","deploymentPo= licyName":"deployment-policy-1a","hostNames":[" single-cartridge-app01.my-php.stratos41beta2a.cisco.com "],"tenantRange":"*","isLbCluster":false,"isKubernetesCluster":false,"membe= rMap":{"single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e= 3cc0148cf":{"serviceName":"php","clusterId":"single-cartridge-app01.my-php.= php.domain","memberId":"single-cartridge-app01.my-php.php.domaindea3bc9e-e1= 71-4915-8899-83e3cc0148cf","clusterInstanceId":"single-cartridge-app01-1","= networkPartitionId":"network-partition-1a","partitionId":"partition-1","ini= tTime":1431909208794,"portMap":{},"memberPublicIPs":[],"memberPrivateIPs":[= "192.168.21.72","10.203.51.54"],"defaultPrivateIP":"192.168.21.72","propert= ies":{"PRIMARY":"false","MIN_COUNT":"1"},"memberStateManager":{"stateStack"= :["Created","Initialized","Starting"],"identifier":"single-cartridge-app01.= my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf"},"loadBalancingIPTyp= e":"Private"}},"appId":"single-cartridge-app01","properties":{},"instanceId= ToInstanceContextMap":{"single-cartridge-app01-1":{"instanceId":"single-car= tridge-app01-1","instanceProperties":{},"lifeCycleStateManager":{"stateStac= k":["Created"],"identifier":"single-cartridge-app01.my-php.php.domain_singl= e-cartridge-app01-1"},"networkPartitionId":"network-partition-1a"}},"kubern= etesServices":[]}},"portMap":{"8280":{"protocol":"http","value":80,"proxy":= 8280}},"properties":{}}},"initialized":false}} 2015-05-18 00:36:27,472:DEBUG:Executing handler for event 'CompleteTopologyEvent' 2015-05-18 00:36:27,473:DEBUG:Complete topology event updating task disable= d 2015-05-18 00:36:27,488:DEBUG:Message received: application/signup/CompleteApplicationSignUpsEvent: {"applicationSignUps":[{"tenantId":-1234,"applicationId":"single-cartridge-= app01","artifactRepositories":[{"cartridgeType":"php","alias":"my-php","pri= vateRepo":false,"repoUrl":" https://github.com/imesh/stratos-php-applications.git ","repoUsername":"","repoPassword":""}],"clusterIds":["single-cartridge-app= 01.my-php.php.domain"]}]} 2015-05-18 00:36:27,489:DEBUG:Event handler not found for event : 'CompleteApplicationSignUpsEvent' 2015-05-18 00:36:27,505:DEBUG:Message received: tenant/CompleteTenantEvent: {"tenants":[]} 2015-05-18 00:36:27,505:DEBUG:Executing handler for event 'CompleteTenantEvent' 2015-05-18 00:36:27,506:DEBUG:Complete tenant event received 2015-05-18 00:36:27,506:DEBUG:Processing Complete tenant event... 2015-05-18 00:36:27,506:DEBUG:Complete tenants:[] 2015-05-18 00:36:27,507:DEBUG:Reading property: param.file.path =3D /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-pa= rams 2015-05-18 00:36:27,507:DEBUG:Executing extension for event [CompleteTenantEvent] 2015-05-18 00:36:27,508:DEBUG:Running extension for CompleteTenantEvent 2015-05-18 00:36:27,510:DEBUG:Running extension for CompleteTenantEvent 2015-05-18 00:36:27,526:INFO:CompleteTenantEvent Extension executed. [output]: Mon May 18 00:36:27 UTC 2015: Complete Tenant Event: Member List: Tenant List: 2015-05-18 00:36:27,529:INFO:CompleteTenantEvent Extension executed. [output]: Mon May 18 00:36:27 UTC 2015: Complete Tenant Event: Member List: Tenant List: 2015-05-18 00:36:27,529:DEBUG:No plugins registered for event CompleteTenantEvent 2015-05-18 00:37:27,467:DEBUG:Message received: topology/CompleteTopologyEvent: {"topology":{"clusterMap":{},"serviceMap":{"php":{"serviceName":"php","serv= iceType":"SingleTenant","clusterIdClusterMap":{"single-cartridge-app01.my-p= hp.php.domain":{"serviceName":"php","clusterId":"single-cartridge-app01.my-= php.php.domain","autoscalePolicyName":"autoscaling-policy-1a","deploymentPo= licyName":"deployment-policy-1a","hostNames":[" single-cartridge-app01.my-php.stratos41beta2a.cisco.com "],"tenantRange":"*","isLbCluster":false,"isKubernetesCluster":false,"membe= rMap":{"single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e= 3cc0148cf":{"serviceName":"php","clusterId":"single-cartridge-app01.my-php.= php.domain","memberId":"single-cartridge-app01.my-php.php.domaindea3bc9e-e1= 71-4915-8899-83e3cc0148cf","clusterInstanceId":"single-cartridge-app01-1","= networkPartitionId":"network-partition-1a","partitionId":"partition-1","ini= tTime":1431909208794,"portMap":{},"memberPublicIPs":[],"memberPrivateIPs":[= "192.168.21.72","10.203.51.54"],"defaultPrivateIP":"192.168.21.72","propert= ies":{"PRIMARY":"false","MIN_COUNT":"1"},"memberStateManager":{"stateStack"= :["Created","Initialized","Starting"],"identifier":"single-cartridge-app01.= my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf"},"loadBalancingIPTyp= e":"Private"}},"appId":"single-cartridge-app01","properties":{},"instanceId= ToInstanceContextMap":{"single-cartridge-app01-1":{"instanceId":"single-car= tridge-app01-1","instanceProperties":{},"lifeCycleStateManager":{"stateStac= k":["Created"],"identifier":"single-cartridge-app01.my-php.php.domain_singl= e-cartridge-app01-1"},"networkPartitionId":"network-partition-1a"}},"kubern= etesServices":[]}},"portMap":{"8280":{"protocol":"http","value":80,"proxy":= 8280}},"properties":{}}},"initialized":false}} 2015-05-18 00:37:27,467:DEBUG:Executing handler for event 'CompleteTopologyEvent' 2015-05-18 00:37:27,468:DEBUG:Complete topology event updating task disable= d 2015-05-18 00:37:27,492:DEBUG:Message received: application/signup/CompleteApplicationSignUpsEvent: {"applicationSignUps":[{"tenantId":-1234,"applicationId":"single-cartridge-= app01","artifactRepositories":[{"cartridgeType":"php","alias":"my-php","pri= vateRepo":false,"repoUrl":" https://github.com/imesh/stratos-php-applications.git ","repoUsername":"","repoPassword":""}],"clusterIds":["single-cartridge-app= 01.my-php.php.domain"]}]} 2015-05-18 00:37:27,492:DEBUG:Event handler not found for event : 'CompleteApplicationSignUpsEvent' 2015-05-18 00:37:27,510:DEBUG:Message received: tenant/CompleteTenantEvent: {"tenants":[]} 2015-05-18 00:37:27,510:DEBUG:Executing handler for event 'CompleteTenantEvent' On Sun, May 17, 2015 at 4:57 PM, Rajkumar Rajaratnam wrote: > > > 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 instanc= e >> keep as "active" status. I have checked our JIRA, there are some tickets >> related. I will dig out more info and update here. >> > > =E2=80=8BCan you please attach both stratos log and cartridge agent log h= ere? Did > you put the correct CEP IP in base.pp? Since you are not using external > CEP, your CEP IP is same as Stratos IP. > =E2=80=8B > > >> >> Q: Could you send me an instruction to update the code base to current >> master with openstack env ? (My source build is May 4, need to be update= to >> current ) >> > > =E2=80=8BSimply you can pull the latest code from the master (git pull or= igin > master) and work on it. =E2=80=8B > > > =E2=80=8BThanks.=E2=80=8B > > >> >> Thanks >> -D >> >> On Fri, May 15, 2015 at 11:53 PM, Rajkumar Rajaratnam > > wrote: >> >>> Hi David, >>> >>> Please attach the complete stratos logs for this scenario. >>> >>> 1. org.apache.stratos.cloud.controller.exception.CloudControllerExcepti= on: >>> 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. 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=3D192.168.30.81 >>>>> puppet.hostname=3Dpuppet.ppaas.puppetmaster.com >>>>> >>>>> After executing init script my */etc/hosts* file content is as below. >>>>> 825114051510 is a random number generated which you get a different v= alue. >>>>> 192.168.30.81 puppet.ppaas.puppetmaster.com >>>>> 127.0.0.1 >>>>> 825114051510.default.appserver-manager.puppet.ppaas.puppetmaster.com >>>>> 825114051510 >>>>> >>>>> Content in* /etc/hostname* >>>>> 825114051510 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On Thu, May 14, 2015 at 8:01 AM, david hbase >>>>> wrote: >>>>> >>>>>> 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=3Dpuppet-hostname >>>>>> >>>>>> , the puppet master server can not be assigned >>>>>> >>>>>> The above two issues did not triggerd by 4.0, only repeatable with 4= .1 >>>>>> >>>>>> Please help. Thanks >>>>>> -D >>>>>> >>>>>> >>>>>> On Wed, May 13, 2015 at 6:03 PM, david hbase >>>>>> wrote: >>>>>> >>>>>>> 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.CloudControllerExcept= ion: >>>>>>> Failed to allocate an IP address. ( not sure the cause ) >>>>>>> >>>>>>> 2. puppet-agent[1181]: Could not request certificate: Connection >>>>>>> refused - connect(2) (cause by payload is wrong data: >>>>>>> MCUuvbV7,DEPLOYMENT=3Ddefault,REPO_URL=3D >>>>>>> https://github.com/imesh/stratos-php-applications.git,PORTS=3D80,PR= OVIDER=3Dapache,PUPPET_IP=3D127.0.0.1,PUPPET_HOSTNAME=3Dpuppet-hostname >>>>>>> ) >>>>>>> >>>>>>> Could you test with current init script ( >>>>>>> https://github.com/apache/stratos/tree/master/tools/init-scripts) >>>>>>> and our beta2 code base? >>>>>>> >>>>>>> The php cartridge defined as following: >>>>>>> >>>>>>> { >>>>>>> "type": "php", >>>>>>> "provider": "apache", >>>>>>> "category": "data", >>>>>>> "host": "stratos41beta2a.abc.com", >>>>>>> "displayName": "php1a", >>>>>>> "description": "php Cartridge", >>>>>>> "version": "7", >>>>>>> "multiTenant": "false", >>>>>>> "portMapping": [ >>>>>>> { >>>>>>> "protocol": "http", >>>>>>> "port": "80", >>>>>>> "proxyPort": "8280" >>>>>>> } >>>>>>> ], >>>>>>> "deployment": { >>>>>>> }, >>>>>>> "iaasProvider": [ >>>>>>> { >>>>>>> "type": "openstack", >>>>>>> "imageId": "us-internal-1/xxxxxx6-aa6d-4c3c-9b5d-e51cef6ecca0= ", >>>>>>> "networkInterfaces": [ >>>>>>> { >>>>>>> "name": "public-direct-600", >>>>>>> "networkUuid": "2d84exxxxxx-4dc8-9897-dd8ef4719f8b" >>>>>>> } >>>>>>> ], >>>>>>> "property": [ >>>>>>> { >>>>>>> "name": "instanceType", >>>>>>> "value": >>>>>>> "us-internal-1/6xxxxxx-541b-49a5-be4c-f2320ae4a917" >>>>>>> }, >>>>>>> { >>>>>>> "name": "keyPair", >>>>>>> "value": "david" >>>>>>> }, >>>>>>> { >>>>>>> "name": "securityGroups", >>>>>>> "value": "default" >>>>>>> } >>>>>>> ] >>>>>>> } >>>>>>> ] >>>>>>> } >>>>>>> >>>>>>> Thanks for your help >>>>>>> -D >>>>>>> >>>>>>> >>>>>>> On Wed, May 13, 2015 at 10:33 AM, Udara Liyanage >>>>>>> wrote: >>>>>>> >>>>>>>> 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 withou= t >>>>>>>> any issue. >>>>>>>> >>>>>>>> On Wed, May 13, 2015 at 10:51 PM, david hbase >>>>>>> > wrote: >>>>>>>> >>>>>>>>> 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 issu= es and >>>>>>>>> solutions. >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> -D >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> 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 >>> >> >> > > > -- > Rajkumar Rajaratnam > Committer & PMC Member, Apache Stratos > Software Engineer, WSO2 > > Mobile : +94777568639 > Blog : rajkumarr.com > --001a11c234526094b20516507f34 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 [clu= ster] single-cartridge-app01.my-php.php.domain [status] None
2015-05-18 = 00:35:34,667:INFO:Executing git checkout
2015-05-18 00:35:34,667:DEBUG:R= epo path returned : None
2015-05-18 00:35:34,667:DEBUG:Cloning artifacts= from htt= ps://github.com/imesh/stratos-php-applications.git for the first time t= o None
2015-05-18 00:35:34,667:DEBUG:Executing git clone: [tenant-id] -1= 234 [repo-url] https://github.com/imesh/stratos-php-applica= tions.git, [repo path] None
2015-05-18 00:35:34,667:ERROR:Error proc= essing 'ArtifactUpdatedEvent' event
Traceback (most recent call = last):
=C2=A0 File "/mnt/apache-stratos-python-cartridge-agent-4.1.= 0-SNAPSHOT/modules/subscriber/eventsubscriber.py", line 103, in run=C2=A0=C2=A0=C2=A0 handler(event_msg)
=C2=A0 File "agent.py",= line 193, in on_artifact_updated
=C2=A0=C2=A0=C2=A0 self.__event_handle= r.on_artifact_updated_event(event_obj)
=C2=A0 File "/mnt/apache-str= atos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/event/eventhandler.py&qu= ot;, line 96, in on_artifact_updated_event
=C2=A0=C2=A0=C2=A0 subscribe_= run, updated =3D AgentGitHandler.checkout(repo_info)
=C2=A0 File "/= mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmg= t/git/agentgithandler.py", line 89, in checkout
=C2=A0=C2=A0=C2=A0 = git_repo =3D AgentGitHandler.clone(git_repo)
=C2=A0 File "/mnt/apac= he-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/artifactmgt/git/ag= entgithandler.py", line 185, in clone
=C2=A0=C2=A0=C2=A0 if os.path= .isdir(git_repo.local_repo_path) and os.listdir(git_repo.local_repo_path) != =3D []:
=C2=A0 File "/usr/lib/python2.7/genericpath.py", line = 41, in isdir
=C2=A0=C2=A0=C2=A0 st =3D os.stat(s)
TypeError: coercing= to Unicode: need string or buffer, NoneType found
2015-05-18 00:35:34,6= 69:INFO:MemberStartedEvent Extension executed. [output]: Mon May 18 00:35:3= 4 UTC 2015: Member Started Event: MEMBER_ID: , MEMBER_IP: , CLUSTER_ID: , L= B_CLUSTER_ID: , NETWORK_PARTITION_ID: , SERVICE_NAME: , PORTS: , STRATOS_LB= _IP: , STRATOS_LB_PUBLIC_IP: , APPLICATION_PATH: , STRATOS_PARAM_FILE_PATH:=
Member List:
Topology:
---------------

2015-05-18 00:35:= 34,670:INFO:MemberStartedEvent Extension executed. [output]: Mon May 18 00:= 35:34 UTC 2015: Member Started Event: MEMBER_ID: , MEMBER_IP: , CLUSTER_ID:= , LB_CLUSTER_ID: , NETWORK_PARTITION_ID: , SERVICE_NAME: , PORTS: , STRATO= S_LB_IP: , STRATOS_LB_PUBLIC_IP: , APPLICATION_PATH: , STRATOS_PARAM_FILE_P= ATH:
Member List:
Topology:
---------------

2015-05-18 00= :35:34,671:DEBUG:No plugins registered for event MemberStartedEvent
2015= -05-18 00:36:27,472:DEBUG:Message received: topology/CompleteTopologyEvent:=
{"topology":{"clusterMap":{},"serviceMap"= :{"php":{"serviceName":"php","serviceTyp= e":"SingleTenant","clusterIdClusterMap":{"sin= gle-cartridge-app01.my-php.php.domain":{"serviceName":"= php","clusterId":"single-cartridge-app01.my-php.php.dom= ain","autoscalePolicyName":"autoscaling-policy-1a"= ,"deploymentPolicyName":"deployment-policy-1a","ho= stNames":["single-cartridge-app01.my-php.stratos41beta2a.cisco.co= m"],"tenantRange":"*","isLbCluster":= false,"isKubernetesCluster":false,"memberMap":{"si= ngle-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf&= quot;:{"serviceName":"php","clusterId":"= single-cartridge-app01.my-php.php.domain","memberId":"s= ingle-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf= ","clusterInstanceId":"single-cartridge-app01-1",&= quot;networkPartitionId":"network-partition-1a","partit= ionId":"partition-1","initTime":1431909208794,&quo= t;portMap":{},"memberPublicIPs":[],"memberPrivateIPs&qu= ot;:["192.168.21.72","10.203.51.54"],"defaultPriva= teIP":"192.168.21.72","properties":{"PRIMARY&= quot;:"false","MIN_COUNT":"1"},"memberSt= ateManager":{"stateStack":["Created","Initial= ized","Starting"],"identifier":"single-cartri= dge-app01.my-php.php.domaindea3bc9e-e171-4915-8899-83e3cc0148cf"},&quo= t;loadBalancingIPType":"Private"}},"appId":"s= ingle-cartridge-app01","properties":{},"instanceIdToIns= tanceContextMap":{"single-cartridge-app01-1":{"instance= Id":"single-cartridge-app01-1","instanceProperties"= ;:{},"lifeCycleStateManager":{"stateStack":["Creat= ed"],"identifier":"single-cartridge-app01.my-php.php.do= main_single-cartridge-app01-1"},"networkPartitionId":"n= etwork-partition-1a"}},"kubernetesServices":[]}},"portM= ap":{"8280":{"protocol":"http","val= ue":80,"proxy":8280}},"properties":{}}},"init= ialized":false}}
2015-05-18 00:36:27,472:DEBUG:Executing handler fo= r event 'CompleteTopologyEvent'
2015-05-18 00:36:27,473:DEBUG:Co= mplete topology event updating task disabled
2015-05-18 00:36:27,488:DEB= UG:Message received: application/signup/CompleteApplicationSignUpsEvent:{"applicationSignUps":[{"tenantId":-1234,"applica= tionId":"single-cartridge-app01","artifactRepositories&= quot;:[{"cartridgeType":"php","alias":"m= y-php","privateRepo":false,"repoUrl":"https://github.c= om/imesh/stratos-php-applications.git","repoUsername":&q= uot;","repoPassword":""}],"clusterIds":[= "single-cartridge-app01.my-php.php.domain"]}]}
2015-05-18 00:3= 6:27,489:DEBUG:Event handler not found for event : 'CompleteApplication= SignUpsEvent'
2015-05-18 00:36:27,505:DEBUG:Message received: tenant= /CompleteTenantEvent:
{"tenants":[]}
2015-05-18 00:36:27,50= 5:DEBUG:Executing handler for event 'CompleteTenantEvent'
2015-0= 5-18 00:36:27,506:DEBUG:Complete tenant event received
2015-05-18 00:36:= 27,506:DEBUG:Processing Complete tenant event...
2015-05-18 00:36:27,506= :DEBUG:Complete tenants:[]
2015-05-18 00:36:27,507:DEBUG:Reading propert= y: param.file.path =3D /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNA= PSHOT/payload/launch-params
2015-05-18 00:36:27,507:DEBUG:Executing exte= nsion for event [CompleteTenantEvent]
2015-05-18 00:36:27,508:DEBUG:Runn= ing extension for CompleteTenantEvent
2015-05-18 00:36:27,510:DEBUG:Runn= ing extension for CompleteTenantEvent
2015-05-18 00:36:27,526:INFO:Compl= eteTenantEvent Extension executed. [output]: Mon May 18 00:36:27 UTC 2015: = Complete Tenant Event:
Member List:
Tenant List:

2015-05-18= 00:36:27,529:INFO:CompleteTenantEvent Extension executed. [output]: Mon Ma= y 18 00:36:27 UTC 2015: Complete Tenant Event:
Member List:
Tenant = List:

2015-05-18 00:36:27,529:DEBUG:No plugins registered for event= CompleteTenantEvent
2015-05-18 00:37:27,467:DEBUG:Message received: top= ology/CompleteTopologyEvent:
{"topology":{"clusterMap&quo= t;:{},"serviceMap":{"php":{"serviceName":&quo= t;php","serviceType":"SingleTenant","clusterI= dClusterMap":{"single-cartridge-app01.my-php.php.domain":{&q= uot;serviceName":"php","clusterId":"single-ca= rtridge-app01.my-php.php.domain","autoscalePolicyName":"= ;autoscaling-policy-1a","deploymentPolicyName":"deploym= ent-policy-1a","hostNames":["single-cartridge-app01.my-= php.stratos41beta2a.cisco.com"],"tenantRange":"*&qu= ot;,"isLbCluster":false,"isKubernetesCluster":false,&qu= ot;memberMap":{"single-cartridge-app01.my-php.php.domaindea3bc9e-= e171-4915-8899-83e3cc0148cf":{"serviceName":"php",= "clusterId":"single-cartridge-app01.my-php.php.domain",= "memberId":"single-cartridge-app01.my-php.php.domaindea3bc9e= -e171-4915-8899-83e3cc0148cf","clusterInstanceId":"sing= le-cartridge-app01-1","networkPartitionId":"network-par= tition-1a","partitionId":"partition-1","initT= ime":1431909208794,"portMap":{},"memberPublicIPs":= [],"memberPrivateIPs":["192.168.21.72","10.203.51.= 54"],"defaultPrivateIP":"192.168.21.72","prop= erties":{"PRIMARY":"false","MIN_COUNT":&= quot;1"},"memberStateManager":{"stateStack":["= ;Created","Initialized","Starting"],"identifi= er":"single-cartridge-app01.my-php.php.domaindea3bc9e-e171-4915-8= 899-83e3cc0148cf"},"loadBalancingIPType":"Private"= }},"appId":"single-cartridge-app01","properties&qu= ot;:{},"instanceIdToInstanceContextMap":{"single-cartridge-a= pp01-1":{"instanceId":"single-cartridge-app01-1",&= quot;instanceProperties":{},"lifeCycleStateManager":{"s= tateStack":["Created"],"identifier":"single-c= artridge-app01.my-php.php.domain_single-cartridge-app01-1"},"netw= orkPartitionId":"network-partition-1a"}},"kubernetesSer= vices":[]}},"portMap":{"8280":{"protocol"= ;:"http","value":80,"proxy":8280}},"prop= erties":{}}},"initialized":false}}
2015-05-18 00:37:27,46= 7:DEBUG:Executing handler for event 'CompleteTopologyEvent'
2015= -05-18 00:37:27,468:DEBUG:Complete topology event updating task disabled2015-05-18 00:37:27,492:DEBUG:Message received: application/signup/Complet= eApplicationSignUpsEvent:
{"applicationSignUps":[{"tenant= Id":-1234,"applicationId":"single-cartridge-app01"= ,"artifactRepositories":[{"cartridgeType":"php&quo= t;,"alias":"my-php","privateRepo":false,"= ;repoUrl":"https://github.com/imesh/stratos-php-applications.git"= ,"repoUsername":"","repoPassword":""= ;}],"clusterIds":["single-cartridge-app01.my-php.php.domain&= quot;]}]}
2015-05-18 00:37:27,492:DEBUG:Event handler not found for even= t : 'CompleteApplicationSignUpsEvent'
2015-05-18 00:37:27,510:DE= BUG:Message received: tenant/CompleteTenantEvent:
{"tenants":[= ]}
2015-05-18 00:37:27,510:DEBUG:Executing handler for event 'Comple= teTenantEvent'



On Sun, May 17, 2015 at= 4:57 PM, Rajkumar Rajaratnam <rajkumarr@wso2.com> wrote:


On Mo= n, May 18, 2015 at 4:33 AM, david hbase <davidhbase@gmail.com> wrote:
Hi, Raj

Thanks for your help, the applicati= on can be activated now.

I got another issue is: After t= he application activated about 2~5 minutes, then the application cluster be= came "inactive", but the instance keep as "active" stat= us. I have checked our JIRA, there are some tickets related. I will dig out= more info and update here.

=E2=80=8BCan you please attach both stratos log and c= artridge agent log here? Did you put the correct CEP IP in base.pp? Since y= ou are not using external CEP, your CEP IP is same as Stratos IP.
=E2=80= =8B
=C2=A0

Q: Could you send me an i= nstruction to update the code base to current master with openstack env ? (= My source build is May 4, need to be update to current )

=E2=80=8BSimply you can = pull the latest code from the master (git pull origin master) and work on i= t. =E2=80=8B
=C2=A0

=E2=80=8BThanks.=E2=80=8B


Thanks=
-D

On Fri, May 15, 2015 at 11:53 PM, Rajkumar= Rajaratnam <rajkumarr@wso2.com> wrote:
Hi David,
<= br>
Please attach the complete stratos logs for this scenario.
1. org.apache.stratos.cloud.controller.exception.CloudCo= ntrollerException: Failed to allocate an IP address. ( not sure the cause )=

Thanks.
=
On Thu, May 14, 2015 at 10:36 AM, david hbas= e <davidhbase@gmail.com> wrote:
Thanks for your quick upd= ate. verify with my config now.
-D<= br>

On Wed, May 13, 2015 at 9:48 PM, Udara Liyanage <udara@wso2= .com> wrote:
Hi David,

I am attached the init s= cript I am using.

My Stratos configuration in= repository/conf/cartridge-config.properties

puppet.ip=3D192.168.30.81

After executing= init script my /etc/hosts file content is as below. 825114051510 is= a random number generated which you get a different value.

Content i= n /etc/hostname
825114051510

=



On Thu, May 14, 2015 at 8:01 AM, dav= id hbase <davidhbase@gmail.com> wrote:
Additional in= fo:

1. During the instance created, successfully assigned an I= P, but Stratos can not get the IP.
2. The init script have is= sue with the PUPPET_HOSTNAME=3Dpuppet-hostname , the= puppet master server can not be assigned

The above two i= ssues did not triggerd by 4.0, only repeatable with 4.1

P= lease help. Thanks
-D


On = Wed, May 13, 2015 at 6:03 PM, david hbase <davidhbase@gmail.com>= wrote:
Hi, Udara

I have tried multiple times, Ins= tance creating and termination are working without any error. But got the f= ollowing errors as:

1. org.apache.stratos.cloud.controller.exceptio= n.CloudControllerException: Failed to allocate an IP address. ( not sure th= e cause )

2. puppet-agent[1181]: Could not request certificate: Conn= ection refused - connect(2) (cause by payload is wrong data: MCUuvbV7,DEPLO= YMENT=3Ddefault,REPO_URL=3Dhttps://github.com/imesh/stra= tos-php-applications.git,PORTS=3D80,PROVIDER=3Dapache,PUPPET_IP=3D127.0.0.1= ,PUPPET_HOSTNAME=3Dpuppet-hostname)

Could you test with cu= rrent init script (https://github.com/apache/stratos/tr= ee/master/tools/init-scripts) and our beta2 code base?

<= div>The php cartridge defined as following:

{
=C2=A0 "type&q= uot;: "php",
=C2=A0 "provider": "apache",<= br>=C2=A0 "category": "data",
=C2=A0 "host"= ;: "strat= os41beta2a.abc.com",
=C2=A0 "displayName": "php1= a",
=C2=A0 "description": "php Cartridge",
= =C2=A0 "version": "7",
=C2=A0 "multiTenant"= ;: "false",
=C2=A0 "portMapping": [
=C2=A0=C2=A0= =C2=A0 {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "protocol": "http= ",
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "port": "80",=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "proxyPort": "8280"<= br>=C2=A0=C2=A0=C2=A0 }
=C2=A0 ],
=C2=A0 "deployment": {=C2= =A0
=C2=A0 },
=C2=A0 "iaasProvider": [
=C2=A0=C2=A0=C2= =A0 {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "type": "openstack&q= uot;,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "imageId": "us-inter= nal-1/xxxxxx6-aa6d-4c3c-9b5d-e51cef6ecca0",
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 "networkInterfaces": [
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= "name": "public-direct-600",
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "networkUuid": "2d84exxxxx= x-4dc8-9897-dd8ef4719f8b"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 }=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 ],
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "property": [
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 {
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 "name": "instanceType",
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "value": &= quot;us-internal-1/6xxxxxx-541b-49a5-be4c-f2320ae4a917"
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 },
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "= ;name": "keyPair",
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 "value": "david"
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 },
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 {
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 "name&= quot;: "securityGroups",
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 "value": "default"
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 }
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ]
=C2= =A0=C2=A0=C2=A0 }
=C2=A0 ]
}

Thanks for your help
-D


On Wed, May 13, 2015 at= 10:33 AM, Udara Liyanage <udara@wso2.com> wrote:
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, i= p assigning working for me without any issue.

On Wed, May 13, 2015 at 1= 0:51 PM, david hbase <davidhbase@gmail.com> wrote:
<= div>Hi, Dev Team

If anyone tested the Stratos 4.1 with Opensta= ck? I am focusing on the 4.1 with icehouse now. Open this email chain to po= st the issues and solutions.

Thanks
-D





<= font color=3D"#888888">--

Udara Liyanage
Software Engineer
WSO2, Inc.:=C2=A0http://wso2.com=
lean. enterprise. middleware
<= br>
phone:= =C2=A0+94 71 443 6= 897





--
=

Udara Liyanage
Software Engineer=
WSO2, Inc.:=C2=A0http://wso2.com
lean. enterprise. middleware

= phone:=C2=A0+94 71 443 6897




= --
=
Rajkumar Rajaratnam
Committer &= amp; PMC Member, Apache Stratos
Software Enginee= r, WSO2

Mobile : +94777568639
<= /div>




--
<= span style=3D"color:rgb(102,102,102)">Ra= jkumar Rajaratnam
Committer & PMC Member, Ap= ache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog = : rajkumarr.com
<= /font>

--001a11c234526094b20516507f34--