Comment 2 for bug 1363331

Revision history for this message
Saravanan Musuvathi (smusuvathi) wrote : Re: R1.10-build-25: Cluster down due to error in Discovery process

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):