Guest User

Untitled

a guest
Jun 21st, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 33.94 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2012-06-21 10:06:59.574263)
  2. Working directory: /opt/noc
  3. <class 'django.db.utils.IntegrityError'>
  4. <ManagedObject: kie-kie-f3-r21-t5-asw0> object is referenced from <class 'noc.inv.models.DiscoveryStatusIP'>
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/lib/nosql.py (Line: 194)
  8. Function: on_ref_delete
  9. 187 :return:
  10. 188 """
  11. 189 if not self.name:
  12. 190 return
  13. 191 doc = self.owner_document
  14. 192 if doc.objects.filter(**{self.name: instance.id}).first() is not None:
  15. 193 raise IntegrityError("%r object is referenced from %r" % (instance,
  16. 194 ==> doc))
  17. 195
  18. 196 def __get__(self, instance, owner):
  19. 197 """Descriptor to allow lazy dereferencing."""
  20. 198 if instance is None:
  21. 199 # Document class being used rather than a document object
  22. 200 return self
  23. Variables:
  24. doc = <class 'noc.inv.models.DiscoveryStatusIP'>
  25. self = <noc.lib.nosql.ForeignKeyField object at 0x3e44810>
  26. instance = <ManagedObject: kie-kie-f3-r21-t5-asw0>
  27. sender = <class 'noc.sa.models.ManagedObject'>
  28. kwargs = {'using': 'default', 'signal': <django.dispatch.dispatcher.Signal object at 0x3016a50>}
  29. ------------------------------------------------------------------------
  30. File: /opt/noc/contrib/lib/django/dispatch/dispatcher.py (Line: 172)
  31. Function: send
  32. 165 Returns a list of tuple pairs [(receiver, response), ... ].
  33. 166 """
  34. 167 responses = []
  35. 168 if not self.receivers:
  36. 169 return responses
  37. 170
  38. 171 for receiver in self._live_receivers(_make_id(sender)):
  39. 172 ==> response = receiver(signal=self, sender=sender, **named)
  40. 173 responses.append((receiver, response))
  41. 174 return responses
  42. 175
  43. 176 def send_robust(self, sender, **named):
  44. 177 """
  45. 178 Send signal from sender to all connected receivers catching errors.
  46. Variables:
  47. named = {'instance': <ManagedObject: kie-kie-f3-r21-t5-asw0>, 'using': 'default'}
  48. responses = [(<function audit_trail_delete at 0x36ba848>, None), (<bound method ?.on_ref_delete of <noc.lib.nosql.ForeignKeyField object at 0x3e43250>>, None), (<bound method ?.on_ref_delete of <noc.lib.nosql.ForeignKeyField object at 0x3e43550>>, None), (<bound method ?.on_ref_delete of <noc.lib.nosql.ForeignKeyField object at 0x3e43a10>>, None), (<bound method ?.on_ref_delete of <noc.lib.nosql.ForeignKeyField object at 0x3e444d0>>, None)]
  49. self = <django.dispatch.dispatcher.Signal object at 0x3016a50>
  50. receiver = <bound method ?.on_ref_delete of <noc.lib.nosql.ForeignKeyField object at 0x3e44810>>
  51. response = None
  52. sender = <class 'noc.sa.models.ManagedObject'>
  53. ------------------------------------------------------------------------
  54. File: /opt/noc/contrib/lib/django/db/models/deletion.py (Line: 230)
  55. Function: delete
  56. 223 # end of a transaction.
  57. 224 self.sort()
  58. 225
  59. 226 # send pre_delete signals
  60. 227 for model, obj in self.instances_with_model():
  61. 228 if not model._meta.auto_created:
  62. 229 signals.pre_delete.send(
  63. 230 ==> sender=model, instance=obj, using=self.using
  64. 231 )
  65. 232
  66. 233 # update fields
  67. 234 for model, instances_for_fieldvalues in self.field_updates.iteritems():
  68. 235 query = sql.UpdateQuery(model)
  69. 236 for (field, value), instances in instances_for_fieldvalues.iteritems():
  70. Variables:
  71. instances = set([<Config: config/kie-kie-f3-r21-t5-asw0>])
  72. model = <class 'noc.sa.models.ManagedObject'>
  73. obj = <ManagedObject: kie-kie-f3-r21-t5-asw0>
  74. self = <django.db.models.deletion.Collector object at 0x5248850>
  75. ------------------------------------------------------------------------
  76. File: /opt/noc/contrib/lib/django/db/models/deletion.py (Line: 63)
  77. Function: decorated
  78. 56 def decorated(self, *args, **kwargs):
  79. 57 if not transaction.is_managed(using=self.using):
  80. 58 transaction.enter_transaction_management(using=self.using)
  81. 59 forced_managed = True
  82. 60 else:
  83. 61 forced_managed = False
  84. 62 try:
  85. 63 ==> func(self, *args, **kwargs)
  86. 64 if forced_managed:
  87. 65 transaction.commit(using=self.using)
  88. 66 else:
  89. 67 transaction.commit_unless_managed(using=self.using)
  90. 68 finally:
  91. 69 if forced_managed:
  92. Variables:
  93. self = <django.db.models.deletion.Collector object at 0x5248850>
  94. kwargs = {}
  95. func = <function delete at 0x306ba28>
  96. args = ()
  97. forced_managed = False
  98. ------------------------------------------------------------------------
  99. File: /opt/noc/contrib/lib/django/db/models/query.py (Line: 445)
  100. Function: delete
  101. 438
  102. 439 # Disable non-supported fields.
  103. 440 del_query.query.select_related = False
  104. 441 del_query.query.clear_ordering()
  105. 442
  106. 443 collector = Collector(using=del_query.db)
  107. 444 collector.collect(del_query)
  108. 445 ==> collector.delete()
  109. 446
  110. 447 # Clear the result cache, in case this QuerySet gets reused.
  111. 448 self._result_cache = None
  112. 449 delete.alters_data = True
  113. 450
  114. 451 def update(self, **kwargs):
  115. Variables:
  116. self = [<ManagedObject: kie-kie-f3-r21-t5-asw0>]
  117. collector = <django.db.models.deletion.Collector object at 0x5248850>
  118. del_query = [<ManagedObject: kie-kie-f3-r21-t5-asw0>]
  119. ------------------------------------------------------------------------
  120. File: /opt/noc/contrib/lib/django/contrib/admin/actions.py (Line: 48)
  121. Function: delete_selected
  122. 41 if perms_needed:
  123. 42 raise PermissionDenied
  124. 43 n = queryset.count()
  125. 44 if n:
  126. 45 for obj in queryset:
  127. 46 obj_display = force_unicode(obj)
  128. 47 modeladmin.log_deletion(request, obj, obj_display)
  129. 48 ==> queryset.delete()
  130. 49 modeladmin.message_user(request, _("Successfully deleted %(count)d %(items)s.") % {
  131. 50 "count": n, "items": model_ngettext(modeladmin.opts, n)
  132. 51 })
  133. 52 # Return None to display the change list page again.
  134. 53 return None
  135. 54
  136. Variables:
  137. obj_display = u'kie-kie-f3-r21-t5-asw0'
  138. obj = <ManagedObject: kie-kie-f3-r21-t5-asw0>
  139. queryset = [<ManagedObject: kie-kie-f3-r21-t5-asw0>]
  140. deletable_objects = [u'\u041e\u0431\u044a\u0435\u043a\u0442: kie-kie-f3-r21-t5-asw0', [u'Config: config/kie-kie-f3-r21-t5-asw0']]
  141. request = <WSGIRequest
  142. GET:<QueryDict: {u'q': [u'kie-kie-f3-r21-t5-asw0']}>,
  143. POST:<QueryDict: {u'action': [u'delete_selected'], u'_selected_action': [u'611'], u'csrfmiddlewaretoken': [u'ee6dc74f3589c341446639d0d332b23f'], u'post': [u'yes']}>,
  144. COOKIES:{'csrftoken': 'ee6dc74f3589c341446639d0d332b23f',
  145. 'sessionid': '7aa896c60c3864ea11659315765eb6bf'},
  146. META:{'CONTENT_LENGTH': '105',
  147. 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
  148. 'CSRF_COOKIE': 'ee6dc74f3589c341446639d0d332b23f',
  149. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  150. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  151. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  152. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  153. 'HTTP_CACHE_CONTROL': 'max-age=0',
  154. 'HTTP_CONNECTION': 'close',
  155. 'HTTP_COOKIE': 'sessionid=7aa896c60c3864ea11659315765eb6bf; csrftoken=ee6dc74f3589c341446639d0d332b23f',
  156. 'HTTP_HOST': 'nocproject.tsua.net',
  157. 'HTTP_ORIGIN': 'http://nocproject.tsua.net',
  158. 'HTTP_REFERER': 'http://nocproject.tsua.net/sa/managedobject/?q=kie-kie-f3-r21-t5-asw0',
  159. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5',
  160. 'HTTP_X_FORWARDED_FOR': '212.40.49.30',
  161. 'HTTP_X_REAL_IP': '212.40.49.30',
  162. 'PATH_INFO': u'/sa/managedobject/',
  163. 'QUERY_STRING': 'q=kie-kie-f3-r21-t5-asw0',
  164. 'REMOTE_ADDR': '127.0.0.1',
  165. 'REQUEST_METHOD': 'POST',
  166. 'SCRIPT_NAME': u'',
  167. 'SERVER_NAME': 'nocproject.tsua.net',
  168. 'SERVER_PORT': '80',
  169. 'SERVER_PROTOCOL': 'HTTP/1.0',
  170. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x27c01e0>,
  171. 'wsgi.input': <io.BytesIO object at 0x4f01350>,
  172. 'wsgi.multiprocess': True,
  173. 'wsgi.multithread': False,
  174. 'wsgi.run_once': False,
  175. 'wsgi.url_scheme': 'http',
  176. 'wsgi.version': (1, 0)}>
  177. n = 1
  178. perms_needed = set([])
  179. modeladmin = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x4837fd0>
  180. app_label = 'sa'
  181. using = 'default'
  182. protected = []
  183. opts = <Options for ManagedObject>
  184. ------------------------------------------------------------------------
  185. File: /opt/noc/contrib/lib/django/contrib/admin/options.py (Line: 836)
  186. Function: response_action
  187. 829 self.message_user(request, msg)
  188. 830 return None
  189. 831
  190. 832 if not select_across:
  191. 833 # Perform the action only on the selected objects
  192. 834 queryset = queryset.filter(pk__in=selected)
  193. 835
  194. 836 ==> response = func(self, request, queryset)
  195. 837
  196. 838 # Actions may return an HttpResponse, which will be used as the
  197. 839 # response from the POST. If not, we'll be a good little HTTP
  198. 840 # citizen and redirect back to the changelist page.
  199. 841 if isinstance(response, HttpResponse):
  200. 842 return response
  201. Variables:
  202. action_index = 0
  203. description = <django.utils.functional.__proxy__ object at 0x343ab50>
  204. queryset = [<ManagedObject: kie-kie-f3-r21-t5-asw0>]
  205. self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x4837fd0>
  206. selected = [u'611']
  207. action_form = <django.contrib.admin.helpers.ActionForm object at 0x55c23d0>
  208. request = <WSGIRequest
  209. GET:<QueryDict: {u'q': [u'kie-kie-f3-r21-t5-asw0']}>,
  210. POST:<QueryDict: {u'action': [u'delete_selected'], u'_selected_action': [u'611'], u'csrfmiddlewaretoken': [u'ee6dc74f3589c341446639d0d332b23f'], u'post': [u'yes']}>,
  211. COOKIES:{'csrftoken': 'ee6dc74f3589c341446639d0d332b23f',
  212. 'sessionid': '7aa896c60c3864ea11659315765eb6bf'},
  213. META:{'CONTENT_LENGTH': '105',
  214. 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
  215. 'CSRF_COOKIE': 'ee6dc74f3589c341446639d0d332b23f',
  216. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  217. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  218. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  219. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  220. 'HTTP_CACHE_CONTROL': 'max-age=0',
  221. 'HTTP_CONNECTION': 'close',
  222. 'HTTP_COOKIE': 'sessionid=7aa896c60c3864ea11659315765eb6bf; csrftoken=ee6dc74f3589c341446639d0d332b23f',
  223. 'HTTP_HOST': 'nocproject.tsua.net',
  224. 'HTTP_ORIGIN': 'http://nocproject.tsua.net',
  225. 'HTTP_REFERER': 'http://nocproject.tsua.net/sa/managedobject/?q=kie-kie-f3-r21-t5-asw0',
  226. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5',
  227. 'HTTP_X_FORWARDED_FOR': '212.40.49.30',
  228. 'HTTP_X_REAL_IP': '212.40.49.30',
  229. 'PATH_INFO': u'/sa/managedobject/',
  230. 'QUERY_STRING': 'q=kie-kie-f3-r21-t5-asw0',
  231. 'REMOTE_ADDR': '127.0.0.1',
  232. 'REQUEST_METHOD': 'POST',
  233. 'SCRIPT_NAME': u'',
  234. 'SERVER_NAME': 'nocproject.tsua.net',
  235. 'SERVER_PORT': '80',
  236. 'SERVER_PROTOCOL': 'HTTP/1.0',
  237. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x27c01e0>,
  238. 'wsgi.input': <io.BytesIO object at 0x4f01350>,
  239. 'wsgi.multiprocess': True,
  240. 'wsgi.multithread': False,
  241. 'wsgi.run_once': False,
  242. 'wsgi.url_scheme': 'http',
  243. 'wsgi.version': (1, 0)}>
  244. select_across = False
  245. func = <function delete_selected at 0x343d230>
  246. action = u'delete_selected'
  247. data = <QueryDict: {u'action': [u'delete_selected', u'delete_selected'], u'csrfmiddlewaretoken': [u'ee6dc74f3589c341446639d0d332b23f'], u'post': [u'yes']}>
  248. name = 'delete_selected'
  249. ------------------------------------------------------------------------
  250. File: /opt/noc/contrib/lib/django/contrib/admin/options.py (Line: 1095)
  251. Function: changelist_view
  252. 1088 action_failed = True
  253. 1089
  254. 1090 # Actions with confirmation
  255. 1091 if (actions and request.method == 'POST' and
  256. 1092 helpers.ACTION_CHECKBOX_NAME in request.POST and
  257. 1093 'index' not in request.POST and '_save' not in request.POST):
  258. 1094 if selected:
  259. 1095 ==> response = self.response_action(request, queryset=cl.get_query_set())
  260. 1096 if response:
  261. 1097 return response
  262. 1098 else:
  263. 1099 action_failed = True
  264. 1100
  265. 1101 # If we're allowing changelist editing, we need to construct a formset
  266. Variables:
  267. list_display = ['action_checkbox', 'name', <function object_status at 0x482c488>, <function alarms at 0x482c500>, <function profile at 0x482c398>, 'vrf', 'address', <function domain_activator at 0x482c578>, 'description', 'repo_path', <function action_links at 0x47a10c8>, <bound method ManagedObjectApplication.display_tags of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>>]
  268. cl = <django.contrib.admin.views.main.ChangeList object at 0x55c2650>
  269. ChangeList = <class 'django.contrib.admin.views.main.ChangeList'>
  270. selected = [u'611']
  271. request = <WSGIRequest
  272. GET:<QueryDict: {u'q': [u'kie-kie-f3-r21-t5-asw0']}>,
  273. POST:<QueryDict: {u'action': [u'delete_selected'], u'_selected_action': [u'611'], u'csrfmiddlewaretoken': [u'ee6dc74f3589c341446639d0d332b23f'], u'post': [u'yes']}>,
  274. COOKIES:{'csrftoken': 'ee6dc74f3589c341446639d0d332b23f',
  275. 'sessionid': '7aa896c60c3864ea11659315765eb6bf'},
  276. META:{'CONTENT_LENGTH': '105',
  277. 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
  278. 'CSRF_COOKIE': 'ee6dc74f3589c341446639d0d332b23f',
  279. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  280. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  281. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  282. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  283. 'HTTP_CACHE_CONTROL': 'max-age=0',
  284. 'HTTP_CONNECTION': 'close',
  285. 'HTTP_COOKIE': 'sessionid=7aa896c60c3864ea11659315765eb6bf; csrftoken=ee6dc74f3589c341446639d0d332b23f',
  286. 'HTTP_HOST': 'nocproject.tsua.net',
  287. 'HTTP_ORIGIN': 'http://nocproject.tsua.net',
  288. 'HTTP_REFERER': 'http://nocproject.tsua.net/sa/managedobject/?q=kie-kie-f3-r21-t5-asw0',
  289. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5',
  290. 'HTTP_X_FORWARDED_FOR': '212.40.49.30',
  291. 'HTTP_X_REAL_IP': '212.40.49.30',
  292. 'PATH_INFO': u'/sa/managedobject/',
  293. 'QUERY_STRING': 'q=kie-kie-f3-r21-t5-asw0',
  294. 'REMOTE_ADDR': '127.0.0.1',
  295. 'REQUEST_METHOD': 'POST',
  296. 'SCRIPT_NAME': u'',
  297. 'SERVER_NAME': 'nocproject.tsua.net',
  298. 'SERVER_PORT': '80',
  299. 'SERVER_PROTOCOL': 'HTTP/1.0',
  300. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x27c01e0>,
  301. 'wsgi.input': <io.BytesIO object at 0x4f01350>,
  302. 'wsgi.multiprocess': True,
  303. 'wsgi.multithread': False,
  304. 'wsgi.run_once': False,
  305. 'wsgi.url_scheme': 'http',
  306. 'wsgi.version': (1, 0)}>
  307. actions = {'apply_config_filters': (<unbound method ManagedObjectAdmin.apply_config_filters>, 'apply_config_filters', u'Apply Config Filters'), 'bulk_change_activator': (<unbound method ManagedObjectAdmin.bulk_change_activator>, 'bulk_change_activator', u'Change activator for selected objects'), 'export_selected_csv': (<function admin_csv_export at 0x4622938>, 'export_selected_csv', 'Export selected %(verbose_name_plural)s to CSV'), 'reschedule_discovery': (<unbound method ManagedObjectAdmin.reschedule_discovery>, 'reschedule_discovery', u'Run interface discovery now'), 'test_access': (<unbound method ManagedObjectAdmin.test_access>, 'test_access', u'Test selected object access'), 'delete_selected': (<function delete_selected at 0x343d230>, 'delete_selected', <django.utils.functional.__proxy__ object at 0x343ab50>)}
  308. self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x4837fd0>
  309. action_failed = False
  310. app_label = 'sa'
  311. extra_context = {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>}
  312. ERROR_FLAG = 'e'
  313. opts = <Options for ManagedObject>
  314. ------------------------------------------------------------------------
  315. File: /opt/noc/contrib/lib/django/utils/decorators.py (Line: 24)
  316. Function: bound_func
  317. 17 """
  318. 18 # 'func' is a function at the time it is passed to _dec, but will eventually
  319. 19 # be a method of the class it is defined it.
  320. 20 def _dec(func):
  321. 21 def _wrapper(self, *args, **kwargs):
  322. 22 @decorator
  323. 23 def bound_func(*args2, **kwargs2):
  324. 24 ==> return func(self, *args2, **kwargs2)
  325. 25 # bound_func has the signature that 'decorator' expects i.e. no
  326. 26 # 'self' argument, but it is a closure over self so it can call
  327. 27 # 'func' correctly.
  328. 28 return bound_func(*args, **kwargs)
  329. 29 # In case 'decorator' adds attributes to the function it decorates, we
  330. 30 # want to copy those. We don't have access to bound_func in this scope,
  331. Variables:
  332. args2 = (<WSGIRequest
  333. GET:<QueryDict: {u'q': [u'kie-kie-f3-r21-t5-asw0']}>,
  334. POST:<QueryDict: {u'action': [u'delete_selected'], u'_selected_action': [u'611'], u'csrfmiddlewaretoken': [u'ee6dc74f3589c341446639d0d332b23f'], u'post': [u'yes']}>,
  335. COOKIES:{'csrftoken': 'ee6dc74f3589c341446639d0d332b23f',
  336. 'sessionid': '7aa896c60c3864ea11659315765eb6bf'},
  337. META:{'CONTENT_LENGTH': '105',
  338. 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
  339. 'CSRF_COOKIE': 'ee6dc74f3589c341446639d0d332b23f',
  340. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  341. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  342. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  343. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  344. 'HTTP_CACHE_CONTROL': 'max-age=0',
  345. 'HTTP_CONNECTION': 'close',
  346. 'HTTP_COOKIE': 'sessionid=7aa896c60c3864ea11659315765eb6bf; csrftoken=ee6dc74f3589c341446639d0d332b23f',
  347. 'HTTP_HOST': 'nocproject.tsua.net',
  348. 'HTTP_ORIGIN': 'http://nocproject.tsua.net',
  349. 'HTTP_REFERER': 'http://nocproject.tsua.net/sa/managedobject/?q=kie-kie-f3-r21-t5-asw0',
  350. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5',
  351. 'HTTP_X_FORWARDED_FOR': '212.40.49.30',
  352. 'HTTP_X_REAL_IP': '212.40.49.30',
  353. 'PATH_INFO': u'/sa/managedobject/',
  354. 'QUERY_STRING': 'q=kie-kie-f3-r21-t5-asw0',
  355. 'REMOTE_ADDR': '127.0.0.1',
  356. 'REQUEST_METHOD': 'POST',
  357. 'SCRIPT_NAME': u'',
  358. 'SERVER_NAME': 'nocproject.tsua.net',
  359. 'SERVER_PORT': '80',
  360. 'SERVER_PROTOCOL': 'HTTP/1.0',
  361. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x27c01e0>,
  362. 'wsgi.input': <io.BytesIO object at 0x4f01350>,
  363. 'wsgi.multiprocess': True,
  364. 'wsgi.multithread': False,
  365. 'wsgi.run_once': False,
  366. 'wsgi.url_scheme': 'http',
  367. 'wsgi.version': (1, 0)}>, {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>})
  368. func = <function changelist_view at 0x3436ed8>
  369. self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x4837fd0>
  370. kwargs2 = {}
  371. ------------------------------------------------------------------------
  372. File: /opt/noc/contrib/lib/django/utils/decorators.py (Line: 93)
  373. Function: _wrapped_view
  374. 86 if result is not None:
  375. 87 return result
  376. 88 if hasattr(middleware, 'process_view'):
  377. 89 result = middleware.process_view(request, view_func, args, kwargs)
  378. 90 if result is not None:
  379. 91 return result
  380. 92 try:
  381. 93 ==> response = view_func(request, *args, **kwargs)
  382. 94 except Exception, e:
  383. 95 if hasattr(middleware, 'process_exception'):
  384. 96 result = middleware.process_exception(request, e)
  385. 97 if result is not None:
  386. 98 return result
  387. 99 raise
  388. Variables:
  389. e = IntegrityError("<ManagedObject: kie-kie-f3-r21-t5-asw0> object is referenced from <class 'noc.inv.models.DiscoveryStatusIP'>",)
  390. middleware = <django.middleware.csrf.CsrfViewMiddleware object at 0x33efe10>
  391. args = ({'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>},)
  392. request = <WSGIRequest
  393. GET:<QueryDict: {u'q': [u'kie-kie-f3-r21-t5-asw0']}>,
  394. POST:<QueryDict: {u'action': [u'delete_selected'], u'_selected_action': [u'611'], u'csrfmiddlewaretoken': [u'ee6dc74f3589c341446639d0d332b23f'], u'post': [u'yes']}>,
  395. COOKIES:{'csrftoken': 'ee6dc74f3589c341446639d0d332b23f',
  396. 'sessionid': '7aa896c60c3864ea11659315765eb6bf'},
  397. META:{'CONTENT_LENGTH': '105',
  398. 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
  399. 'CSRF_COOKIE': 'ee6dc74f3589c341446639d0d332b23f',
  400. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  401. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  402. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  403. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  404. 'HTTP_CACHE_CONTROL': 'max-age=0',
  405. 'HTTP_CONNECTION': 'close',
  406. 'HTTP_COOKIE': 'sessionid=7aa896c60c3864ea11659315765eb6bf; csrftoken=ee6dc74f3589c341446639d0d332b23f',
  407. 'HTTP_HOST': 'nocproject.tsua.net',
  408. 'HTTP_ORIGIN': 'http://nocproject.tsua.net',
  409. 'HTTP_REFERER': 'http://nocproject.tsua.net/sa/managedobject/?q=kie-kie-f3-r21-t5-asw0',
  410. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5',
  411. 'HTTP_X_FORWARDED_FOR': '212.40.49.30',
  412. 'HTTP_X_REAL_IP': '212.40.49.30',
  413. 'PATH_INFO': u'/sa/managedobject/',
  414. 'QUERY_STRING': 'q=kie-kie-f3-r21-t5-asw0',
  415. 'REMOTE_ADDR': '127.0.0.1',
  416. 'REQUEST_METHOD': 'POST',
  417. 'SCRIPT_NAME': u'',
  418. 'SERVER_NAME': 'nocproject.tsua.net',
  419. 'SERVER_PORT': '80',
  420. 'SERVER_PROTOCOL': 'HTTP/1.0',
  421. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x27c01e0>,
  422. 'wsgi.input': <io.BytesIO object at 0x4f01350>,
  423. 'wsgi.multiprocess': True,
  424. 'wsgi.multithread': False,
  425. 'wsgi.run_once': False,
  426. 'wsgi.url_scheme': 'http',
  427. 'wsgi.version': (1, 0)}>
  428. result = None
  429. kwargs = {}
  430. view_func = <function bound_func at 0x53f6b90>
  431. ------------------------------------------------------------------------
  432. File: /opt/noc/contrib/lib/django/utils/decorators.py (Line: 28)
  433. Function: _wrapper
  434. 21 def _wrapper(self, *args, **kwargs):
  435. 22 @decorator
  436. 23 def bound_func(*args2, **kwargs2):
  437. 24 return func(self, *args2, **kwargs2)
  438. 25 # bound_func has the signature that 'decorator' expects i.e. no
  439. 26 # 'self' argument, but it is a closure over self so it can call
  440. 27 # 'func' correctly.
  441. 28 ==> return bound_func(*args, **kwargs)
  442. 29 # In case 'decorator' adds attributes to the function it decorates, we
  443. 30 # want to copy those. We don't have access to bound_func in this scope,
  444. 31 # but we can cheat by using it on a dummy function.
  445. 32 @decorator
  446. 33 def dummy(*args, **kwargs):
  447. 34 pass
  448. Variables:
  449. self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x4837fd0>
  450. args = (<WSGIRequest
  451. GET:<QueryDict: {u'q': [u'kie-kie-f3-r21-t5-asw0']}>,
  452. POST:<QueryDict: {u'action': [u'delete_selected'], u'_selected_action': [u'611'], u'csrfmiddlewaretoken': [u'ee6dc74f3589c341446639d0d332b23f'], u'post': [u'yes']}>,
  453. COOKIES:{'csrftoken': 'ee6dc74f3589c341446639d0d332b23f',
  454. 'sessionid': '7aa896c60c3864ea11659315765eb6bf'},
  455. META:{'CONTENT_LENGTH': '105',
  456. 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
  457. 'CSRF_COOKIE': 'ee6dc74f3589c341446639d0d332b23f',
  458. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  459. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  460. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  461. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  462. 'HTTP_CACHE_CONTROL': 'max-age=0',
  463. 'HTTP_CONNECTION': 'close',
  464. 'HTTP_COOKIE': 'sessionid=7aa896c60c3864ea11659315765eb6bf; csrftoken=ee6dc74f3589c341446639d0d332b23f',
  465. 'HTTP_HOST': 'nocproject.tsua.net',
  466. 'HTTP_ORIGIN': 'http://nocproject.tsua.net',
  467. 'HTTP_REFERER': 'http://nocproject.tsua.net/sa/managedobject/?q=kie-kie-f3-r21-t5-asw0',
  468. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5',
  469. 'HTTP_X_FORWARDED_FOR': '212.40.49.30',
  470. 'HTTP_X_REAL_IP': '212.40.49.30',
  471. 'PATH_INFO': u'/sa/managedobject/',
  472. 'QUERY_STRING': 'q=kie-kie-f3-r21-t5-asw0',
  473. 'REMOTE_ADDR': '127.0.0.1',
  474. 'REQUEST_METHOD': 'POST',
  475. 'SCRIPT_NAME': u'',
  476. 'SERVER_NAME': 'nocproject.tsua.net',
  477. 'SERVER_PORT': '80',
  478. 'SERVER_PROTOCOL': 'HTTP/1.0',
  479. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x27c01e0>,
  480. 'wsgi.input': <io.BytesIO object at 0x4f01350>,
  481. 'wsgi.multiprocess': True,
  482. 'wsgi.multithread': False,
  483. 'wsgi.run_once': False,
  484. 'wsgi.url_scheme': 'http',
  485. 'wsgi.version': (1, 0)}>, {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>})
  486. bound_func = <function bound_func at 0x53f6de8>
  487. func = <function changelist_view at 0x3436ed8>
  488. kwargs = {}
  489. decorator = <function csrf_protect at 0x33f55f0>
  490. ------------------------------------------------------------------------
  491. File: /opt/noc/lib/app/modelapplication.py (Line: 141)
  492. Function: view_changelist
  493. 134 self.model._meta.object_name.lower())
  494. 135
  495. 136 @view(url=r"^$", url_name="changelist", access=HasPerm("change"),
  496. 137 menu=get_menu)
  497. 138 def view_changelist(self, request, extra_context=None):
  498. 139 """Display changelist"""
  499. 140 return self.admin.changelist_view(request,
  500. 141 ==> self.get_context(extra_context))
  501. 142
  502. 143 @view(url=r"^add/$", url_name="add", access=HasPerm("add"))
  503. 144 def view_add(self, request, form_url="", extra_context=None):
  504. 145 """Display add form"""
  505. 146 return self.admin.add_view(request,
  506. 147 extra_context=self.get_context(extra_context))
  507. Variables:
  508. self = <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>
  509. extra_context = None
  510. request = <WSGIRequest
  511. GET:<QueryDict: {u'q': [u'kie-kie-f3-r21-t5-asw0']}>,
  512. POST:<QueryDict: {u'action': [u'delete_selected'], u'_selected_action': [u'611'], u'csrfmiddlewaretoken': [u'ee6dc74f3589c341446639d0d332b23f'], u'post': [u'yes']}>,
  513. COOKIES:{'csrftoken': 'ee6dc74f3589c341446639d0d332b23f',
  514. 'sessionid': '7aa896c60c3864ea11659315765eb6bf'},
  515. META:{'CONTENT_LENGTH': '105',
  516. 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
  517. 'CSRF_COOKIE': 'ee6dc74f3589c341446639d0d332b23f',
  518. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  519. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  520. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  521. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  522. 'HTTP_CACHE_CONTROL': 'max-age=0',
  523. 'HTTP_CONNECTION': 'close',
  524. 'HTTP_COOKIE': 'sessionid=7aa896c60c3864ea11659315765eb6bf; csrftoken=ee6dc74f3589c341446639d0d332b23f',
  525. 'HTTP_HOST': 'nocproject.tsua.net',
  526. 'HTTP_ORIGIN': 'http://nocproject.tsua.net',
  527. 'HTTP_REFERER': 'http://nocproject.tsua.net/sa/managedobject/?q=kie-kie-f3-r21-t5-asw0',
  528. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5',
  529. 'HTTP_X_FORWARDED_FOR': '212.40.49.30',
  530. 'HTTP_X_REAL_IP': '212.40.49.30',
  531. 'PATH_INFO': u'/sa/managedobject/',
  532. 'QUERY_STRING': 'q=kie-kie-f3-r21-t5-asw0',
  533. 'REMOTE_ADDR': '127.0.0.1',
  534. 'REQUEST_METHOD': 'POST',
  535. 'SCRIPT_NAME': u'',
  536. 'SERVER_NAME': 'nocproject.tsua.net',
  537. 'SERVER_PORT': '80',
  538. 'SERVER_PROTOCOL': 'HTTP/1.0',
  539. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x27c01e0>,
  540. 'wsgi.input': <io.BytesIO object at 0x4f01350>,
  541. 'wsgi.multiprocess': True,
  542. 'wsgi.multithread': False,
  543. 'wsgi.run_once': False,
  544. 'wsgi.url_scheme': 'http',
  545. 'wsgi.version': (1, 0)}>
  546. ------------------------------------------------------------------------
  547. File: /opt/noc/lib/app/site.py (Line: 226)
  548. Function: inner
  549. 219 for k, v in request.POST.lists())
  550. 220 elif request.method == "GET":
  551. 221 a = dict((k, v[0] if len(v) == 1 else v)
  552. 222 for k, v in request.GET.lists())
  553. 223 logging.debug("API %s %s %s" % (request.method,
  554. 224 request.path, a))
  555. 225 # Call handler
  556. 226 ==> r = v(request, *args, **kwargs)
  557. 227 # Dump SQL statements
  558. 228 if self.log_sql_statements:
  559. 229 from django.db import connections
  560. 230 tsc = 0
  561. 231 sc = defaultdict(int)
  562. 232 for conn in connections.all():
  563. Variables:
  564. args = ()
  565. view_map = {'PUT': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>>, 'POST': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>>, 'GET': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>>, 'DELETE': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>>}
  566. Form = <class 'django.forms.forms.Form'>
  567. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  568. self = <noc.lib.app.site.Site object at 0x324d090>
  569. v = <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>>
  570. request = <WSGIRequest
  571. GET:<QueryDict: {u'q': [u'kie-kie-f3-r21-t5-asw0']}>,
  572. POST:<QueryDict: {u'action': [u'delete_selected'], u'_selected_action': [u'611'], u'csrfmiddlewaretoken': [u'ee6dc74f3589c341446639d0d332b23f'], u'post': [u'yes']}>,
  573. COOKIES:{'csrftoken': 'ee6dc74f3589c341446639d0d332b23f',
  574. 'sessionid': '7aa896c60c3864ea11659315765eb6bf'},
  575. META:{'CONTENT_LENGTH': '105',
  576. 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
  577. 'CSRF_COOKIE': 'ee6dc74f3589c341446639d0d332b23f',
  578. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  579. 'HTTP_ACCEPT_CHARSET': 'windows-1251,utf-8;q=0.7,*;q=0.3',
  580. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  581. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  582. 'HTTP_CACHE_CONTROL': 'max-age=0',
  583. 'HTTP_CONNECTION': 'close',
  584. 'HTTP_COOKIE': 'sessionid=7aa896c60c3864ea11659315765eb6bf; csrftoken=ee6dc74f3589c341446639d0d332b23f',
  585. 'HTTP_HOST': 'nocproject.tsua.net',
  586. 'HTTP_ORIGIN': 'http://nocproject.tsua.net',
  587. 'HTTP_REFERER': 'http://nocproject.tsua.net/sa/managedobject/?q=kie-kie-f3-r21-t5-asw0',
  588. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.56 Safari/536.5',
  589. 'HTTP_X_FORWARDED_FOR': '212.40.49.30',
  590. 'HTTP_X_REAL_IP': '212.40.49.30',
  591. 'PATH_INFO': u'/sa/managedobject/',
  592. 'QUERY_STRING': 'q=kie-kie-f3-r21-t5-asw0',
  593. 'REMOTE_ADDR': '127.0.0.1',
  594. 'REQUEST_METHOD': 'POST',
  595. 'SCRIPT_NAME': u'',
  596. 'SERVER_NAME': 'nocproject.tsua.net',
  597. 'SERVER_PORT': '80',
  598. 'SERVER_PROTOCOL': 'HTTP/1.0',
  599. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x27c01e0>,
  600. 'wsgi.input': <io.BytesIO object at 0x4f01350>,
  601. 'wsgi.multiprocess': True,
  602. 'wsgi.multithread': False,
  603. 'wsgi.run_once': False,
  604. 'wsgi.url_scheme': 'http',
  605. 'wsgi.version': (1, 0)}>
  606. to_log_api_call = False
  607. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  608. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  609. kwargs = {}
  610. app = <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x4837e50>
  611. ------------------------------------------------------------------------
  612. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment