Checked the setup with Prakash, the status of discovery process is misleading...it says active, which is not correct.. Also, following error has to be fixed [variable not defined]..
'REQUEST_METHOD': 'POST',
'SCRIPT_NAME': '',
'SERVER_NAME': 'nodeg6.englab.juniper.net',
'SERVER_PORT': '9110',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'gevent/1.0 Python/2.7',
'bottle.app': <bottle.Bottle object at 0x26763d0>,
'bottle.request': <LocalRequest: POST http://10.204.217.46:5998/subscribe>,
'bottle.request.body': <StringIO.StringIO instance at 0x7f16710>,
'bottle.request.headers': <bottle.WSGIHeaderDict object at 0x26b3f050>,
'bottle.request.json': {u'client': u'nodeg8:Contrail-Analytics-Nodemgr', u'client-type': u'Contrail-Analytics-Nodemgr', u'instances': 2, u'service': u'Collector'},
'bottle.request.urlparts': SplitResult(scheme='http', netloc='10.204.217.46:5998', path='/subscribe', query='', fragment=''),
'bottle.route': <POST '/subscribe' <bound method DiscoveryServer.error_handler of <discovery.disc_server.DiscoveryServer instance at 0x277c3b0>>>,
'route.handle': <POST '/subscribe' <bound method DiscoveryServer.error_handler of <discovery.disc_server.DiscoveryServer instance at 0x277c3b0>>>,
'route.url_args': {},
'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f73d6623270>,
'wsgi.input': <StringIO.StringIO instance at 0x7f16710>,
'wsgi.multiprocess': False,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)} failed with error
10.204.217.46 - - [2014-09-01 03:29:25] "POST /subscribe HTTP/1.1" socket 0 327.711255
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/bottle.py", line 764, in _handle
return route.call(**args)
File "/usr/lib/python2.7/dist-packages/bottle.py", line 1575, in wrapper
rv = callback(*a, **ka)
File "/usr/lib/python2.7/dist-packages/discovery/disc_server.py", line 332, in error_handler
self._debug['503'] += 1
NameError: global name 'self' is not defined
10.204.217.46 - - [2014-09-01 03:29:27] "POST /subscribe HTTP/1.1" 500 890 0.003713
Traceback (most recent call last):
Checked the setup with Prakash, the status of discovery process is misleading...it says active, which is not correct.. Also, following error has to be fixed [variable not defined]..
'REQUEST_METHOD': 'POST', englab. juniper. net', 10.204. 217.46: 5998/subscribe>, request. body': <StringIO.StringIO instance at 0x7f16710>, request. headers' : <bottle. WSGIHeaderDict object at 0x26b3f050>, request. json': {u'client': u'nodeg8: Contrail- Analytics- Nodemgr' ,
u'client- type': u'Contrail- Analytics- Nodemgr' ,
u'instances ': 2,
u'service' : u'Collector'}, request. urlparts' : SplitResult( scheme= 'http', netloc= '10.204. 217.46: 5998', path='/subscribe', query='', fragment=''), .error_ handler of <discovery. disc_server. DiscoveryServer instance at 0x277c3b0>>>, .error_ handler of <discovery. disc_server. DiscoveryServer instance at 0x277c3b0>>>, multiprocess' : False, multithread' : False,
'SCRIPT_NAME': '',
'SERVER_NAME': 'nodeg6.
'SERVER_PORT': '9110',
'SERVER_PROTOCOL': 'HTTP/1.0',
'SERVER_SOFTWARE': 'gevent/1.0 Python/2.7',
'bottle.app': <bottle.Bottle object at 0x26763d0>,
'bottle.request': <LocalRequest: POST http://
'bottle.
'bottle.
'bottle.
'bottle.
'bottle.route': <POST '/subscribe' <bound method DiscoveryServer
'route.handle': <POST '/subscribe' <bound method DiscoveryServer
'route.url_args': {},
'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f73d6623270>,
'wsgi.input': <StringIO.StringIO instance at 0x7f16710>,
'wsgi.
'wsgi.
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 0)} failed with error
10.204.217.46 - - [2014-09-01 03:29:25] "POST /subscribe HTTP/1.1" socket 0 327.711255 python2. 7/dist- packages/ bottle. py", line 764, in _handle python2. 7/dist- packages/ bottle. py", line 1575, in wrapper python2. 7/dist- packages/ discovery/ disc_server. py", line 332, in error_handler _debug[ '503'] += 1
Traceback (most recent call last):
File "/usr/lib/
return route.call(**args)
File "/usr/lib/
rv = callback(*a, **ka)
File "/usr/lib/
self.
NameError: global name 'self' is not defined
10.204.217.46 - - [2014-09-01 03:29:27] "POST /subscribe HTTP/1.1" 500 890 0.003713
Traceback (most recent call last):