Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2014-08-13 23:39:29.506428)
- Working directory: /opt/noc
- <class 'django.db.utils.DatabaseError'>
- column sa_managedobject.is_configuration_managed does not exist
- LINE 1: ...ct"."snmp_rw", "sa_managedobject"."vc_domain_id", "sa_manage...
- ^
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py (Line: 52)
- Function: execute
- 45 """
- 46
- 47 def __init__(self, cursor):
- 48 self.cursor = cursor
- 49
- 50 def execute(self, query, args=None):
- 51 try:
- 52 ==> return self.cursor.execute(query, args)
- 53 except Database.IntegrityError, e:
- 54 raise utils.IntegrityError, utils.IntegrityError(*tuple(e)), sys.exc_info()[2]
- 55 except Database.DatabaseError, e:
- 56 raise utils.DatabaseError, utils.DatabaseError(*tuple(e)), sys.exc_info()[2]
- 57
- 58 def executemany(self, query, args):
- Variables:
- query =
- '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'
- self =
- <django.db.backends.postgresql_psycopg2.base.CursorWrapper object at 0x5b6c3d0>
- args = ()
- e =
- ProgrammingError('column sa_managedobject.is_configuration_managed does not exist\nLINE 1: ...ct"."snmp_rw", "sa_managedobject"."vc_domain_id", "sa_manage...\n ^\n',)
- ------------------------------------------------------------------------
- File: /opt/noc/lib/python2.7/site-packages/django/db/models/sql/compiler.py (Line: 818)
- Function: execute_sql
- 811 except EmptyResultSet:
- 812 if result_type == MULTI:
- 813 return empty_iter()
- 814 else:
- 815 return
- 816
- 817 cursor = self.connection.cursor()
- 818 ==> cursor.execute(sql, params)
- 819
- 820 if not result_type:
- 821 return cursor
- 822 if result_type == SINGLE:
- 823 if self.query.ordering_aliases:
- 824 return cursor.fetchone()[:-len(self.query.ordering_aliases)]
- Variables:
- cursor = <django.db.backends.util.CursorWrapper object at 0x5b77710>
- self = <django.db.models.sql.compiler.SQLCompiler object at 0x5b6c390>
- params = ()
- result_type = 'multi'
- sql =
- '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'
- ------------------------------------------------------------------------
- File: /opt/noc/lib/python2.7/site-packages/django/db/models/sql/compiler.py (Line: 763)
- Function: results_iter
- 756 fields = None
- 757 has_aggregate_select = bool(self.query.aggregate_select)
- 758 # Set transaction dirty if we're using SELECT FOR UPDATE to ensure
- 759 # a subsequent commit/rollback is executed, so any database locks
- 760 # are released.
- 761 if self.query.select_for_update and transaction.is_managed(self.using):
- 762 transaction.set_dirty(self.using)
- 763 ==> for rows in self.execute_sql(MULTI):
- 764 for row in rows:
- 765 if resolve_columns:
- 766 if fields is None:
- 767 # We only set this up here because
- 768 # related_select_fields isn't populated until
- 769 # execute_sql() has been called.
- Variables:
- fields = None
- self = <django.db.models.sql.compiler.SQLCompiler object at 0x5b6c390>
- has_aggregate_select = False
- resolve_columns = False
- ------------------------------------------------------------------------
- File: /opt/noc/lib/python2.7/site-packages/django/db/models/query.py (Line: 291)
- Function: iterator
- 284 # Cache db and model outside the loop
- 285 db = self.db
- 286 model = self.model
- 287 compiler = self.query.get_compiler(using=db)
- 288 if fill_cache:
- 289 klass_info = get_klass_info(model, max_depth=max_depth,
- 290 requested=requested, only_load=only_load)
- 291 ==> for row in compiler.results_iter():
- 292 if fill_cache:
- 293 obj, _ = get_cached_row(row, index_start, db, klass_info,
- 294 offset=len(aggregate_select))
- 295 else:
- 296 if skip:
- 297 row_data = row[index_start:aggregate_start]
- Variables:
- requested = None
- fill_cache = True
- aggregate_select = []
- klass_info =
- (<class 'noc.sa.models.managedobject.ManagedObject'>,
- (),
- 29,
- [(<django.db.models.fields.related.ForeignKey: administrative_domain>,
- (<class 'noc.sa.models.administrativedomain.AdministrativeDomain'>,
- (),
- 3,
- [],
- [])),
- (<django.db.models.fields.related.ForeignKey: activator>,
- (<class 'noc.sa.models.activator.Activator'>,
- (),
- 7,
- [(<django.db.models.fields.related.ForeignKey: shard>,
- (<class 'noc.main.models.Shard'>, (), 4, [], [])),
- (<django.db.models.fields.related.ForeignKey: prefix_table>,
- (<class 'noc.main.models.prefixtable.PrefixTable'>, (), 3, [], []))],
- [])),
- (<django.db.models.fields.related.ForeignKey: object_profile>,
- (<class 'noc.sa.models.managedobjectprofile.ManagedObjectProfile'>,
- (),
- 59,
- [],
- []))],
- [])
- skip = None
- self = repr() failed
- load_fields = []
- db = 'default'
- index_start = 0
- extra_select = []
- aggregate_start = 29
- model = <class 'noc.sa.models.managedobject.ManagedObject'>
- only_load = {}
- max_depth = 5
- compiler = <django.db.models.sql.compiler.SQLCompiler object at 0x5b6c390>
- ------------------------------------------------------------------------
- File: /opt/noc/lib/python2.7/site-packages/django/db/models/query.py (Line: 85)
- Function: __len__
- 78 # Since __len__ is called quite frequently (for example, as part of
- 79 # list(qs), we make some effort here to be as efficient as possible
- 80 # whilst not messing up any existing iterators against the QuerySet.
- 81 if self._result_cache is None:
- 82 if self._iter:
- 83 self._result_cache = list(self._iter)
- 84 else:
- 85 ==> self._result_cache = list(self.iterator())
- 86 elif self._iter:
- 87 self._result_cache.extend(self._iter)
- 88 if self._prefetch_related_lookups and not self._prefetch_done:
- 89 self._prefetch_related_objects()
- 90 return len(self._result_cache)
- 91
- Variables:
- self = repr() failed
- ------------------------------------------------------------------------
- File: /opt/noc/lib/python2.7/site-packages/django/contrib/admin/options.py (Line: 1233)
- Function: changelist_view
- 1226 action_form = None
- 1227
- 1228 selection_note_all = ungettext('%(total_count)s selected',
- 1229 'All %(total_count)s selected', cl.result_count)
- 1230
- 1231 context = {
- 1232 'module_name': force_unicode(opts.verbose_name_plural),
- 1233 ==> 'selection_note': _('0 of %(cnt)s selected') % {'cnt': len(cl.result_list)},
- 1234 'selection_note_all': selection_note_all % {'total_count': cl.result_count},
- 1235 'title': cl.title,
- 1236 'is_popup': cl.is_popup,
- 1237 'cl': cl,
- 1238 'media': media,
- 1239 'has_add_permission': self.has_add_permission(request),
- Variables:
- cl = <django.contrib.admin.views.main.ChangeList object at 0x5accfd0>
- action_failed = False
- selection_note_all = u'All %(total_count)s selected'
- ERROR_FLAG = 'e'
- media = <django.forms.widgets.Media object at 0x5b6c5d0>
- ChangeList = <class 'django.contrib.admin.views.main.ChangeList'>
- selected = []
- action_form = <django.contrib.admin.helpers.ActionForm object at 0x5b6c710>
- request =
- <WSGIRequest
- path:/sa/managedobject/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'__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/',
- 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'sessionid': '54ca91d00ae77f2f8428322174807555'},
- META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru',
- 'HTTP_CACHE_CONTROL': 'max-age=259200',
- 'HTTP_CONNECTION': 'close',
- '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/',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
- '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',
- 'PATH_INFO': u'/sa/managedobject/',
- 'QUERY_STRING': '',
- '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 0x2effb70>,
- 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- actions =
- {'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')}
- app_label = 'sa'
- self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x55d55d0>
- list_display =
- ['action_checkbox',
- 'name',
- <function object_status at 0x55c9410>,
- <function alarms at 0x55c9488>,
- <function profile at 0x55c9320>,
- 'object_profile',
- 'vrf',
- 'address',
- 'vc_domain',
- <function domain_activator at 0x55c9500>,
- 'description',
- 'repo_path',
- <function action_links at 0x5565f50>]
- list_display_links = ['name']
- extra_context =
- {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>}
- formset = None
- opts = <Options for ManagedObject>
- ------------------------------------------------------------------------
- File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 21)
- Function: bound_func
- 14 """
- 15 # 'func' is a function at the time it is passed to _dec, but will eventually
- 16 # be a method of the class it is defined it.
- 17 def _dec(func):
- 18 def _wrapper(self, *args, **kwargs):
- 19 @decorator
- 20 def bound_func(*args2, **kwargs2):
- 21 ==> return func(self, *args2, **kwargs2)
- 22 # bound_func has the signature that 'decorator' expects i.e. no
- 23 # 'self' argument, but it is a closure over self so it can call
- 24 # 'func' correctly.
- 25 return bound_func(*args, **kwargs)
- 26 # In case 'decorator' adds attributes to the function it decorates, we
- 27 # want to copy those. We don't have access to bound_func in this scope,
- Variables:
- args2 =
- (<WSGIRequest
- path:/sa/managedobject/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'__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/',
- 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'sessionid': '54ca91d00ae77f2f8428322174807555'},
- META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru',
- 'HTTP_CACHE_CONTROL': 'max-age=259200',
- 'HTTP_CONNECTION': 'close',
- '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/',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
- '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',
- 'PATH_INFO': u'/sa/managedobject/',
- 'QUERY_STRING': '',
- '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 0x2effb70>,
- 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>,
- {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>})
- func = <function changelist_view at 0x39f3b90>
- self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x55d55d0>
- kwargs2 = {}
- ------------------------------------------------------------------------
- File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 91)
- Function: _wrapped_view
- 84 if result is not None:
- 85 return result
- 86 if hasattr(middleware, 'process_view'):
- 87 result = middleware.process_view(request, view_func, args, kwargs)
- 88 if result is not None:
- 89 return result
- 90 try:
- 91 ==> response = view_func(request, *args, **kwargs)
- 92 except Exception, e:
- 93 if hasattr(middleware, 'process_exception'):
- 94 result = middleware.process_exception(request, e)
- 95 if result is not None:
- 96 return result
- 97 raise
- Variables:
- e =
- DatabaseError('column sa_managedobject.is_configuration_managed does not exist\nLINE 1: ...ct"."snmp_rw", "sa_managedobject"."vc_domain_id", "sa_manage...\n ^\n',)
- middleware = <django.middleware.csrf.CsrfViewMiddleware object at 0x39a1050>
- args =
- ({'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>},)
- request =
- <WSGIRequest
- path:/sa/managedobject/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'__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/',
- 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'sessionid': '54ca91d00ae77f2f8428322174807555'},
- META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru',
- 'HTTP_CACHE_CONTROL': 'max-age=259200',
- 'HTTP_CONNECTION': 'close',
- '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/',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
- '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',
- 'PATH_INFO': u'/sa/managedobject/',
- 'QUERY_STRING': '',
- '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 0x2effb70>,
- 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- result = None
- kwargs = {}
- view_func = <function bound_func at 0x5ac4e60>
- ------------------------------------------------------------------------
- File: /opt/noc/lib/python2.7/site-packages/django/utils/decorators.py (Line: 25)
- Function: _wrapper
- 18 def _wrapper(self, *args, **kwargs):
- 19 @decorator
- 20 def bound_func(*args2, **kwargs2):
- 21 return func(self, *args2, **kwargs2)
- 22 # bound_func has the signature that 'decorator' expects i.e. no
- 23 # 'self' argument, but it is a closure over self so it can call
- 24 # 'func' correctly.
- 25 ==> return bound_func(*args, **kwargs)
- 26 # In case 'decorator' adds attributes to the function it decorates, we
- 27 # want to copy those. We don't have access to bound_func in this scope,
- 28 # but we can cheat by using it on a dummy function.
- 29 @decorator
- 30 def dummy(*args, **kwargs):
- 31 pass
- Variables:
- self = <noc.sa.apps.managedobject.views.ManagedObjectAdmin object at 0x55d55d0>
- args =
- (<WSGIRequest
- path:/sa/managedobject/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'__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/',
- 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'sessionid': '54ca91d00ae77f2f8428322174807555'},
- META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru',
- 'HTTP_CACHE_CONTROL': 'max-age=259200',
- 'HTTP_CONNECTION': 'close',
- '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/',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
- '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',
- 'PATH_INFO': u'/sa/managedobject/',
- 'QUERY_STRING': '',
- '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 0x2effb70>,
- 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>,
- {'app': <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>})
- bound_func = <function bound_func at 0x5acbd70>
- func = <function changelist_view at 0x39f3b90>
- kwargs = {}
- decorator = <function csrf_protect at 0x39b2f50>
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/modelapplication.py (Line: 141)
- Function: view_changelist
- 134 self.model._meta.object_name.lower())
- 135
- 136 @view(url=r"^$", url_name="admin:%s_%s_changelist", access=HasPerm("change"),
- 137 menu=get_menu)
- 138 def view_changelist(self, request, extra_context=None):
- 139 """Display changelist"""
- 140 return self.admin.changelist_view(request,
- 141 ==> self.get_context(extra_context))
- 142
- 143 @view(url=r"^add/$", url_name="admin:%s_%s_add", access=HasPerm("add"))
- 144 def view_add(self, request, form_url="", extra_context=None):
- 145 """Display add form"""
- 146 return self.admin.add_view(
- 147 request,
- Variables:
- self =
- <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>
- extra_context = None
- request =
- <WSGIRequest
- path:/sa/managedobject/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'__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/',
- 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'sessionid': '54ca91d00ae77f2f8428322174807555'},
- META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru',
- 'HTTP_CACHE_CONTROL': 'max-age=259200',
- 'HTTP_CONNECTION': 'close',
- '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/',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
- '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',
- 'PATH_INFO': u'/sa/managedobject/',
- 'QUERY_STRING': '',
- '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 0x2effb70>,
- 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- ------------------------------------------------------------------------
- File: /opt/noc/lib/app/site.py (Line: 232)
- Function: inner
- 225 for k, v in request.POST.lists())
- 226 elif request.method == "GET":
- 227 a = dict((k, v[0] if len(v) == 1 else v)
- 228 for k, v in request.GET.lists())
- 229 logging.debug("API %s %s %s" % (request.method,
- 230 request.path, a))
- 231 # Call handler
- 232 ==> r = v(request, *args, **kwargs)
- 233 # Dump SQL statements
- 234 if self.log_sql_statements:
- 235 from django.db import connections
- 236 tsc = 0
- 237 sc = defaultdict(int)
- 238 for conn in connections.all():
- Variables:
- args = ()
- view_map =
- {'DELETE': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>>,
- 'GET': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>>,
- 'POST': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>>,
- 'PUT': <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>>}
- Form = <class 'django.forms.forms.Form'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x386ff10>
- v =
- <bound method ManagedObjectApplication.view_changelist of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>>
- request =
- <WSGIRequest
- path:/sa/managedobject/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'__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/',
- 'csrftoken': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'sessionid': '54ca91d00ae77f2f8428322174807555'},
- META:{'CSRF_COOKIE': 'cjd2KyWjVsBMOz83x70sm7ekdWQAYNVt',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'ru',
- 'HTTP_CACHE_CONTROL': 'max-age=259200',
- 'HTTP_CONNECTION': 'close',
- '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/',
- 'HTTP_HOST': '127.0.0.1:8000',
- 'HTTP_REFERER': 'http://noc.link-spb.ru/main/desktop/',
- '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',
- 'PATH_INFO': u'/sa/managedobject/',
- 'QUERY_STRING': '',
- '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 0x2effb70>,
- 'wsgi.input': <_io.BytesIO object at 0x5a9c0b0>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- to_log_api_call = False
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
- kwargs = {}
- app =
- <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x55d5590>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement