Advertisement
Guest User

Untitled

a guest
Aug 14th, 2014
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 38.26 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2014-08-13 23:39:29.506428)
  2. Working directory: /opt/noc
  3. <class 'django.db.utils.DatabaseError'>
  4. column sa_managedobject.is_configuration_managed does not exist
  5. LINE 1: ...ct"."snmp_rw", "sa_managedobject"."vc_domain_id", "sa_manage...
  6. ^
  7.  
  8. START OF TRACEBACK
  9. ------------------------------------------------------------------------
  10. File: /opt/noc/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py (Line: 52)
  11. Function: execute
  12. 45 """
  13. 46
  14. 47 def __init__(self, cursor):
  15. 48 self.cursor = cursor
  16. 49
  17. 50 def execute(self, query, args=None):
  18. 51 try:
  19. 52 ==> return self.cursor.execute(query, args)
  20. 53 except Database.IntegrityError, e:
  21. 54 raise utils.IntegrityError, utils.IntegrityError(*tuple(e)), sys.exc_info()[2]
  22. 55 except Database.DatabaseError, e:
  23. 56 raise utils.DatabaseError, utils.DatabaseError(*tuple(e)), sys.exc_info()[2]
  24. 57
  25. 58 def executemany(self, query, args):
  26. Variables:
  27. query =
  28. 'SELECT "sa_managedobject"."id", "sa_managedobject"."name", "sa_managedobject"."is_managed", "sa_managedobject"."administrative_domain_id", "sa_managedobject"."activator_id", "sa_managedobject"."profile_name", "sa_managedobject"."object_profile_id", "sa_managedobject"."description", "sa_managedobject"."scheme", "sa_managedobject"."address", "sa_managedobject"."port", "sa_managedobject"."user", "sa_managedobject"."password", "sa_managedobject"."super_password", "sa_managedobject"."remote_path", "sa_managedobject"."trap_source_ip", "sa_managedobject"."trap_community", "sa_managedobject"."snmp_ro", "sa_managedobject"."snmp_rw", "sa_managedobject"."vc_domain_id", "sa_managedobject"."is_configuration_managed", "sa_managedobject"."repo_path", "sa_managedobject"."vrf_id", "sa_managedobject"."shape", "sa_managedobject"."config_filter_rule_id", "sa_managedobject"."config_diff_filter_rule_id", "sa_managedobject"."config_validation_rule_id", "sa_managedobject"."max_scripts", "sa_managedobject"."tags", "sa_administrativedomain"."id", "sa_administrativedomain"."name", "sa_administrativedomain"."description", "sa_activator"."id", "sa_activator"."name", "sa_activator"."shard_id", "sa_activator"."is_active", "sa_activator"."prefix_table_id", "sa_activator"."auth", "sa_activator"."tags", "main_shard"."id", "main_shard"."name", "main_shard"."is_active", "main_shard"."description", "main_prefixtable"."id", "main_prefixtable"."name", "main_prefixtable"."description", "sa_managedobjectprofile"."id", "sa_managedobjectprofile"."name", "sa_managedobjectprofile"."description", "sa_managedobjectprofile"."style_id", "sa_managedobjectprofile"."shape", "sa_managedobjectprofile"."name_template", "sa_managedobjectprofile"."sync_ipam", "sa_managedobjectprofile"."fqdn_template", "sa_managedobjectprofile"."enable_ping", "sa_managedobjectprofile"."ping_interval", "sa_managedobjectprofile"."down_severity", "sa_managedobjectprofile"."enable_config_polling", "sa_managedobjectprofile"."config_polling_min_interval", "sa_managedobjectprofile"."config_polling_max_interval", "sa_managedobjectprofile"."enable_version_inventory", "sa_managedobjectprofile"."version_inventory_min_interval", "sa_managedobjectprofile"."version_inventory_max_interval", "sa_managedobjectprofile"."enable_interface_discovery", "sa_managedobjectprofile"."interface_discovery_min_interval", "sa_managedobjectprofile"."interface_discovery_max_interval", "sa_managedobjectprofile"."enable_ip_discovery", "sa_managedobjectprofile"."ip_discovery_min_interval", "sa_managedobjectprofile"."ip_discovery_max_interval", "sa_managedobjectprofile"."enable_prefix_discovery", "sa_managedobjectprofile"."prefix_discovery_min_interval", "sa_managedobjectprofile"."prefix_discovery_max_interval", "sa_managedobjectprofile"."enable_vlan_discovery", "sa_managedobjectprofile"."vlan_discovery_min_interval", "sa_managedobjectprofile"."vlan_discovery_max_interval", "sa_managedobjectprofile"."enable_mac_discovery", "sa_managedobjectprofile"."mac_discovery_min_interval", "sa_managedobjectprofile"."mac_discovery_max_interval", "sa_managedobjectprofile"."enable_id_discovery", "sa_managedobjectprofile"."id_discovery_min_interval", "sa_managedobjectprofile"."id_discovery_max_interval", "sa_managedobjectprofile"."enable_lldp_discovery", "sa_managedobjectprofile"."lldp_discovery_min_interval", "sa_managedobjectprofile"."lldp_discovery_max_interval", "sa_managedobjectprofile"."enable_cdp_discovery", "sa_managedobjectprofile"."cdp_discovery_min_interval", "sa_managedobjectprofile"."cdp_discovery_max_interval", "sa_managedobjectprofile"."enable_fdp_discovery", "sa_managedobjectprofile"."fdp_discovery_min_interval", "sa_managedobjectprofile"."fdp_discovery_max_interval", "sa_managedobjectprofile"."enable_stp_discovery", "sa_managedobjectprofile"."stp_discovery_min_interval", "sa_managedobjectprofile"."stp_discovery_max_interval", "sa_managedobjectprofile"."enable_rep_discovery", "sa_managedobjectprofile"."rep_discovery_min_interval", "sa_managedobjectprofile"."rep_discovery_max_interval", "sa_managedobjectprofile"."enable_bfd_discovery", "sa_managedobjectprofile"."bfd_discovery_min_interval", "sa_managedobjectprofile"."bfd_discovery_max_interval", "sa_managedobjectprofile"."enable_udld_discovery", "sa_managedobjectprofile"."udld_discovery_min_interval", "sa_managedobjectprofile"."udld_discovery_max_interval", "sa_managedobjectprofile"."enable_oam_discovery", "sa_managedobjectprofile"."oam_discovery_min_interval", "sa_managedobjectprofile"."oam_discovery_max_interval" FROM "sa_managedobject" INNER JOIN "sa_administrativedomain" ON ("sa_managedobject"."administrative_domain_id" = "sa_administrativedomain"."id") INNER JOIN "sa_activator" ON ("sa_managedobject"."activator_id" = "sa_activator"."id") INNER JOIN "main_shard" ON ("sa_activator"."shard_id" = "main_shard"."id") INNER JOIN "main_prefixtable" ON ("sa_activator"."prefix_table_id" = "main_prefixtable"."id") INNER JOIN "sa_managedobjectprofile" ON ("sa_managedobject"."object_profile_id" = "sa_managedobjectprofile"."id") ORDER BY "sa_managedobject"."name" ASC, "sa_managedobject"."id" DESC'
  29. self =
  30. <django.db.backends.postgresql_psycopg2.base.CursorWrapper object at 0x5b6c3d0>
  31. args = ()
  32. e =
  33. ProgrammingError('column sa_managedobject.is_configuration_managed does not exist\nLINE 1: ...ct"."snmp_rw", "sa_managedobject"."vc_domain_id", "sa_manage...\n ^\n',)
  34. ------------------------------------------------------------------------
  35. File: /opt/noc/lib/python2.7/site-packages/django/db/models/sql/compiler.py (Line: 818)
  36. Function: execute_sql
  37. 811 except EmptyResultSet:
  38. 812 if result_type == MULTI:
  39. 813 return empty_iter()
  40. 814 else:
  41. 815 return
  42. 816
  43. 817 cursor = self.connection.cursor()
  44. 818 ==> cursor.execute(sql, params)
  45. 819
  46. 820 if not result_type:
  47. 821 return cursor
  48. 822 if result_type == SINGLE:
  49. 823 if self.query.ordering_aliases:
  50. 824 return cursor.fetchone()[:-len(self.query.ordering_aliases)]
  51. Variables:
  52. cursor = <django.db.backends.util.CursorWrapper object at 0x5b77710>
  53. self = <django.db.models.sql.compiler.SQLCompiler object at 0x5b6c390>
  54. params = ()
  55. result_type = 'multi'
  56. sql =
  57. 'SELECT "sa_managedobject"."id", "sa_managedobject"."name", "sa_managedobject"."is_managed", "sa_managedobject"."administrative_domain_id", "sa_managedobject"."activator_id", "sa_managedobject"."profile_name", "sa_managedobject"."object_profile_id", "sa_managedobject"."description", "sa_managedobject"."scheme", "sa_managedobject"."address", "sa_managedobject"."port", "sa_managedobject"."user", "sa_managedobject"."password", "sa_managedobject"."super_password", "sa_managedobject"."remote_path", "sa_managedobject"."trap_source_ip", "sa_managedobject"."trap_community", "sa_managedobject"."snmp_ro", "sa_managedobject"."snmp_rw", "sa_managedobject"."vc_domain_id", "sa_managedobject"."is_configuration_managed", "sa_managedobject"."repo_path", "sa_managedobject"."vrf_id", "sa_managedobject"."shape", "sa_managedobject"."config_filter_rule_id", "sa_managedobject"."config_diff_filter_rule_id", "sa_managedobject"."config_validation_rule_id", "sa_managedobject"."max_scripts", "sa_managedobject"."tags", "sa_administrativedomain"."id", "sa_administrativedomain"."name", "sa_administrativedomain"."description", "sa_activator"."id", "sa_activator"."name", "sa_activator"."shard_id", "sa_activator"."is_active", "sa_activator"."prefix_table_id", "sa_activator"."auth", "sa_activator"."tags", "main_shard"."id", "main_shard"."name", "main_shard"."is_active", "main_shard"."description", "main_prefixtable"."id", "main_prefixtable"."name", "main_prefixtable"."description", "sa_managedobjectprofile"."id", "sa_managedobjectprofile"."name", "sa_managedobjectprofile"."description", "sa_managedobjectprofile"."style_id", "sa_managedobjectprofile"."shape", "sa_managedobjectprofile"."name_template", "sa_managedobjectprofile"."sync_ipam", "sa_managedobjectprofile"."fqdn_template", "sa_managedobjectprofile"."enable_ping", "sa_managedobjectprofile"."ping_interval", "sa_managedobjectprofile"."down_severity", "sa_managedobjectprofile"."enable_config_polling", "sa_managedobjectprofile"."config_polling_min_interval", "sa_managedobjectprofile"."config_polling_max_interval", "sa_managedobjectprofile"."enable_version_inventory", "sa_managedobjectprofile"."version_inventory_min_interval", "sa_managedobjectprofile"."version_inventory_max_interval", "sa_managedobjectprofile"."enable_interface_discovery", "sa_managedobjectprofile"."interface_discovery_min_interval", "sa_managedobjectprofile"."interface_discovery_max_interval", "sa_managedobjectprofile"."enable_ip_discovery", "sa_managedobjectprofile"."ip_discovery_min_interval", "sa_managedobjectprofile"."ip_discovery_max_interval", "sa_managedobjectprofile"."enable_prefix_discovery", "sa_managedobjectprofile"."prefix_discovery_min_interval", "sa_managedobjectprofile"."prefix_discovery_max_interval", "sa_managedobjectprofile"."enable_vlan_discovery", "sa_managedobjectprofile"."vlan_discovery_min_interval", "sa_managedobjectprofile"."vlan_discovery_max_interval", "sa_managedobjectprofile"."enable_mac_discovery", "sa_managedobjectprofile"."mac_discovery_min_interval", "sa_managedobjectprofile"."mac_discovery_max_interval", "sa_managedobjectprofile"."enable_id_discovery", "sa_managedobjectprofile"."id_discovery_min_interval", "sa_managedobjectprofile"."id_discovery_max_interval", "sa_managedobjectprofile"."enable_lldp_discovery", "sa_managedobjectprofile"."lldp_discovery_min_interval", "sa_managedobjectprofile"."lldp_discovery_max_interval", "sa_managedobjectprofile"."enable_cdp_discovery", "sa_managedobjectprofile"."cdp_discovery_min_interval", "sa_managedobjectprofile"."cdp_discovery_max_interval", "sa_managedobjectprofile"."enable_fdp_discovery", "sa_managedobjectprofile"."fdp_discovery_min_interval", "sa_managedobjectprofile"."fdp_discovery_max_interval", "sa_managedobjectprofile"."enable_stp_discovery", "sa_managedobjectprofile"."stp_discovery_min_interval", "sa_managedobjectprofile"."stp_discovery_max_interval", "sa_managedobjectprofile"."enable_rep_discovery", "sa_managedobjectprofile"."rep_discovery_min_interval", "sa_managedobjectprofile"."rep_discovery_max_interval", "sa_managedobjectprofile"."enable_bfd_discovery", "sa_managedobjectprofile"."bfd_discovery_min_interval", "sa_managedobjectprofile"."bfd_discovery_max_interval", "sa_managedobjectprofile"."enable_udld_discovery", "sa_managedobjectprofile"."udld_discovery_min_interval", "sa_managedobjectprofile"."udld_discovery_max_interval", "sa_managedobjectprofile"."enable_oam_discovery", "sa_managedobjectprofile"."oam_discovery_min_interval", "sa_managedobjectprofile"."oam_discovery_max_interval" FROM "sa_managedobject" INNER JOIN "sa_administrativedomain" ON ("sa_managedobject"."administrative_domain_id" = "sa_administrativedomain"."id") INNER JOIN "sa_activator" ON ("sa_managedobject"."activator_id" = "sa_activator"."id") INNER JOIN "main_shard" ON ("sa_activator"."shard_id" = "main_shard"."id") INNER JOIN "main_prefixtable" ON ("sa_activator"."prefix_table_id" = "main_prefixtable"."id") INNER JOIN "sa_managedobjectprofile" ON ("sa_managedobject"."object_profile_id" = "sa_managedobjectprofile"."id") ORDER BY "sa_managedobject"."name" ASC, "sa_managedobject"."id" DESC'
  58. ------------------------------------------------------------------------
  59. File: /opt/noc/lib/python2.7/site-packages/django/db/models/sql/compiler.py (Line: 763)
  60. Function: results_iter
  61. 756 fields = None
  62. 757 has_aggregate_select = bool(self.query.aggregate_select)
  63. 758 # Set transaction dirty if we're using SELECT FOR UPDATE to ensure
  64. 759 # a subsequent commit/rollback is executed, so any database locks
  65. 760 # are released.
  66. 761 if self.query.select_for_update and transaction.is_managed(self.using):
  67. 762 transaction.set_dirty(self.using)
  68. 763 ==> for rows in self.execute_sql(MULTI):
  69. 764 for row in rows:
  70. 765 if resolve_columns:
  71. 766 if fields is None:
  72. 767 # We only set this up here because
  73. 768 # related_select_fields isn't populated until
  74. 769 # execute_sql() has been called.
  75. Variables:
  76. fields = None
  77. self = <django.db.models.sql.compiler.SQLCompiler object at 0x5b6c390>
  78. has_aggregate_select = False
  79. resolve_columns = False
  80. ------------------------------------------------------------------------
  81. File: /opt/noc/lib/python2.7/site-packages/django/db/models/query.py (Line: 291)
  82. Function: iterator
  83. 284 # Cache db and model outside the loop
  84. 285 db = self.db
  85. 286 model = self.model
  86. 287 compiler = self.query.get_compiler(using=db)
  87. 288 if fill_cache:
  88. 289 klass_info = get_klass_info(model, max_depth=max_depth,
  89. 290 requested=requested, only_load=only_load)
  90. 291 ==> for row in compiler.results_iter():
  91. 292 if fill_cache:
  92. 293 obj, _ = get_cached_row(row, index_start, db, klass_info,
  93. 294 offset=len(aggregate_select))
  94. 295 else:
  95. 296 if skip:
  96. 297 row_data = row[index_start:aggregate_start]
  97. Variables:
  98. requested = None
  99. fill_cache = True
  100. aggregate_select = []
  101. klass_info =
  102. (<class 'noc.sa.models.managedobject.ManagedObject'>,
  103. (),
  104. 29,
  105. [(<django.db.models.fields.related.ForeignKey: administrative_domain>,
  106. (<class 'noc.sa.models.administrativedomain.AdministrativeDomain'>,
  107. (),
  108. 3,
  109. [],
  110. [])),
  111. (<django.db.models.fields.related.ForeignKey: activator>,
  112. (<class 'noc.sa.models.activator.Activator'>,
  113. (),
  114. 7,
  115. [(<django.db.models.fields.related.ForeignKey: shard>,
  116. (<class 'noc.main.models.Shard'>, (), 4, [], [])),
  117. (<django.db.models.fields.related.ForeignKey: prefix_table>,
  118. (<class 'noc.main.models.prefixtable.PrefixTable'>, (), 3, [], []))],
  119. [])),
  120. (<django.db.models.fields.related.ForeignKey: object_profile>,
  121. (<class 'noc.sa.models.managedobjectprofile.ManagedObjectProfile'>,
  122. (),
  123. 59,
  124. [],
  125. []))],
  126. [])
  127. skip = None
  128. self = repr() failed
  129. load_fields = []
  130. db = 'default'
  131. index_start = 0
  132. extra_select = []
  133. aggregate_start = 29
  134. model = <class 'noc.sa.models.managedobject.ManagedObject'>
  135. only_load = {}
  136. max_depth = 5
  137. compiler = <django.db.models.sql.compiler.SQLCompiler object at 0x5b6c390>
  138. ------------------------------------------------------------------------
  139. File: /opt/noc/lib/python2.7/site-packages/django/db/models/query.py (Line: 85)
  140. Function: __len__
  141. 78 # Since __len__ is called quite frequently (for example, as part of
  142. 79 # list(qs), we make some effort here to be as efficient as possible
  143. 80 # whilst not messing up any existing iterators against the QuerySet.
  144. 81 if self._result_cache is None:
  145. 82 if self._iter:
  146. 83 self._result_cache = list(self._iter)
  147. 84 else:
  148. 85 ==> self._result_cache = list(self.iterator())
  149. 86 elif self._iter:
  150. 87 self._result_cache.extend(self._iter)
  151. 88 if self._prefetch_related_lookups and not self._prefetch_done:
  152. 89 self._prefetch_related_objects()
  153. 90 return len(self._result_cache)
  154. 91
  155. Variables:
  156. self = repr() failed
  157. ------------------------------------------------------------------------
  158. File: /opt/noc/lib/python2.7/site-packages/django/contrib/admin/options.py (Line: 1233)
  159. Function: changelist_view
  160. 1226 action_form = None
  161. 1227
  162. 1228 selection_note_all = ungettext('%(total_count)s selected',
  163. 1229 'All %(total_count)s selected', cl.result_count)
  164. 1230
  165. 1231 context = {
  166. 1232 'module_name': force_unicode(opts.verbose_name_plural),
  167. 1233 ==> 'selection_note': _('0 of %(cnt)s selected') % {'cnt': len(cl.result_list)},
  168. 1234 'selection_note_all': selection_note_all % {'total_count': cl.result_count},
  169. 1235 'title': cl.title,
  170. 1236 'is_popup': cl.is_popup,
  171. 1237 'cl': cl,
  172. 1238 'media': media,
  173. 1239 'has_add_permission': self.has_add_permission(request),
  174. Variables:
  175. cl = <django.contrib.admin.views.main.ChangeList object at 0x5accfd0>
  176. action_failed = False
  177. selection_note_all = u'All %(total_count)s selected'
  178. ERROR_FLAG = 'e'
  179. media = <django.forms.widgets.Media object at 0x5b6c5d0>
  180. ChangeList = <class 'django.contrib.admin.views.main.ChangeList'>
  181. selected = []
  182. action_form = <django.contrib.admin.helpers.ActionForm object at 0x5b6c710>
  183. request =
  184. <WSGIRequest
  185. path:/sa/managedobject/,
  186. GET:<QueryDict: {}>,
  187. POST:<QueryDict: {}>,
  188. COOKIES:{'__utma': '248723226.479147809.1311343784.1405443181.1405601279.701',
  189. '__utmv': '248723226.|1=user_ip=195.88.252.132=1',
  190. '__utmz': '248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  191. 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  192. 'sessionid': '54ca91d00ae77f2f8428322174807555'},
  193. META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  194. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  195. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  196. 'HTTP_ACCEPT_LANGUAGE': 'ru',
  197. 'HTTP_CACHE_CONTROL': 'max-age=259200',
  198. 'HTTP_CONNECTION': 'close',
  199. 'HTTP_COOKIE': 'csrftoken=cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt; sessionid=54ca91d00ae77f2f8428322174807555; __utma=248723226.479147809.1311343784.1405443181.1405601279.701; __utmv=248723226.|1=user_ip=195.88.252.132=1; __utmz=248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  200. 'HTTP_HOST': '127.0.0.1:8000',
  201. 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
  202. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.77.4 (KHTML, like Gecko) Version/7.0.5 Safari/537.77.4',
  203. 'PATH_INFO': u'/sa/managedobject/',
  204. 'QUERY_STRING': '',
  205. 'REMOTE_ADDR': '127.0.0.1',
  206. 'REQUEST_METHOD': 'GET',
  207. 'SCRIPT_NAME': u'',
  208. 'SERVER_NAME': '127.0.0.1',
  209. 'SERVER_PORT': '8000',
  210. 'SERVER_PROTOCOL': 'HTTP/1.0',
  211. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2effb70>,
  212. 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
  213. 'wsgi.multiprocess': True,
  214. 'wsgi.multithread': False,
  215. 'wsgi.run_once': False,
  216. 'wsgi.url_scheme': 'http',
  217. 'wsgi.version': (1, 0)}>
  218. actions =
  219. {'delete_selected': (<function delete_selected at 0x39f56e0>, 'delete_selected', <django.utils.functional.__proxy__ object at 0x39fc050>), 'export_selected_csv': (<function admin_csv_export at 0x5131320>, 'export_selected_csv', 'Export selected %(verbose_name_plural)s to CSV'), 'test_access': (<unbound method ManagedObjectAdmin.test_access>, 'test_access', u'Test selected object access'), 'bulk_change_activator': (<unbound method ManagedObjectAdmin.bulk_change_activator>, 'bulk_change_activator', u'Change activator for selected objects'), 'reschedule_discovery': (<unbound method ManagedObjectAdmin.reschedule_discovery>, 'reschedule_discovery', u'Run discovery now'), 'apply_config_filters': (<unbound method ManagedObjectAdmin.apply_config_filters>, 'apply_config_filters', u'Apply Config Filters')}
  220. app_label = 'sa'
  221. self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x55d55d0>
  222. list_display =
  223. ['action_checkbox',
  224. 'name',
  225. <function object_status at 0x55c9410>,
  226. <function alarms at 0x55c9488>,
  227. <function profile at 0x55c9320>,
  228. 'object_profile',
  229. 'vrf',
  230. 'address',
  231. 'vc_domain',
  232. <function domain_activator at 0x55c9500>,
  233. 'description',
  234. 'repo_path',
  235. <function action_links at 0x5565f50>]
  236. list_display_links = ['name']
  237. extra_context =
  238. {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>}
  239. formset = None
  240. opts = <Options for ManagedObject>
  241. ------------------------------------------------------------------------
  242. File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 21)
  243. Function: bound_func
  244. 14 """
  245. 15 # 'func' is a function at the time it is passed to _dec, but will eventually
  246. 16 # be a method of the class it is defined it.
  247. 17 def _dec(func):
  248. 18 def _wrapper(self, *args, **kwargs):
  249. 19 @decorator
  250. 20 def bound_func(*args2, **kwargs2):
  251. 21 ==> return func(self, *args2, **kwargs2)
  252. 22 # bound_func has the signature that 'decorator' expects i.e. no
  253. 23 # 'self' argument, but it is a closure over self so it can call
  254. 24 # 'func' correctly.
  255. 25 return bound_func(*args, **kwargs)
  256. 26 # In case 'decorator' adds attributes to the function it decorates, we
  257. 27 # want to copy those. We don't have access to bound_func in this scope,
  258. Variables:
  259. args2 =
  260. (<WSGIRequest
  261. path:/sa/managedobject/,
  262. GET:<QueryDict: {}>,
  263. POST:<QueryDict: {}>,
  264. COOKIES:{'__utma': '248723226.479147809.1311343784.1405443181.1405601279.701',
  265. '__utmv': '248723226.|1=user_ip=195.88.252.132=1',
  266. '__utmz': '248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  267. 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  268. 'sessionid': '54ca91d00ae77f2f8428322174807555'},
  269. META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  270. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  271. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  272. 'HTTP_ACCEPT_LANGUAGE': 'ru',
  273. 'HTTP_CACHE_CONTROL': 'max-age=259200',
  274. 'HTTP_CONNECTION': 'close',
  275. 'HTTP_COOKIE': 'csrftoken=cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt; sessionid=54ca91d00ae77f2f8428322174807555; __utma=248723226.479147809.1311343784.1405443181.1405601279.701; __utmv=248723226.|1=user_ip=195.88.252.132=1; __utmz=248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  276. 'HTTP_HOST': '127.0.0.1:8000',
  277. 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
  278. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.77.4 (KHTML, like Gecko) Version/7.0.5 Safari/537.77.4',
  279. 'PATH_INFO': u'/sa/managedobject/',
  280. 'QUERY_STRING': '',
  281. 'REMOTE_ADDR': '127.0.0.1',
  282. 'REQUEST_METHOD': 'GET',
  283. 'SCRIPT_NAME': u'',
  284. 'SERVER_NAME': '127.0.0.1',
  285. 'SERVER_PORT': '8000',
  286. 'SERVER_PROTOCOL': 'HTTP/1.0',
  287. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2effb70>,
  288. 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
  289. 'wsgi.multiprocess': True,
  290. 'wsgi.multithread': False,
  291. 'wsgi.run_once': False,
  292. 'wsgi.url_scheme': 'http',
  293. 'wsgi.version': (1, 0)}>,
  294. {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>})
  295. func = <function changelist_view at 0x39f3b90>
  296. self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x55d55d0>
  297. kwargs2 = {}
  298. ------------------------------------------------------------------------
  299. File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 91)
  300. Function: _wrapped_view
  301. 84 if result is not None:
  302. 85 return result
  303. 86 if hasattr(middleware, 'process_view'):
  304. 87 result = middleware.process_view(request, view_func, args, kwargs)
  305. 88 if result is not None:
  306. 89 return result
  307. 90 try:
  308. 91 ==> response = view_func(request, *args, **kwargs)
  309. 92 except Exception, e:
  310. 93 if hasattr(middleware, 'process_exception'):
  311. 94 result = middleware.process_exception(request, e)
  312. 95 if result is not None:
  313. 96 return result
  314. 97 raise
  315. Variables:
  316. e =
  317. DatabaseError('column sa_managedobject.is_configuration_managed does not exist\nLINE 1: ...ct"."snmp_rw", "sa_managedobject"."vc_domain_id", "sa_manage...\n ^\n',)
  318. middleware = <django.middleware.csrf.CsrfViewMiddleware object at 0x39a1050>
  319. args =
  320. ({'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>},)
  321. request =
  322. <WSGIRequest
  323. path:/sa/managedobject/,
  324. GET:<QueryDict: {}>,
  325. POST:<QueryDict: {}>,
  326. COOKIES:{'__utma': '248723226.479147809.1311343784.1405443181.1405601279.701',
  327. '__utmv': '248723226.|1=user_ip=195.88.252.132=1',
  328. '__utmz': '248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  329. 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  330. 'sessionid': '54ca91d00ae77f2f8428322174807555'},
  331. META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  332. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  333. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  334. 'HTTP_ACCEPT_LANGUAGE': 'ru',
  335. 'HTTP_CACHE_CONTROL': 'max-age=259200',
  336. 'HTTP_CONNECTION': 'close',
  337. 'HTTP_COOKIE': 'csrftoken=cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt; sessionid=54ca91d00ae77f2f8428322174807555; __utma=248723226.479147809.1311343784.1405443181.1405601279.701; __utmv=248723226.|1=user_ip=195.88.252.132=1; __utmz=248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  338. 'HTTP_HOST': '127.0.0.1:8000',
  339. 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
  340. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.77.4 (KHTML, like Gecko) Version/7.0.5 Safari/537.77.4',
  341. 'PATH_INFO': u'/sa/managedobject/',
  342. 'QUERY_STRING': '',
  343. 'REMOTE_ADDR': '127.0.0.1',
  344. 'REQUEST_METHOD': 'GET',
  345. 'SCRIPT_NAME': u'',
  346. 'SERVER_NAME': '127.0.0.1',
  347. 'SERVER_PORT': '8000',
  348. 'SERVER_PROTOCOL': 'HTTP/1.0',
  349. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2effb70>,
  350. 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
  351. 'wsgi.multiprocess': True,
  352. 'wsgi.multithread': False,
  353. 'wsgi.run_once': False,
  354. 'wsgi.url_scheme': 'http',
  355. 'wsgi.version': (1, 0)}>
  356. result = None
  357. kwargs = {}
  358. view_func = <function bound_func at 0x5ac4e60>
  359. ------------------------------------------------------------------------
  360. File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 25)
  361. Function: _wrapper
  362. 18 def _wrapper(self, *args, **kwargs):
  363. 19 @decorator
  364. 20 def bound_func(*args2, **kwargs2):
  365. 21 return func(self, *args2, **kwargs2)
  366. 22 # bound_func has the signature that 'decorator' expects i.e. no
  367. 23 # 'self' argument, but it is a closure over self so it can call
  368. 24 # 'func' correctly.
  369. 25 ==> return bound_func(*args, **kwargs)
  370. 26 # In case 'decorator' adds attributes to the function it decorates, we
  371. 27 # want to copy those. We don't have access to bound_func in this scope,
  372. 28 # but we can cheat by using it on a dummy function.
  373. 29 @decorator
  374. 30 def dummy(*args, **kwargs):
  375. 31 pass
  376. Variables:
  377. self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x55d55d0>
  378. args =
  379. (<WSGIRequest
  380. path:/sa/managedobject/,
  381. GET:<QueryDict: {}>,
  382. POST:<QueryDict: {}>,
  383. COOKIES:{'__utma': '248723226.479147809.1311343784.1405443181.1405601279.701',
  384. '__utmv': '248723226.|1=user_ip=195.88.252.132=1',
  385. '__utmz': '248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  386. 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  387. 'sessionid': '54ca91d00ae77f2f8428322174807555'},
  388. META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  389. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  390. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  391. 'HTTP_ACCEPT_LANGUAGE': 'ru',
  392. 'HTTP_CACHE_CONTROL': 'max-age=259200',
  393. 'HTTP_CONNECTION': 'close',
  394. 'HTTP_COOKIE': 'csrftoken=cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt; sessionid=54ca91d00ae77f2f8428322174807555; __utma=248723226.479147809.1311343784.1405443181.1405601279.701; __utmv=248723226.|1=user_ip=195.88.252.132=1; __utmz=248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  395. 'HTTP_HOST': '127.0.0.1:8000',
  396. 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
  397. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.77.4 (KHTML, like Gecko) Version/7.0.5 Safari/537.77.4',
  398. 'PATH_INFO': u'/sa/managedobject/',
  399. 'QUERY_STRING': '',
  400. 'REMOTE_ADDR': '127.0.0.1',
  401. 'REQUEST_METHOD': 'GET',
  402. 'SCRIPT_NAME': u'',
  403. 'SERVER_NAME': '127.0.0.1',
  404. 'SERVER_PORT': '8000',
  405. 'SERVER_PROTOCOL': 'HTTP/1.0',
  406. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2effb70>,
  407. 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
  408. 'wsgi.multiprocess': True,
  409. 'wsgi.multithread': False,
  410. 'wsgi.run_once': False,
  411. 'wsgi.url_scheme': 'http',
  412. 'wsgi.version': (1, 0)}>,
  413. {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>})
  414. bound_func = <function bound_func at 0x5acbd70>
  415. func = <function changelist_view at 0x39f3b90>
  416. kwargs = {}
  417. decorator = <function csrf_protect at 0x39b2f50>
  418. ------------------------------------------------------------------------
  419. File: /opt/noc/lib/app/modelapplication.py (Line: 141)
  420. Function: view_changelist
  421. 134 self.model._meta.object_name.lower())
  422. 135
  423. 136 @view(url=r"^$", url_name="admin:%s_%s_changelist", access=HasPerm("change"),
  424. 137 menu=get_menu)
  425. 138 def view_changelist(self, request, extra_context=None):
  426. 139 """Display changelist"""
  427. 140 return self.admin.changelist_view(request,
  428. 141 ==> self.get_context(extra_context))
  429. 142
  430. 143 @view(url=r"^add/$", url_name="admin:%s_%s_add", access=HasPerm("add"))
  431. 144 def view_add(self, request, form_url="", extra_context=None):
  432. 145 """Display add form"""
  433. 146 return self.admin.add_view(
  434. 147 request,
  435. Variables:
  436. self =
  437. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>
  438. extra_context = None
  439. request =
  440. <WSGIRequest
  441. path:/sa/managedobject/,
  442. GET:<QueryDict: {}>,
  443. POST:<QueryDict: {}>,
  444. COOKIES:{'__utma': '248723226.479147809.1311343784.1405443181.1405601279.701',
  445. '__utmv': '248723226.|1=user_ip=195.88.252.132=1',
  446. '__utmz': '248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  447. 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  448. 'sessionid': '54ca91d00ae77f2f8428322174807555'},
  449. META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  450. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  451. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  452. 'HTTP_ACCEPT_LANGUAGE': 'ru',
  453. 'HTTP_CACHE_CONTROL': 'max-age=259200',
  454. 'HTTP_CONNECTION': 'close',
  455. 'HTTP_COOKIE': 'csrftoken=cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt; sessionid=54ca91d00ae77f2f8428322174807555; __utma=248723226.479147809.1311343784.1405443181.1405601279.701; __utmv=248723226.|1=user_ip=195.88.252.132=1; __utmz=248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  456. 'HTTP_HOST': '127.0.0.1:8000',
  457. 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
  458. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.77.4 (KHTML, like Gecko) Version/7.0.5 Safari/537.77.4',
  459. 'PATH_INFO': u'/sa/managedobject/',
  460. 'QUERY_STRING': '',
  461. 'REMOTE_ADDR': '127.0.0.1',
  462. 'REQUEST_METHOD': 'GET',
  463. 'SCRIPT_NAME': u'',
  464. 'SERVER_NAME': '127.0.0.1',
  465. 'SERVER_PORT': '8000',
  466. 'SERVER_PROTOCOL': 'HTTP/1.0',
  467. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2effb70>,
  468. 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
  469. 'wsgi.multiprocess': True,
  470. 'wsgi.multithread': False,
  471. 'wsgi.run_once': False,
  472. 'wsgi.url_scheme': 'http',
  473. 'wsgi.version': (1, 0)}>
  474. ------------------------------------------------------------------------
  475. File: /opt/noc/lib/app/site.py (Line: 232)
  476. Function: inner
  477. 225 for k, v in request.POST.lists())
  478. 226 elif request.method == "GET":
  479. 227 a = dict((k, v[0] if len(v) == 1 else v)
  480. 228 for k, v in request.GET.lists())
  481. 229 logging.debug("API %s %s %s" % (request.method,
  482. 230 request.path, a))
  483. 231 # Call handler
  484. 232 ==> r = v(request, *args, **kwargs)
  485. 233 # Dump SQL statements
  486. 234 if self.log_sql_statements:
  487. 235 from django.db import connections
  488. 236 tsc = 0
  489. 237 sc = defaultdict(int)
  490. 238 for conn in connections.all():
  491. Variables:
  492. args = ()
  493. view_map =
  494. {'DELETE': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>>,
  495. 'GET': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>>,
  496. 'POST': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>>,
  497. 'PUT': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>>}
  498. Form = <class 'django.forms.forms.Form'>
  499. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  500. self = <noc.lib.app.site.Site object at 0x386ff10>
  501. v =
  502. <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>>
  503. request =
  504. <WSGIRequest
  505. path:/sa/managedobject/,
  506. GET:<QueryDict: {}>,
  507. POST:<QueryDict: {}>,
  508. COOKIES:{'__utma': '248723226.479147809.1311343784.1405443181.1405601279.701',
  509. '__utmv': '248723226.|1=user_ip=195.88.252.132=1',
  510. '__utmz': '248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  511. 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  512. 'sessionid': '54ca91d00ae77f2f8428322174807555'},
  513. META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
  514. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  515. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  516. 'HTTP_ACCEPT_LANGUAGE': 'ru',
  517. 'HTTP_CACHE_CONTROL': 'max-age=259200',
  518. 'HTTP_CONNECTION': 'close',
  519. 'HTTP_COOKIE': 'csrftoken=cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt; sessionid=54ca91d00ae77f2f8428322174807555; __utma=248723226.479147809.1311343784.1405443181.1405601279.701; __utmv=248723226.|1=user_ip=195.88.252.132=1; __utmz=248723226.1388480682.688.120.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=http://link-spb.ru/',
  520. 'HTTP_HOST': '127.0.0.1:8000',
  521. 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
  522. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.77.4 (KHTML, like Gecko) Version/7.0.5 Safari/537.77.4',
  523. 'PATH_INFO': u'/sa/managedobject/',
  524. 'QUERY_STRING': '',
  525. 'REMOTE_ADDR': '127.0.0.1',
  526. 'REQUEST_METHOD': 'GET',
  527. 'SCRIPT_NAME': u'',
  528. 'SERVER_NAME': '127.0.0.1',
  529. 'SERVER_PORT': '8000',
  530. 'SERVER_PROTOCOL': 'HTTP/1.0',
  531. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x2effb70>,
  532. 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
  533. 'wsgi.multiprocess': True,
  534. 'wsgi.multithread': False,
  535. 'wsgi.run_once': False,
  536. 'wsgi.url_scheme': 'http',
  537. 'wsgi.version': (1, 0)}>
  538. to_log_api_call = False
  539. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  540. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  541. kwargs = {}
  542. app =
  543. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>
  544. ------------------------------------------------------------------------
  545. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement