Great! Thanks for the clarification Chamila! I will fix this. Thanks
On Tue, Feb 10, 2015 at 9:06 AM, Chamila De Alwis <chami...@wso2.com> wrote: > Hi Imesh, > > This is because the the topology is not set in the TopologyContext when > this query is done. As far as I remember this is because the first > CompleteTopologyEvent has not been received yet. > > > Regards, > Chamila de Alwis > Software Engineer | WSO2 | +94772207163 > Blog: code.chamiladealwis.com > > > > On Tue, Feb 10, 2015 at 6:55 AM, Imesh Gunaratne <im...@apache.org> wrote: > >> I see the following error in PCA now: >> >> [2015-02-10 06:52:43,775] INFO >> {agent.py:register_topology_event_listeners} - Cartridge agent topology >> receiver thread started >> Exception in thread Thread-1: >> Traceback (most recent call last): >> File >> "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", >> line 810, in __bootstrap_inner >> self.run() >> File >> "/Users/imesh/dev/apache/stratos/stratos/components/org.apache.stratos.python.cartridge.agent.test/target/test-classes/../7a69975b-d6de-4bd6-b557-dde21ac65fb3/cartridge.agent/agent.py", >> line 79, in run >> extensionutils.wait_for_complete_topology() >> File >> "/Users/imesh/dev/apache/stratos/stratos/components/org.apache.stratos.python.cartridge.agent.test/target/7a69975b-d6de-4bd6-b557-dde21ac65fb3/cartridge.agent/modules/util/extensionutils.py", >> line 252, in wait_for_complete_topology >> while not TopologyContext.topology.initialized: >> AttributeError: 'NoneType' object has no attribute 'initialized' >> >> Thanks >> >> On Mon, Feb 9, 2015 at 11:02 AM, Gayan Gunarathne <gay...@wso2.com> >> wrote: >> >>> Seems EXPORT_METADATA_KEYS are missing in the agent payload >>> launch parameters. I will check why it is not there in payload. >>> >>> Thanks, >>> Gayan >>> >>> On Mon, Feb 9, 2015 at 10:36 AM, Lakmal Warusawithana <lak...@wso2.com> >>> wrote: >>> >>>> I'm getting following error inside cartridge /tmp/agent.screen.log >>>> >>>> >>>> [2015-02-09 04:49:50,864] DEBUG >>>> {cartridgeagentconfiguration.py:__read_conf_file} - Config file path : >>>> '/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/agent.conf' >>>> >>>> [2015-02-09 04:49:50,865] DEBUG >>>> {cartridgeagentconfiguration.py:read_property} - Reading property: >>>> param.file.path = >>>> /mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params >>>> >>>> [2015-02-09 04:49:50,865] DEBUG >>>> {cartridgeagentconfiguration.py:__read_parameter_file} - Param file path : >>>> '/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/payload/launch-params' >>>> >>>> [2015-02-09 04:49:50,865] DEBUG >>>> {cartridgeagentconfiguration.py:read_property} - Reading payload parameter: >>>> APPLICATION_ID = single-cartridge-app >>>> >>>> [2015-02-09 04:49:50,865] DEBUG >>>> {cartridgeagentconfiguration.py:read_property} - Reading payload parameter: >>>> SERVICE_NAME = php >>>> >>>> [2015-02-09 04:49:50,865] DEBUG >>>> {cartridgeagentconfiguration.py:read_property} - Reading payload parameter: >>>> CLUSTER_ID = php1.php.domain >>>> >>>> [2015-02-09 04:49:50,873] DEBUG >>>> {cartridgeagentconfiguration.py:read_property} - Reading payload parameter: >>>> CLUSTER_INSTANCE_ID = single-cartridge-app-1 >>>> >>>> [2015-02-09 04:49:50,873] DEBUG >>>> {cartridgeagentconfiguration.py:read_property} - Reading payload parameter: >>>> MEMBER_ID = php1.php.domaineb61694f-91d1-47bb-b7a3-2f186dc9bddf >>>> >>>> [2015-02-09 04:49:50,873] DEBUG >>>> {cartridgeagentconfiguration.py:read_property} - Reading payload parameter: >>>> NETWORK_PARTITION_ID = network-partition-1 >>>> >>>> [2015-02-09 04:49:50,873] DEBUG >>>> {cartridgeagentconfiguration.py:read_property} - Reading payload parameter: >>>> PARTITION_ID = partition-1 >>>> >>>> [2015-02-09 04:49:50,874] DEBUG >>>> {cartridgeagentconfiguration.py:read_property} - Reading payload parameter: >>>> CARTRIDGE_KEY = XD6BttAwcgPvzDcl >>>> >>>> [2015-02-09 04:49:50,874] DEBUG >>>> {cartridgeagentconfiguration.py:read_property} - Reading payload parameter: >>>> REPO_URL = https://github.com/imesh/stratos-tomcat-applications.git >>>> >>>> [2015-02-09 04:49:50,874] DEBUG >>>> {cartridgeagentconfiguration.py:read_property} - Reading payload parameter: >>>> PORTS = 22 >>>> >>>> Traceback (most recent call last): >>>> >>>> File "agent.py", line 33, in <module> >>>> >>>> from modules.extensions import defaultextensionhandler >>>> >>>> File >>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/extensions/defaultextensionhandler.py", >>>> line 21, in <module> >>>> >>>> from ..util import extensionutils, cartridgeagentutils >>>> >>>> File >>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/util/extensionutils.py", >>>> line 29, in <module> >>>> >>>> cartridge_agent_config = >>>> cartridgeagentconfiguration.CartridgeAgentConfiguration() >>>> >>>> File >>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/config/cartridgeagentconfiguration.py", >>>> line 360, in __init__ >>>> >>>> CartridgeAgentConfiguration.instance = >>>> CartridgeAgentConfiguration.__CartridgeAgentConfiguration() >>>> >>>> File >>>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/config/cartridgeagentconfiguration.py", >>>> line 239, in __init__ >>>> >>>> raise RuntimeError(ex) >>>> >>>> RuntimeError: Cannot find the value of required parameter: >>>> 'EXPORT_METADATA_KEYS' >>>> >>>> *~* >>>> >>>> On Sun, Feb 8, 2015 at 9:17 PM, Imesh Gunaratne <im...@apache.org> >>>> wrote: >>>> >>>>> Hi Lakmal, >>>>> >>>>> In my Kubernetes cluster I can see this image as follows: >>>>> >>>>> core@master ~ $ docker images >>>>> REPOSITORY TAG IMAGE ID CREATED >>>>> VIRTUAL SIZE >>>>> stratos/php 4.1.0-alpha 44a4916713ea 46 hours >>>>> ago 417.8 MB >>>>> stratos/php 4.1.0-rc1 44a4916713ea 46 hours >>>>> ago 417.8 MB >>>>> >>>>> I will check whether there are any problems. >>>>> >>>>> Thanks >>>>> >>>>> On Sun, Feb 8, 2015 at 8:16 PM, Lakmal Warusawithana <lak...@wso2.com> >>>>> wrote: >>>>> >>>>>> Imesh, did you tried with uploaded image rc1? seems like it has not >>>>>> uploaded correctly. Here what I can see after docker pull. No name , no >>>>>> tag >>>>>> and it lesser that alpha tag. I have updates sample to rc1 docker images >>>>>> and it fails may be due to this. >>>>>> >>>>>> <none> <none> dbd9c1be0f1b >>>>>> 47 hours ago 387.9 MB >>>>>> >>>>>> On Sat, Feb 7, 2015 at 12:27 PM, Imesh Gunaratne <im...@apache.org> >>>>>> wrote: >>>>>> >>>>>>> I have now updated the PHP docker image in docker >>>>>>> hub: stratos/php:4.1.0-rc1 >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> On Fri, Feb 6, 2015 at 5:40 PM, Imesh Gunaratne <im...@apache.org> >>>>>>> wrote: >>>>>>> >>>>>>>> I had a discussion on this issue with Chamila and did a fix with >>>>>>>> following commit revision: >>>>>>>> 72c8e6ff2ebfff221cf00aea386e69f21da92bdd >>>>>>>> >>>>>>>> We need to update PCA distribution in docker images. >>>>>>>> >>>>>>>> Thanks >>>>>>>> >>>>>>>> On Fri, Feb 6, 2015 at 4:37 PM, Imesh Gunaratne <im...@apache.org> >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Hi Devs, >>>>>>>>> >>>>>>>>> It seems like PCA does not wait until Complete Topology Event at >>>>>>>>> the startup rather it is handled at a later stage. >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Imesh Gunaratne >>>>>>>>> >>>>>>>>> Technical Lead, WSO2 >>>>>>>>> Committer & PMC Member, Apache Stratos >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Imesh Gunaratne >>>>>>>> >>>>>>>> Technical Lead, WSO2 >>>>>>>> Committer & PMC Member, Apache Stratos >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Imesh Gunaratne >>>>>>> >>>>>>> Technical Lead, WSO2 >>>>>>> Committer & PMC Member, Apache Stratos >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Lakmal Warusawithana >>>>>> Vice President, Apache Stratos >>>>>> Director - Cloud Architecture; WSO2 Inc. >>>>>> Mobile : +94714289692 >>>>>> Blog : http://lakmalsview.blogspot.com/ >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Imesh Gunaratne >>>>> >>>>> Technical Lead, WSO2 >>>>> Committer & PMC Member, Apache Stratos >>>>> >>>> >>>> >>>> >>>> -- >>>> Lakmal Warusawithana >>>> Vice President, Apache Stratos >>>> Director - Cloud Architecture; WSO2 Inc. >>>> Mobile : +94714289692 >>>> Blog : http://lakmalsview.blogspot.com/ >>>> >>>> >>> >>> >>> -- >>> >>> Gayan Gunarathne >>> Technical Lead >>> WSO2 Inc. (http://wso2.com) >>> email : gay...@wso2.com | mobile : +94 766819985 >>> >>> >> >> >> >> -- >> Imesh Gunaratne >> >> Technical Lead, WSO2 >> Committer & PMC Member, Apache Stratos >> > > -- Imesh Gunaratne Technical Lead, WSO2 Committer & PMC Member, Apache Stratos