Re: Why agent wait to be intialized even after complete topology is received

2014-12-22 Thread Chamila De Alwis
Hi Udara, The instance activated event is sent, 1) after instance started if the repo_url is null. so in this case this doesn't happen. 2) when the first ArtifactUpdatedEvent is processed. Could you check if the artifact updated event is published? Regards, Chamila de Alwis Software Engineer |

Re: Why agent wait to be intialized even after complete topology is received

2014-12-22 Thread Udara Liyanage
Hi raj, Could not fetch agent's log, instance got killed since it did not send activate :-( On Mon, Dec 22, 2014 at 1:13 PM, Rajkumar Rajaratnam wrote: > > Hi Udara, > > Can you attach the agent log? > > Thanks. > > On Mon, Dec 22, 2014 at 1:04 PM, Udara Liyanage wrote: > >> Hi raj, >> >> I tes

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Rajkumar Rajaratnam
And make sure that the ports are open. Instance activated event will be sent by the agent only if ports are open. Thanks. On Mon, Dec 22, 2014 at 1:15 PM, Udara Liyanage wrote: > Hi Raj, > > Logs are missed since instance is killed as an obsolete member. I will > provide the logs next time. > >

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Udara Liyanage
Hi Raj, Logs are missed since instance is killed as an obsolete member. I will provide the logs next time. On Mon, Dec 22, 2014 at 1:13 PM, Rajkumar Rajaratnam wrote: > > Hi Udara, > > Can you attach the agent log? > > Thanks. > > On Mon, Dec 22, 2014 at 1:04 PM, Udara Liyanage wrote: > >> Hi r

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Rajkumar Rajaratnam
Hi Udara, Can you attach the agent log? Thanks. On Mon, Dec 22, 2014 at 1:04 PM, Udara Liyanage wrote: > Hi raj, > > I tested with lates python code base. This time member is in topology and > instance spawned event is also received. But yet instance activated is not > sent. > > *1) Instance s

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Udara Liyanage
Hi raj, I tested with lates python code base. This time member is in topology and instance spawned event is also received. But yet instance activated is not sent. *1) Instance started event received* 2014-12-22 12:53:49,904:DEBUG:Property added: [key] STRATOS_ MEMBER_PROPERTY_PRIMARY[value] fals

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Udara Liyanage
Hi Raj, Thanks for the info. I will check with updated agent. On Mon, Dec 22, 2014 at 12:24 PM, Rajkumar Rajaratnam 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

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Udara Liyanage
Hi Isuru, Raj, Current codebase have below line on 190th line of events.py. May be agent in my puppet master is outdated. I will update it and try again. cluster_obj.hostnames = cluster_str["hostNames"] On Mon, Dec 22, 2014 at 12:22 PM, Rajkumar Rajaratnam wrote: > > Just noticed that there i

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Rajkumar Rajaratnam
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

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Rajkumar Rajaratnam
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 wrote: > Hi, > > AFAIR, agent will wait for two conditions to happen. It will proceed if > either of two cond

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Rajkumar Rajaratnam
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

Re: Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Isuru Haththotuwa
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 wrote: > Hi Chamila, > > I get the ":Waiting for Cartridge Agent to be initia

Why agent wait to be intialized even after complete topology is received

2014-12-21 Thread Udara Liyanage
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 Cartri