Hi Raj, Thanks for the info. I will check with updated agent.
On Mon, Dec 22, 2014 at 12:24 PM, Rajkumar Rajaratnam <rajkum...@wso2.com> wrote: > > Hi Udara, > > Are you using the latest python agent? > > Chamila changed the agent yesterday. Member object doesn't have an > attribute called "memberIp anymore. It has been changed to defaultPrivateIP. > > Latest python agent has this changes. > > Thanks. > > On Mon, Dec 22, 2014 at 12:22 PM, Rajkumar Rajaratnam <rajkum...@wso2.com> > wrote: > >> Just noticed that there is an error in parsing complete topology event. >> So initialization didn't happen as Isuru mentioned. >> >> Thanks. >> >> On Mon, Dec 22, 2014 at 12:19 PM, Rajkumar Rajaratnam <rajkum...@wso2.com >> > wrote: >> >>> Hi, >>> >>> AFAIR, agent will wait for two conditions to happen. It will proceed if >>> either of two conditions becomes true. >>> >>> 1. Member should be in the topology >>> 2. Agent should get instance spawned event from CC >>> >>> So either of them didn't happen for you. >>> >>> Thanks. >>> >>> On Mon, Dec 22, 2014 at 12:17 PM, Isuru Haththotuwa <isu...@apache.org> >>> wrote: >>> >>>> HI Udara, >>>> >>>> There is an error log about parsing the complete Topology event. Maybe >>>> the event did not get parsed correctly, and the required initialization did >>>> not happen. >>>> >>>> On Mon, Dec 22, 2014 at 12:12 PM, Udara Liyanage <ud...@wso2.com> >>>> wrote: >>>> >>>>> Hi Chamila, >>>>> >>>>> I get the ":Waiting for Cartridge Agent to be initialized..." logs >>>>> continuously even though complete topology and complete tenant event is >>>>> already received. >>>>> >>>>> >>>>> 2014-12-22 12:04:47,595:DEBUG:Waiting for Cartridge Agent to be >>>>> initialized... >>>>> 2014-12-22 12:04:48,596:DEBUG:Waiting for Cartridge Agent to be >>>>> initialized... >>>>> 2014-12-22 12:04:49,597:DEBUG:Waiting for Cartridge Agent to be >>>>> initialized... >>>>> 2014-12-22 12:04:49,781:DEBUG:Message received: >>>>> 'topology/CompleteTopologyEvent': >>>>> >>>>> '{"topology":{"serviceMap":{"tomcat":{"serviceName":"tomcat","serviceType":"SingleTenant","clusterIdClusterMap":{"mytomcat.tomcat.domain":{"serviceName":"tomcat","clusterId":"mytomcat.tomcat.domain","autoscalePolicyName":"autoscale_policy_1","hostNames":[" >>>>> mytomcat.isuruh.lk >>>>> "],"tenantRange":"*","isLbCluster":false,"isKubernetesCluster":false,"memberMap":{"mytomcat.tomcat.domainf1ee1c36-db95-452d-a1e7-1daf936e9101":{"serviceName":"tomcat","clusterId":"mytomcat.tomcat.domain","memberId":"mytomcat.tomcat.domainf1ee1c36-db95-452d-a1e7-1daf936e9101","instanceId":"ap-southeast-1/i-df7dde12","clusterInstanceId":"app_cartridge_v1-1","networkPartitionId":"p1","partitionId":"P1","initTime":1419229605140,"portMap":{"443":{"protocol":"https","value":443,"proxy":443},"80":{"protocol":"http","value":80,"proxy":80}},"memberPublicIPs":["54.151.190.32"],"defaultPublicIP":"54.151.190.32","memberPrivateIPs":["10.144.68.9"],"defaultPrivateIP":"10.144.68.9","properties":{"PRIMARY":"false","MIN_COUNT":"1"},"memberStateManager":{"stateStack":["Created"],"identifier":"mytomcat.tomcat.domainf1ee1c36-db95-452d-a1e7-1daf936e9101"}}},"appId":"app_cartridge_v1","properties":{},"instanceIdToInstanceContextMap":{"app_cartridge_v1-1":{"instanceId":"app_cartridge_v1-1","instanceProperties":{},"lifeCycleStateManager":{"stateStack":["Created"],"identifier":"mytomcat.tomcat.domain_app_cartridge_v1-1"},"networkPartitionId":"p1"}}}},"portMap":{"443":{"protocol":"https","value":443,"proxy":443},"80":{"protocol":"http","value":80,"proxy":80}},"properties":{}}},"initialized":false}}' >>>>> 2014-12-22 12:04:49,781:DEBUG:Executing handler for event >>>>> 'CompleteTopologyEvent' >>>>> 2014-12-22 12:04:49,781:DEBUG:Complete topology event received >>>>> 2014-12-22 12:04:49,782:ERROR:Error processing 'CompleteTopologyEvent' >>>>> event >>>>> Traceback (most recent call last): >>>>> File >>>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/subscriber/eventsubscriber.py", >>>>> line 81, in on_message >>>>> handler(msg) >>>>> File "agent.py", line 255, in on_complete_topology >>>>> event_obj = CompleteTopologyEvent.create_from_json(msg.payload) >>>>> File >>>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/event/topology/events.py", >>>>> line 190, in create_from_json >>>>> member_obj.member_ip = member_str["memberIp"] >>>>> KeyError: 'memberIp' >>>>> 2014-12-22 12:04:49,820:DEBUG:Message received: >>>>> 'tenant/CompleteTenantEvent': >>>>> '{"tenants":[]}' >>>>> 2014-12-22 12:04:49,820:DEBUG:Executing handler for event >>>>> 'CompleteTenantEvent' >>>>> 2014-12-22 12:04:49,820:INFO:Complete tenant event updating task >>>>> disabled >>>>> >>>>> >>>>> *Carbon logs:* >>>>> >>>>> TID: [0] [STRATOS] [2014-12-22 06:27:21,240] INFO >>>>> {org.apache.stratos.cloud.controller.messaging.publisher.TopologyEventPublisher} >>>>> - Publishing instance spawned event: [service-name] tomcat [cluster-id] >>>>> mytomcat.tomcat.domain [cluster-instance-id] app_cartridge_v1-1 >>>>> [member-id] >>>>> mytomcat.tomcat.domainf1ee1c36-db95-452d-a1e7-1daf936e9101 [instance-id] >>>>> ap-southeast-1/i-df7dde12 [network-partition-id] p1 [partition-id] P1 >>>>> [lb-cluster-id] null >>>>> TID: [0] [STRATOS] [2014-12-22 06:27:21,261] INFO >>>>> {org.apache.stratos.messaging.domain.topology.lifecycle.LifeCycleStateManager} >>>>> - Life Cycle State Manager started for Element [ >>>>> mytomcat.tomcat.domainf1ee1c36-db95-452d-a1e7-1daf936e9101 ], initial >>>>> state: Created >>>>> TID: [0] [STRATOS] [2014-12-22 06:27:21,264] INFO >>>>> {org.apache.stratos.messaging.message.processor.topology.InstanceSpawnedMessageProcessor} >>>>> - Member created: [service] tomcat [cluster] mytomcat.tomcat.domain >>>>> [member] mytomcat.tomcat.domainf1ee1c36-db95-452d-a1e7-1daf936e9101 >>>>> [instance] ap-southeast-1/i-df7dde12 [hierarchy-instance] >>>>> app_cartridge_v1-1 >>>>> TID: [0] [STRATOS] [2014-12-22 06:27:21,268] INFO >>>>> {org.apache.stratos.manager.topology.receiver.StratosManagerTopologyEventReceiver} >>>>> - [InstanceSpawnedEventListener] Received: class >>>>> org.apache.stratos.messaging.event.topology.InstanceSpawnedEvent >>>>> >>>>> -- >>>>> >>>>> Udara Liyanage >>>>> Software Engineer >>>>> WSO2, Inc.: http://wso2.com >>>>> lean. enterprise. middleware >>>>> >>>>> web: http://udaraliyanage.wordpress.com >>>>> phone: >>>>> +94 71 443 6897 >>>>> >>>>> -- >>>>> Thanks and Regards, >>>>> >>>>> Isuru H. >>>>> +94 716 358 048* <http://wso2.com/>* >>>>> >>>>> >>>>> * <http://wso2.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 >> > > > > -- > 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