Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2015-02-17 12:24:50,397 [fm.alarm] UNHANDLED EXCEPTION (2015-02-17 12:24:50.385122)
- BRANCH: develop TIP: 0997ca557065
- PROCESS: ./scripts/noc-web.py
- ERROR FINGERPRINT: 685ef0b2-eb54-5794-b643-8aa2426f31f2
- WORKING DIRECTORY: /opt/noc
- EXCEPTION: <class 'mongoengine.errors.ValidationError'> Unable to dereference <class 'noc.fm.models.alarmclass.AlarmClass'>:522888964a5e68440f61a449
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: lib/nosql.py (Line: 144)
- Function: __get__
- 137 v = self.document_type.objects(id=value).first()
- 138 if v and self.ttl:
- 139 self._DEREF_CACHE[str(value)] = (t + self.ttl, v)
- 140 if v is not None:
- 141 instance._data[self.name] = v
- 142 else:
- 143 raise ValidationError("Unable to dereference %s:%s" % (
- 144 ==> self.document_type, value))
- 145 return super(PlainReferenceField, self).__get__(instance, owner)
- 146
- 147 def to_mongo(self, document):
- 148 if isinstance(document, Document):
- 149 # We need the id from the saved object to create the DBRef
- 150 id_ = document.id
- Variables:
- owner = <class 'noc.fm.models.activealarm.ActiveAlarm'>
- instance = <ActiveAlarm: 522da8494a5e680a4ce42efd>
- self = <noc.lib.nosql.PlainReferenceField object at 0x3d53a50>
- value = ObjectId('522888964a5e68440f61a449')
- v = None
- ------------------------------------------------------------------------
- File: fm/apps/alarm/views.py (Line: 122)
- Function: instance_to_dict
- 115 "status": o.status,
- 116 "managed_object": o.managed_object.id,
- 117 "managed_object__label": o.managed_object.name,
- 118 "administrative_domain": o.managed_object.administrative_domain_id,
- 119 "administrative_domain__label": o.managed_object.administrative_domain.name,
- 120 "severity": o.severity,
- 121 "severity__label": s.name,
- 122 ==> "alarm_class": str(o.alarm_class.id),
- 123 "alarm_class__label": o.alarm_class.name,
- 124 "timestamp": self.to_json(o.timestamp),
- 125 "subject": o.get_translated_subject(lang),
- 126 "events": n_events,
- 127 "duration": o.duration,
- 128 "row_class": s.style.css_class_name
- Variables:
- lang = 'en'
- fields = None
- self = <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>
- o = <ActiveAlarm: 522da8494a5e680a4ce42efd>
- s = <AlarmSeverity: WARNING>
- n_events = 931
- ------------------------------------------------------------------------
- File: lib/app/extapplication.py (Line: 166)
- Function: list_data
- 159 data = data[int(start):int(start) + int(limit)]
- 160 ld = len(data)
- 161 if self.row_limit and ld > self.row_limit:
- 162 # Request too large
- 163 return self.response(
- 164 "System limit is %d records (%d requested)" % (self.row_limit, ld),
- 165 status=self.TOO_LARGE)
- 166 ==> out = [formatter(o, fields=only) for o in data]
- 167 # Set favorites
- 168 if not only and formatter == self.instance_to_dict:
- 169 if fav_items is None:
- 170 fav_items = self.get_favorite_items(request.user)
- 171 for r in out:
- 172 r[self.fav_status] = r[self.pk] in fav_items
- Variables:
- ld = 45
- fs = None
- ordering = []
- self = <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>
- request =
- <WSGIRequest
- path:/fm/alarm/,
- GET:<QueryDict: {u'status': [u'A'], u'__limit': [u'45'], u'__start': [u'0'], u'__page': [u'1'], u'_dc': [u'1424165090343'], u'__format': [u'ext'], u'collapse': [u'1']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'PqK2hWmFQGuotOphzHFhth5nZ14OeWRI',
- 'sessionid': '630bd6c3ef2419c0ad014b4d8fa87be8'},
- META:{'HTTP_ACCEPT': '*/*',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=PqK2hWmFQGuotOphzHFhth5nZ14OeWRI; sessionid=630bd6c3ef2419c0ad014b4d8fa87be8',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://srv-noc.net.billing.ru/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36',
- 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
- 'PATH_INFO': u'/fm/alarm/',
- 'QUERY_STRING': '_dc=1424165090343&status=A&collapse=1&__format=ext&__page=1&__start=0&__limit=45',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x1e280c0>,
- 'wsgi.input': <_io.BytesIO object at 0xa5818f0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- o = <ActiveAlarm: 522da8494a5e680a4ce42efd>
- q = {'root__exists': False}
- start = u'0'
- only = None
- limit = u'45'
- formatter =
- <bound method AlarmApplication.instance_to_dict of <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>>
- query = None
- total = 629
- data = .. queryset mid-iteration ..
- fav_items = None
- ------------------------------------------------------------------------
- File: fm/apps/alarm/views.py (Line: 146)
- Function: api_list
- 139 if status not in self.model_map:
- 140 raise Exception("Invalid status")
- 141 model = self.model_map[status]
- 142 return model.objects.all()
- 143
- 144 @view(url=r"^$", access="launch", method=["GET"], api=True)
- 145 def api_list(self, request):
- 146 ==> return self.list_data(request, self.instance_to_dict)
- 147
- 148 @view(url=r"^(?P<id>[a-z0-9]{24})/$", method=["GET"], api=True,
- 149 access="launch")
- 150 def api_alarm(self, request, id):
- 151 alarm = get_alarm(id)
- 152 if not alarm:
- Variables:
- self = <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>
- request =
- <WSGIRequest
- path:/fm/alarm/,
- GET:<QueryDict: {u'status': [u'A'], u'__limit': [u'45'], u'__start': [u'0'], u'__page': [u'1'], u'_dc': [u'1424165090343'], u'__format': [u'ext'], u'collapse': [u'1']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'PqK2hWmFQGuotOphzHFhth5nZ14OeWRI',
- 'sessionid': '630bd6c3ef2419c0ad014b4d8fa87be8'},
- META:{'HTTP_ACCEPT': '*/*',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=PqK2hWmFQGuotOphzHFhth5nZ14OeWRI; sessionid=630bd6c3ef2419c0ad014b4d8fa87be8',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://srv-noc.net.billing.ru/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36',
- 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
- 'PATH_INFO': u'/fm/alarm/',
- 'QUERY_STRING': '_dc=1424165090343&status=A&collapse=1&__format=ext&__page=1&__start=0&__limit=45',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x1e280c0>,
- 'wsgi.input': <_io.BytesIO object at 0xa5818f0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- ------------------------------------------------------------------------
- File: lib/app/site.py (Line: 248)
- Function: inner
- 241 a = dict((k, v[0] if len(v) == 1 else v)
- 242 for k, v in request.GET.lists())
- 243 app_logger.debug("API %s %s %s",
- 244 request.method, request.path, a)
- 245 # Call handler
- 246 v.__dict__["hits_metric"] += 1
- 247 with v.__dict__["time_metric"].timer():
- 248 ==> r = v(request, *args, **kwargs)
- 249 # Dump SQL statements
- 250 if self.log_sql_statements:
- 251 from django.db import connections
- 252 tsc = 0
- 253 sc = defaultdict(int)
- 254 for conn in connections.all():
- Variables:
- args = ()
- view_map =
- {'GET': <bound method AlarmApplication.api_list of <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>>}
- 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 0x2490bd0>
- v =
- <bound method AlarmApplication.api_list of <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>>
- request =
- <WSGIRequest
- path:/fm/alarm/,
- GET:<QueryDict: {u'status': [u'A'], u'__limit': [u'45'], u'__start': [u'0'], u'__page': [u'1'], u'_dc': [u'1424165090343'], u'__format': [u'ext'], u'collapse': [u'1']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'PqK2hWmFQGuotOphzHFhth5nZ14OeWRI',
- 'sessionid': '630bd6c3ef2419c0ad014b4d8fa87be8'},
- META:{'HTTP_ACCEPT': '*/*',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=PqK2hWmFQGuotOphzHFhth5nZ14OeWRI; sessionid=630bd6c3ef2419c0ad014b4d8fa87be8',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://srv-noc.net.billing.ru/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36',
- 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
- 'PATH_INFO': u'/fm/alarm/',
- 'QUERY_STRING': '_dc=1424165090343&status=A&collapse=1&__format=ext&__page=1&__start=0&__limit=45',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x1e280c0>,
- 'wsgi.input': <_io.BytesIO object at 0xa5818f0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- app_logger = <logging.Logger object at 0x4d651d0>
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- to_log_api_call = False
- kwargs = {}
- nq = <function nq at 0x59deb90>
- app = <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2015-02-17 12:24:50,401 [tornado.access] 500 GET /fm/alarm/?_dc=1424165090343&status=A&collapse=1&__format=ext&__page=1&__start=0&__limit=45 (127.0.0.1) 84.34ms
- 2015-02-17 12:24:50,980 [tornado.access] 200 GET /fm/event/?_dc=1424165090697&status=A&__format=ext&__page=2&__start=45&__limit=45&__sort=%5B%7B%22property%22%3A%22timestamp%22%2C%22direction%22%3A%22DESC%22%7D%5D (127.0.0.1) 319.11ms
- 2015-02-17 12:25:20,396 [fm.alarm] UNHANDLED EXCEPTION (2015-02-17 12:25:20.384482)
- BRANCH: develop TIP: 0997ca557065
- PROCESS: ./scripts/noc-web.py
- ERROR FINGERPRINT: 685ef0b2-eb54-5794-b643-8aa2426f31f2
- WORKING DIRECTORY: /opt/noc
- EXCEPTION: <class 'mongoengine.errors.ValidationError'> Unable to dereference <class 'noc.fm.models.alarmclass.AlarmClass'>:522888964a5e68440f61a449
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: lib/nosql.py (Line: 144)
- Function: __get__
- 137 v = self.document_type.objects(id=value).first()
- 138 if v and self.ttl:
- 139 self._DEREF_CACHE[str(value)] = (t + self.ttl, v)
- 140 if v is not None:
- 141 instance._data[self.name] = v
- 142 else:
- 143 raise ValidationError("Unable to dereference %s:%s" % (
- 144 ==> self.document_type, value))
- 145 return super(PlainReferenceField, self).__get__(instance, owner)
- 146
- 147 def to_mongo(self, document):
- 148 if isinstance(document, Document):
- 149 # We need the id from the saved object to create the DBRef
- 150 id_ = document.id
- Variables:
- owner = <class 'noc.fm.models.activealarm.ActiveAlarm'>
- instance = <ActiveAlarm: 522da8494a5e680a4ce42efd>
- self = <noc.lib.nosql.PlainReferenceField object at 0x3d53a50>
- value = ObjectId('522888964a5e68440f61a449')
- v = None
- ------------------------------------------------------------------------
- File: fm/apps/alarm/views.py (Line: 122)
- Function: instance_to_dict
- 115 "status": o.status,
- 116 "managed_object": o.managed_object.id,
- 117 "managed_object__label": o.managed_object.name,
- 118 "administrative_domain": o.managed_object.administrative_domain_id,
- 119 "administrative_domain__label": o.managed_object.administrative_domain.name,
- 120 "severity": o.severity,
- 121 "severity__label": s.name,
- 122 ==> "alarm_class": str(o.alarm_class.id),
- 123 "alarm_class__label": o.alarm_class.name,
- 124 "timestamp": self.to_json(o.timestamp),
- 125 "subject": o.get_translated_subject(lang),
- 126 "events": n_events,
- 127 "duration": o.duration,
- 128 "row_class": s.style.css_class_name
- Variables:
- lang = 'en'
- fields = None
- self = <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>
- o = <ActiveAlarm: 522da8494a5e680a4ce42efd>
- s = <AlarmSeverity: WARNING>
- n_events = 931
- ------------------------------------------------------------------------
- File: lib/app/extapplication.py (Line: 166)
- Function: list_data
- 159 data = data[int(start):int(start) + int(limit)]
- 160 ld = len(data)
- 161 if self.row_limit and ld > self.row_limit:
- 162 # Request too large
- 163 return self.response(
- 164 "System limit is %d records (%d requested)" % (self.row_limit, ld),
- 165 status=self.TOO_LARGE)
- 166 ==> out = [formatter(o, fields=only) for o in data]
- 167 # Set favorites
- 168 if not only and formatter == self.instance_to_dict:
- 169 if fav_items is None:
- 170 fav_items = self.get_favorite_items(request.user)
- 171 for r in out:
- 172 r[self.fav_status] = r[self.pk] in fav_items
- Variables:
- ld = 45
- fs = None
- ordering = []
- self = <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>
- request =
- <WSGIRequest
- path:/fm/alarm/,
- GET:<QueryDict: {u'status': [u'A'], u'__limit': [u'45'], u'__start': [u'0'], u'__page': [u'1'], u'_dc': [u'1424165120356'], u'__format': [u'ext'], u'collapse': [u'1']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'PqK2hWmFQGuotOphzHFhth5nZ14OeWRI',
- 'sessionid': '630bd6c3ef2419c0ad014b4d8fa87be8'},
- META:{'HTTP_ACCEPT': '*/*',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=PqK2hWmFQGuotOphzHFhth5nZ14OeWRI; sessionid=630bd6c3ef2419c0ad014b4d8fa87be8',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://srv-noc.net.billing.ru/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36',
- 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
- 'PATH_INFO': u'/fm/alarm/',
- 'QUERY_STRING': '_dc=1424165120356&status=A&collapse=1&__format=ext&__page=1&__start=0&__limit=45',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x1e280c0>,
- 'wsgi.input': <_io.BytesIO object at 0x8186b30>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- o = <ActiveAlarm: 522da8494a5e680a4ce42efd>
- q = {'root__exists': False}
- start = u'0'
- only = None
- limit = u'45'
- formatter =
- <bound method AlarmApplication.instance_to_dict of <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>>
- query = None
- total = 629
- data = .. queryset mid-iteration ..
- fav_items = None
- ------------------------------------------------------------------------
- File: fm/apps/alarm/views.py (Line: 146)
- Function: api_list
- 139 if status not in self.model_map:
- 140 raise Exception("Invalid status")
- 141 model = self.model_map[status]
- 142 return model.objects.all()
- 143
- 144 @view(url=r"^$", access="launch", method=["GET"], api=True)
- 145 def api_list(self, request):
- 146 ==> return self.list_data(request, self.instance_to_dict)
- 147
- 148 @view(url=r"^(?P<id>[a-z0-9]{24})/$", method=["GET"], api=True,
- 149 access="launch")
- 150 def api_alarm(self, request, id):
- 151 alarm = get_alarm(id)
- 152 if not alarm:
- Variables:
- self = <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>
- request =
- <WSGIRequest
- path:/fm/alarm/,
- GET:<QueryDict: {u'status': [u'A'], u'__limit': [u'45'], u'__start': [u'0'], u'__page': [u'1'], u'_dc': [u'1424165120356'], u'__format': [u'ext'], u'collapse': [u'1']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'PqK2hWmFQGuotOphzHFhth5nZ14OeWRI',
- 'sessionid': '630bd6c3ef2419c0ad014b4d8fa87be8'},
- META:{'HTTP_ACCEPT': '*/*',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=PqK2hWmFQGuotOphzHFhth5nZ14OeWRI; sessionid=630bd6c3ef2419c0ad014b4d8fa87be8',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://srv-noc.net.billing.ru/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36',
- 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
- 'PATH_INFO': u'/fm/alarm/',
- 'QUERY_STRING': '_dc=1424165120356&status=A&collapse=1&__format=ext&__page=1&__start=0&__limit=45',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x1e280c0>,
- 'wsgi.input': <_io.BytesIO object at 0x8186b30>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- ------------------------------------------------------------------------
- File: lib/app/site.py (Line: 248)
- Function: inner
- 241 a = dict((k, v[0] if len(v) == 1 else v)
- 242 for k, v in request.GET.lists())
- 243 app_logger.debug("API %s %s %s",
- 244 request.method, request.path, a)
- 245 # Call handler
- 246 v.__dict__["hits_metric"] += 1
- 247 with v.__dict__["time_metric"].timer():
- 248 ==> r = v(request, *args, **kwargs)
- 249 # Dump SQL statements
- 250 if self.log_sql_statements:
- 251 from django.db import connections
- 252 tsc = 0
- 253 sc = defaultdict(int)
- 254 for conn in connections.all():
- Variables:
- args = ()
- view_map =
- {'GET': <bound method AlarmApplication.api_list of <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>>}
- 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 0x2490bd0>
- v =
- <bound method AlarmApplication.api_list of <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>>
- request =
- <WSGIRequest
- path:/fm/alarm/,
- GET:<QueryDict: {u'status': [u'A'], u'__limit': [u'45'], u'__start': [u'0'], u'__page': [u'1'], u'_dc': [u'1424165120356'], u'__format': [u'ext'], u'collapse': [u'1']}>,
- POST:<QueryDict: {}>,
- COOKIES:{'csrftoken': 'PqK2hWmFQGuotOphzHFhth5nZ14OeWRI',
- 'sessionid': '630bd6c3ef2419c0ad014b4d8fa87be8'},
- META:{'HTTP_ACCEPT': '*/*',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=PqK2hWmFQGuotOphzHFhth5nZ14OeWRI; sessionid=630bd6c3ef2419c0ad014b4d8fa87be8',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://srv-noc.net.billing.ru/main/desktop/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36',
- 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
- 'PATH_INFO': u'/fm/alarm/',
- 'QUERY_STRING': '_dc=1424165120356&status=A&collapse=1&__format=ext&__page=1&__start=0&__limit=45',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '127.0.0.1',
- 'SERVER_PORT': '8000',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x1e280c0>,
- 'wsgi.input': <_io.BytesIO object at 0x8186b30>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- app_logger = <logging.Logger object at 0x4d651d0>
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- to_log_api_call = False
- kwargs = {}
- nq = <function nq at 0x823eb18>
- app = <noc.fm.apps.alarm.views.AlarmApplication object at 0x4d650d0>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2015-02-17 12:25:20,400 [tornado.access] 500 GET /fm/alarm/?_dc=1424165120356&status=A&collapse=1&__format=ext&__page=1&__start=0&__limit=45 (127.0.0.1) 77.73ms
- 2015-02-17 12:25:21,018 [tornado.access] 200 GET /fm/event/?_dc=1424165120690&status=A&__format=ext&__page=3&__start=90&__limit=45&__sort=%5B%7B%22property%22%3A%22timestamp%22%2C%22direction%22%3A%22DESC%22%7D%5D (127.0.0.1) 363.21ms
- 2015-02-17 12:25:50,642 [tornado.access] 200 GET /fm/event/?_dc=1424165150361&status=A&__format=ext&__page=1&__start=0&__limit=45&__sort=%5B%7B%22property%22%3A%22timestamp%22%2C%22direction%22%3A%22DESC%22%7D%5D (127.0.0.1) 313.35ms
- 2015-02-17 12:25:50,990 [tornado.access] 200 GET /fm/event/?_dc=1424165150694&status=A&__format=ext&__page=2&__start=45&__limit=45&__sort=%5B%7B%22property%22%3A%22timestamp%22%2C%22direction%22%3A%22DESC%22%7D%5D (127.0.0.1) 336.11ms
- 2015-02-17 12:26:10,516 [tornado.access] 200 GET /inv/interfaceprofile/?_dc=1424165170512&__format=ext&__page=1&__start=0&__limit=45 (127.0.0.1) 43.65ms
- 2015-02-17 12:26:21,109 [tornado.access] 202 PUT /inv/interfaceprofile/537354ff4a5e687ab352f4f0/ (127.0.0.1) 5039.02ms
- 2015-02-17 12:26:57,823 [tornado.access] 200 GET /main/pyrule/js/Model.js?_dc=1424165217854 (127.0.0.1) 11.15ms
- 2015-02-17 12:26:58,252 [tornado.access] 200 POST /main/desktop/state/main.pyrule-grid/ (127.0.0.1) 31.51ms
- 2015-02-17 12:28:13,920 [tornado.access] 202 PUT /inv/interfaceprofile/537354ff4a5e687ab352f4f0/ (127.0.0.1) 5059.47ms
- 2015-02-17 12:29:21,366 [tornado.access] 200 GET /sa/commandsnippet/js/Application.js?_dc=1424165361404 (127.0.0.1) 8.41ms
- 2015-02-17 12:29:21,385 [tornado.access] 200 GET /sa/commandsnippet/js/Model.js?_dc=1424165361423 (127.0.0.1) 11.12ms
- 2015-02-17 12:29:21,578 [tornado.access] 200 GET /sa/commandsnippet/?_dc=1424165361514&__format=ext&__page=1&__start=0&__limit=45 (127.0.0.1) 111.71ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement