Guest User

Untitled

a guest
Nov 18th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.17 KB | None | 0 0
  1. 2015-11-18 14:49:05,202 [tornado.access] 500 GET /sa/managedobject/2/discovery/?_dc=1447847573643 (10.30.1.146) 38.67ms
  2. 2015-11-18 14:49:08,072 [sa.managedobject] UNHANDLED EXCEPTION (2015-11-18 14:49:08.065889)
  3. BRANCH: feature/microservices TIP: 02e4c01c529b
  4. PROCESS: ./scripts/noc-web.py
  5. ERROR FINGERPRINT: 54ec5f62-21d5-5d36-b77f-fd459e8d3d22
  6. WORKING DIRECTORY: /opt/noc
  7. EXCEPTION: <type 'exceptions.NameError'> global name 'get_active_discovery_methods' is not defined
  8. START OF TRACEBACK
  9. ------------------------------------------------------------------------
  10. File: sa/apps/managedobject/views.py (Line: 234)
  11. Function: api_discovery
  12. 227 "enable_profile": o.object_profile.enable_ping,
  13. 228 "status": o.get_status(),
  14. 229 "last_run": None,
  15. 230 "last_status": None,
  16. 231 "next_run": None,
  17. 232 "link_count": None
  18. 233 }]
  19. 234 ==> for name in get_active_discovery_methods():
  20. 235 job = get_job("inv.discovery", name, o.id) or {}
  21. 236 if name.endswith("_discovery"):
  22. 237 lcmethod = name[:-10]
  23. 238 else:
  24. 239 lcmethod = None
  25. 240 d = {
  26. Variables:
  27. self =
  28. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fe6e59ff4d0>
  29. request =
  30. <WSGIRequest
  31. path:/sa/managedobject/2/discovery/,
  32. GET:<QueryDict: {u'_dc': [u'1447847576519']}>,
  33. POST:<QueryDict: {}>,
  34. COOKIES:{'sessionid': '463af60ae599ac7762de42d5c29fc8e0'},
  35. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  36. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  37. 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
  38. 'HTTP_CONNECTION': 'close',
  39. 'HTTP_COOKIE': 'sessionid=463af60ae599ac7762de42d5c29fc8e0',
  40. 'HTTP_HOST': '10.30.1.146',
  41. 'HTTP_REFERER': 'http://10.30.1.146/main/desktop/',
  42. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0',
  43. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  44. 'HTTP_X_SCHEME': 'http',
  45. 'PATH_INFO': u'/sa/managedobject/2/discovery/',
  46. 'QUERY_STRING': '_dc=1447847576519',
  47. 'REMOTE_ADDR': '10.30.1.146',
  48. 'REQUEST_METHOD': 'GET',
  49. 'SCRIPT_NAME': u'',
  50. 'SERVER_NAME': '10.30.1.146',
  51. 'SERVER_PORT': '80',
  52. 'SERVER_PROTOCOL': 'HTTP/1.0',
  53. 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fe6f6fe01e0>,
  54. 'wsgi.input': <_io.BytesIO object at 0x7fe6e51c7230>,
  55. 'wsgi.multiprocess': True,
  56. 'wsgi.multithread': False,
  57. 'wsgi.run_once': False,
  58. 'wsgi.url_scheme': 'http',
  59. 'wsgi.version': (1, 0)}>
  60. o = <ManagedObject: SW10>
  61. r =
  62. [{'enable_profile': True,
  63. 'last_run': None,
  64. 'last_status': None,
  65. 'link_count': None,
  66. 'name': 'ping',
  67. 'next_run': None,
  68. 'status': True}]
  69. id = u'2'
  70. link_count = defaultdict(<type 'int'>, {})
  71. ------------------------------------------------------------------------
  72. File: lib/app/site.py (Line: 249)
  73. Function: inner
  74. 242 a = dict((k, v[0] if len(v) == 1 else v)
  75. 243 for k, v in request.GET.lists())
  76. 244 app_logger.debug("API %s %s %s",
  77. 245 request.method, request.path, a)
  78. 246 # Call handler
  79. 247 v.__dict__["hits_metric"] += 1
  80. 248 with v.__dict__["time_metric"].timer():
  81. 249 ==> r = v(request, *args, **kwargs)
  82. 250 # Dump SQL statements
  83. 251 if self.log_sql_statements:
  84. 252 from django.db import connections
  85. 253 tsc = 0
  86. 254 sc = defaultdict(int)
  87. 255 for conn in connections.all():
  88. Variables:
  89. args = ()
  90. view_map =
  91. {'GET': <bound method ManagedObjectApplication.api_discovery of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fe6e59ff4d0>>}
  92. Form = <class 'django.forms.forms.Form'>
  93. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  94. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  95. self = <noc.lib.app.site.Site object at 0x7fe6ee1af310>
  96. v =
  97. <bound method ManagedObjectApplication.api_discovery of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fe6e59ff4d0>>
  98. request =
  99. <WSGIRequest
  100. path:/sa/managedobject/2/discovery/,
  101. GET:<QueryDict: {u'_dc': [u'1447847576519']}>,
  102. POST:<QueryDict: {}>,
  103. COOKIES:{'sessionid': '463af60ae599ac7762de42d5c29fc8e0'},
  104. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  105. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  106. 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
  107. 'HTTP_CONNECTION': 'close',
  108. 'HTTP_COOKIE': 'sessionid=463af60ae599ac7762de42d5c29fc8e0',
  109. 'HTTP_HOST': '10.30.1.146',
  110. 'HTTP_REFERER': 'http://10.30.1.146/main/desktop/',
  111. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0',
  112. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  113. 'HTTP_X_SCHEME': 'http',
  114. 'PATH_INFO': u'/sa/managedobject/2/discovery/',
  115. 'QUERY_STRING': '_dc=1447847576519',
  116. 'REMOTE_ADDR': '10.30.1.146',
  117. 'REQUEST_METHOD': 'GET',
  118. 'SCRIPT_NAME': u'',
  119. 'SERVER_NAME': '10.30.1.146',
  120. 'SERVER_PORT': '80',
  121. 'SERVER_PROTOCOL': 'HTTP/1.0',
  122. 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fe6f6fe01e0>,
  123. 'wsgi.input': <_io.BytesIO object at 0x7fe6e51c7230>,
  124. 'wsgi.multiprocess': True,
  125. 'wsgi.multithread': False,
  126. 'wsgi.run_once': False,
  127. 'wsgi.url_scheme': 'http',
  128. 'wsgi.version': (1, 0)}>
  129. app_logger = <logging.Logger object at 0x7fe6e59ff510>
  130. InterfaceTypeError = <type 'exceptions.ValueError'>
  131. to_log_api_call = False
  132. kwargs = {'id': u'2'}
  133. nq = <function nq at 0x7fe6e52c2758>
  134. app =
  135. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fe6e59ff4d0>
  136. ------------------------------------------------------------------------
  137. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment