Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2015-11-18 14:49:05,202 [tornado.access] 500 GET /sa/managedobject/2/discovery/?_dc=1447847573643 (10.30.1.146) 38.67ms
- 2015-11-18 14:49:08,072 [sa.managedobject] UNHANDLED EXCEPTION (2015-11-18 14:49:08.065889)
- BRANCH: feature/microservices TIP: 02e4c01c529b
- PROCESS: ./scripts/noc-web.py
- ERROR FINGERPRINT: 54ec5f62-21d5-5d36-b77f-fd459e8d3d22
- WORKING DIRECTORY: /opt/noc
- EXCEPTION: <type 'exceptions.NameError'> global name 'get_active_discovery_methods' is not defined
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: sa/apps/managedobject/views.py (Line: 234)
- Function: api_discovery
- 227 "enable_profile": o.object_profile.enable_ping,
- 228 "status": o.get_status(),
- 229 "last_run": None,
- 230 "last_status": None,
- 231 "next_run": None,
- 232 "link_count": None
- 233 }]
- 234 ==> for name in get_active_discovery_methods():
- 235 job = get_job("inv.discovery", name, o.id) or {}
- 236 if name.endswith("_discovery"):
- 237 lcmethod = name[:-10]
- 238 else:
- 239 lcmethod = None
- 240 d = {
- Variables:
- self =
- <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fe6e59ff4d0>
- request =
- <WSGIRequest
- path:/sa/managedobject/2/discovery/,
- GET:<QueryDict: {u'_dc': [u'1447847576519']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'sessionid': '463af60ae599ac7762de42d5c29fc8e0'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=463af60ae599ac7762de42d5c29fc8e0',
- 'HTTP_HOST': '10.30.1.146',
- 'HTTP_REFERER': 'http://10.30.1.146/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0',
- 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/sa/managedobject/2/discovery/',
- 'QUERY_STRING': '_dc=1447847576519',
- 'REMOTE_ADDR': '10.30.1.146',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.30.1.146',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fe6f6fe01e0>,
- 'wsgi.input': <_io.BytesIO object at 0x7fe6e51c7230>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- o = <ManagedObject: SW10>
- r =
- [{'enable_profile': True,
- 'last_run': None,
- 'last_status': None,
- 'link_count': None,
- 'name': 'ping',
- 'next_run': None,
- 'status': True}]
- id = u'2'
- link_count = defaultdict(<type 'int'>, {})
- ------------------------------------------------------------------------
- File: lib/app/site.py (Line: 249)
- Function: inner
- 242 a = dict((k, v[0] if len(v) == 1 else v)
- 243 for k, v in request.GET.lists())
- 244 app_logger.debug("API %s %s %s",
- 245 request.method, request.path, a)
- 246 # Call handler
- 247 v.__dict__["hits_metric"] += 1
- 248 with v.__dict__["time_metric"].timer():
- 249 ==> r = v(request, *args, **kwargs)
- 250 # Dump SQL statements
- 251 if self.log_sql_statements:
- 252 from django.db import connections
- 253 tsc = 0
- 254 sc = defaultdict(int)
- 255 for conn in connections.all():
- Variables:
- args = ()
- view_map =
- {'GET': <bound method ManagedObjectApplication.api_discovery of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fe6e59ff4d0>>}
- Form = <class 'django.forms.forms.Form'>
- PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x7fe6ee1af310>
- v =
- <bound method ManagedObjectApplication.api_discovery of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fe6e59ff4d0>>
- request =
- <WSGIRequest
- path:/sa/managedobject/2/discovery/,
- GET:<QueryDict: {u'_dc': [u'1447847576519']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'sessionid': '463af60ae599ac7762de42d5c29fc8e0'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=463af60ae599ac7762de42d5c29fc8e0',
- 'HTTP_HOST': '10.30.1.146',
- 'HTTP_REFERER': 'http://10.30.1.146/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0',
- 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/sa/managedobject/2/discovery/',
- 'QUERY_STRING': '_dc=1447847576519',
- 'REMOTE_ADDR': '10.30.1.146',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.30.1.146',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7fe6f6fe01e0>,
- 'wsgi.input': <_io.BytesIO object at 0x7fe6e51c7230>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- app_logger = <logging.Logger object at 0x7fe6e59ff510>
- InterfaceTypeError = <type 'exceptions.ValueError'>
- to_log_api_call = False
- kwargs = {'id': u'2'}
- nq = <function nq at 0x7fe6e52c2758>
- app =
- <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fe6e59ff4d0>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment