Seems python agent try to connect to the different socket rather than message broker running. It seems python agent not reading the message broker configurations correctly. Can you please check whether it reads the message broker configuration correctly?
Thanks, Gayan On Wed, Apr 29, 2015 at 1:15 PM, Anuruddha Liyanarachchi < [email protected]> wrote: > Hi Sajith, > > Yes. I am able to telnet to the mb ip and mb port > > On Wed, Apr 29, 2015 at 12:57 PM, Sajith Kariyawasam <[email protected]> > wrote: > >> were u able to telnet to mb,ip and mb.port from inside openstack node? >> >> On Wed, Apr 29, 2015 at 12:01 PM, Anuruddha Liyanarachchi < >> [email protected]> wrote: >> >>> Hi, >>> >>> I am trying to run python cartridge agent in openstack with Stratos. >>> Agent is not able to connect to MB and fails with following error. I >>> have attached agent.screen.log and agent.conf here. I can telnet to ip >>> address and port in the agent.conf. >>> >>> Any idea why this is happening ? >>> >>> *2015-04-29 06:12:58,251:INFO:Cartridge agent topology receiver thread >>> started* >>> *Exception in thread Thread-8:* >>> *Traceback (most recent call last):* >>> * File "/usr/lib/python2.7/threading.py", line 551, in >>> __bootstrap_inner* >>> * self.run()* >>> * File >>> "/mnt/apache-stratos-python-cartridge-agent-4.1.0-SNAPSHOT/modules/subscriber/eventsubscriber.py", >>> line 46, in run* >>> * self.__mb_client = mqtt.Client()* >>> * File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", >>> line 410, in __init__* >>> * self._sockpairR, self._sockpairW = _socketpair_compat()* >>> * File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", >>> line 255, in _socketpair_compat* >>> * listensock.bind(("localhost", 0))* >>> * File "/usr/lib/python2.7/socket.py", line 224, in meth* >>> * return getattr(self._sock,name)(*args)* >>> *gaierror: [Errno -2] Name or service not known* >>> >>> -- >>> *Thanks and Regards,* >>> Anuruddha Lanka Liyanarachchi >>> Software Engineer - WSO2 >>> Mobile : +94 (0) 712762611 >>> Tel : +94 112 145 345 >>> a <[email protected]>[email protected] >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> > > > -- > *Thanks and Regards,* > Anuruddha Lanka Liyanarachchi > Software Engineer - WSO2 > Mobile : +94 (0) 712762611 > Tel : +94 112 145 345 > a <[email protected]>[email protected] > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Gayan Gunarathne Technical Lead WSO2 Inc. (http://wso2.com) email : [email protected] | mobile : +94 766819985
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
