Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2016-01-11 23:31:09.069957)
- BRANCH: default TIP: d68c6d05fe02
- PROCESS: ./scripts/noc-web.py
- ERROR FINGERPRINT: cb91a2c2-0867-5938-a0d8-c56cf53efe95
- WORKING DIRECTORY: /opt/noc
- EXCEPTION: <class 'django.db.utils.IntegrityError'> null value in column "stop_time" violates not-null constraint
- ПОДРОБНОСТИ: Failing row contains (19380188, 26010, 197, Huawei.VRP.get_version, (dp1
- ., 2016-01-11 23:31:12.04694+03, 1, W, N., 120, null).
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: 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 =
- 'INSERT INTO "sa_maptask" ("task_id", "managed_object_id", "map_script", "script_params", "next_try", "retries_left", "status", "script_result", "script_timeout") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "sa_maptask"."id"'
- self =
- <django.db.backends.postgresql_psycopg2.base.CursorWrapper object at 0x77191d0>
- args =
- (26010,
- 197,
- u'Huawei.VRP.get_version',
- '(dp1\n.',
- u'2016-01-11 23:31:12.046940',
- 1,
- 'W',
- 'N.',
- 120)
- e =
- IntegrityError('null value in column "stop_time" violates not-null constraint\n\xd0\x9f\xd0\x9e\xd0\x94\xd0\xa0\xd0\x9e\xd0\x91\xd0\x9d\xd0\x9e\xd0\xa1\xd0\xa2\xd0\x98: Failing row contains (19380188, 26010, 197, Huawei.VRP.get_version, (dp1\n., 2016-01-11 23:31:12.04694+03, 1, W, N., 120, null).\n',)
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/db/models/sql/compiler.py (Line: 912)
- Function: execute_sql
- 905 ]
- 906
- 907 def execute_sql(self, return_id=False):
- 908 assert not (return_id and len(self.query.objs) != 1)
- 909 self.return_id = return_id
- 910 cursor = self.connection.cursor()
- 911 for sql, params in self.as_sql():
- 912 ==> cursor.execute(sql, params)
- 913 if not (return_id and cursor):
- 914 return
- 915 if self.connection.features.can_return_id_from_insert:
- 916 return self.connection.ops.fetch_returned_insert_id(cursor)
- 917 return self.connection.ops.last_insert_id(cursor,
- 918 self.query.model._meta.db_table, self.query.model._meta.pk.column)
- Variables:
- cursor = <django.db.backends.util.CursorWrapper object at 0x7719150>
- self = <django.db.models.sql.compiler.SQLInsertCompiler object at 0x7719310>
- return_id = True
- params =
- (26010,
- 197,
- u'Huawei.VRP.get_version',
- '(dp1\n.',
- u'2016-01-11 23:31:12.046940',
- 1,
- 'W',
- 'N.',
- 120)
- sql =
- 'INSERT INTO "sa_maptask" ("task_id", "managed_object_id", "map_script", "script_params", "next_try", "retries_left", "status", "script_result", "script_timeout") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "sa_maptask"."id"'
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/db/models/query.py (Line: 1593)
- Function: insert_query
- 1586 """
- 1587 Inserts a new record for the given model. This provides an interface to
- 1588 the InsertQuery class and is how Model.save() is implemented. It is not
- 1589 part of the public API.
- 1590 """
- 1591 query = sql.InsertQuery(model)
- 1592 query.insert_values(fields, objs, raw=raw)
- 1593 ==> return query.get_compiler(using=using).execute_sql(return_id)
- 1594
- 1595
- 1596 def prefetch_related_objects(result_cache, related_lookups):
- 1597 """
- 1598 Helper function for prefetch_related functionality
- 1599
- Variables:
- objs = [<MapTask: New: 16-KZN-MBH0002-RSG01 Huawei.VRP.get_version>]
- fields =
- [<django.db.models.fields.related.ForeignKey: task>,
- <django.db.models.fields.related.ForeignKey: managed_object>,
- <django.db.models.fields.CharField: map_script>,
- <noc.lib.fields.PickledField: script_params>,
- <django.db.models.fields.DateTimeField: next_try>,
- <django.db.models.fields.IntegerField: retries_left>,
- <django.db.models.fields.CharField: status>,
- <noc.lib.fields.PickledField: script_result>,
- <django.db.models.fields.IntegerField: script_timeout>]
- return_id = True
- raw = False
- using = 'default'
- query = <django.db.models.sql.subqueries.InsertQuery object at 0x76f8490>
- model = <class 'noc.sa.models.maptask.MapTask'>
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/db/models/manager.py (Line: 203)
- Function: _insert
- 196 def using(self, *args, **kwargs):
- 197 return self.get_query_set().using(*args, **kwargs)
- 198
- 199 def exists(self, *args, **kwargs):
- 200 return self.get_query_set().exists(*args, **kwargs)
- 201
- 202 def _insert(self, objs, fields, **kwargs):
- 203 ==> return insert_query(self.model, objs, fields, **kwargs)
- 204
- 205 def _update(self, values, **kwargs):
- 206 return self.get_query_set()._update(values, **kwargs)
- 207
- 208 def raw(self, raw_query, params=None, *args, **kwargs):
- 209 return RawQuerySet(raw_query=raw_query, model=self.model, params=params, using=self._db, *args, **kwargs)
- Variables:
- fields =
- [<django.db.models.fields.related.ForeignKey: task>,
- <django.db.models.fields.related.ForeignKey: managed_object>,
- <django.db.models.fields.CharField: map_script>,
- <noc.lib.fields.PickledField: script_params>,
- <django.db.models.fields.DateTimeField: next_try>,
- <django.db.models.fields.IntegerField: retries_left>,
- <django.db.models.fields.CharField: status>,
- <noc.lib.fields.PickledField: script_result>,
- <django.db.models.fields.IntegerField: script_timeout>]
- objs = [<MapTask: New: 16-KZN-MBH0002-RSG01 Huawei.VRP.get_version>]
- self = <django.db.models.manager.Manager object at 0x55e1990>
- kwargs = {'using': 'default', 'return_id': True, 'raw': False}
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/db/models/base.py (Line: 551)
- Function: save_base
- 544 if force_update:
- 545 raise ValueError("Cannot force an update in save() with no primary key.")
- 546 fields = [f for f in fields if not isinstance(f, AutoField)]
- 547
- 548 record_exists = False
- 549
- 550 update_pk = bool(meta.has_auto_field and not pk_set)
- 551 ==> result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
- 552
- 553 if update_pk:
- 554 setattr(self, meta.pk.attname, result)
- 555 transaction.commit_unless_managed(using=using)
- 556
- 557 # Store the database on which the object was saved
- Variables:
- origin = <class 'noc.sa.models.maptask.MapTask'>
- non_pks =
- [<django.db.models.fields.related.ForeignKey: task>,
- <django.db.models.fields.related.ForeignKey: managed_object>,
- <django.db.models.fields.CharField: map_script>,
- <noc.lib.fields.PickledField: script_params>,
- <django.db.models.fields.DateTimeField: next_try>,
- <django.db.models.fields.IntegerField: retries_left>,
- <django.db.models.fields.CharField: status>,
- <noc.lib.fields.PickledField: script_result>,
- <django.db.models.fields.IntegerField: script_timeout>]
- f = <django.db.models.fields.IntegerField: script_timeout>
- fields =
- [<django.db.models.fields.related.ForeignKey: task>,
- <django.db.models.fields.related.ForeignKey: managed_object>,
- <django.db.models.fields.CharField: map_script>,
- <noc.lib.fields.PickledField: script_params>,
- <django.db.models.fields.DateTimeField: next_try>,
- <django.db.models.fields.IntegerField: retries_left>,
- <django.db.models.fields.CharField: status>,
- <noc.lib.fields.PickledField: script_result>,
- <django.db.models.fields.IntegerField: script_timeout>]
- self = <MapTask: New: 16-KZN-MBH0002-RSG01 Huawei.VRP.get_version>
- force_update = False
- force_insert = False
- raw = False
- manager = <django.db.models.manager.Manager object at 0x55e1990>
- meta = <Options for MapTask>
- pk_val = None
- using = 'default'
- pk_set = False
- org = None
- cls = <class 'noc.sa.models.maptask.MapTask'>
- update_pk = True
- record_exists = False
- ------------------------------------------------------------------------
- File: lib/python2.7/site-packages/django/db/models/base.py (Line: 463)
- Function: save
- 456
- 457 The 'force_insert' and 'force_update' parameters can be used to insist
- 458 that the "save" must be an SQL insert or update (or equivalent for
- 459 non-SQL backends), respectively. Normally, they should not be set.
- 460 """
- 461 if force_insert and force_update:
- 462 raise ValueError("Cannot force both insert and updating in model saving.")
- 463 ==> self.save_base(using=using, force_insert=force_insert, force_update=force_update)
- 464
- 465 save.alters_data = True
- 466
- 467 def save_base(self, raw=False, cls=None, origin=None, force_insert=False,
- 468 force_update=False, using=None):
- 469 """
- Variables:
- using = None
- self = <MapTask: New: 16-KZN-MBH0002-RSG01 Huawei.VRP.get_version>
- force_update = False
- force_insert = False
- ------------------------------------------------------------------------
- File: sa/models/reducetask.py (Line: 264)
- Function: create_task
- 257 text="Activator pool '%s' is down" % o.activator.name)
- 258 else:
- 259 m.script_result = dict(code=ERR_INVALID_SCRIPT,
- 260 text="Invalid script %s" % msn)
- 261 elif status == "W":
- 262 # get effective timeout
- 263 m.script_timeout = o.profile.scripts[ms].get_timeout()
- 264 ==> m.save()
- 265 return r_task
- 266
- 267 ##
- 268 ## Perform reduce script and execute result
- 269 ##
- 270 def reduce(self):
- Variables:
- pool_timeouts =
- {1: [120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120]}
- map_script_list = ['get_version']
- msp = [('get_version', {})]
- msn = u'Huawei.VRP.get_version'
- reduce_script_params = {}
- ts =
- [120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120,
- 120]
- ng = 4.0
- delay = 3
- pc = {1: {'max_scripts': 40, 'members': 4}}
- no_sessions = False
- ngs = defaultdict(<type 'int'>, {1: 4.0})
- map_script_params_list = [{}]
- cls = <class 'noc.sa.models.reducetask.ReduceTask'>
- status = 'W'
- timeout = 483
- r_task = <ReduceTask: 26010>
- start_time = datetime.datetime(2016, 1, 11, 23, 31, 9, 46940)
- a_id = 1
- objects =
- [<ManagedObject: YO-S3303-2>]
- pool = 1
- reduce_script =
- <bound method VersionInventoryApplication.reduce of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>
- c = {'max_scripts': 40, 'members': 4}
- map_script_params = {}
- get_timeout = <function get_timeout at 0x7841de8>
- m = <MapTask: New: 16-KZN-MBH0002-RSG01 Huawei.VRP.get_version>
- o = <ManagedObject: 16-KZN-MBH0002-RSG01>
- n = 1
- object_selector =
- [ <ManagedObject: YO-S3303-2>]
- p = {}
- s = <class 'noc.sa.profiles.Huawei.VRP.get_version.Script'>
- t = 480
- ms = 'get_version'
- x = <ManagedObject: YO-S3303-2>
- map_script = 'get_version'
- ------------------------------------------------------------------------
- File: lib/app/saapplication.py (Line: 110)
- Function: view_form
- 103 objects = [o for o in objects if o.has_access(request.user)]
- 104 task = ReduceTask.create_task(
- 105 object_selector=objects,
- 106 reduce_script=self.reduce_task,
- 107 reduce_script_params=reduce_script_params,
- 108 map_script=self.map_task,
- 109 map_script_params=map_script_params,
- 110 ==> timeout=self.timeout
- 111 )
- 112 return self.response_redirect("../../task/%d/" % task.id)
- 113 else:
- 114 if self.form:
- 115 # Display empty form if applicable
- 116 form = self.form()
- Variables:
- map_script_params = {}
- form = None
- reduce_script_params = {}
- selector_id = u'1'
- request =
- <WSGIRequest
- path:/sa/versioninventory/selector/1/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'OBJ:185': [u'on'], u'OBJ:261': [u'on'], u'OBJ:279': [u'on'], u'OBJ:278': [u'on'], u'OBJ:271': [u'on'], u'OBJ:270': [u'on'], u'OBJ:272': [u'on'], u'OBJ:275': [u'on'], u'OBJ:274': [u'on'], u'OBJ:277': [u'on'], u'OBJ:276': [u'on'], u'OBJ:157': [u'on'], u'OBJ:178': [u'on'], u'OBJ:179': [u'on'], u'OBJ:176': [u'on'], u'OBJ:177': [u'on'], u'OBJ:174': [u'on'], u'OBJ:175': [u'on'], u'OBJ:172': [u'on'], u'OBJ:173': [u'on'], u'OBJ:170': [u'on'], u'OBJ:171': [u'on'], u'OBJ:266': [u'on'], u'OBJ:267': [u'on'], u'OBJ:264': [u'on'], u'OBJ:265': [u'on'], u'OBJ:262': [u'on'], u'OBJ:263': [u'on'], u'OBJ:260': [u'on'], u'OBJ:184': [u'on'], u'OBJ:189': [u'on'], u'OBJ:188': [u'on'], u'OBJ:268': [u'on'], u'OBJ:269': [u'on'], u'OBJ:304': [u'on'], u'OBJ:190': [u'on'], u'OBJ:191': [u'on'], u'OBJ:211': [u'on'], u'OBJ:193': [u'on'], u'OBJ:217': [u'on'], u'OBJ:216': [u'on'], u'OBJ:215': [u'on'], u'OBJ:197': [u'on'], u'OBJ:198': [u'on'], u'OBJ:199': [u'on'], u'OBJ:219': [u'on'], u'OBJ:218': [u'on'], u'OBJ:299': [u'on'], u'OBJ:298': [u'on'], u'OBJ:293': [u'on'], u'OBJ:292': [u'on'], u'OBJ:291': [u'on'], u'OBJ:290': [u'on'], u'OBJ:297': [u'on'], u'OBJ:296': [u'on'], u'OBJ:295': [u'on'], u'OBJ:294': [u'on'], u'OBJ:200': [u'on'], u'OBJ:201': [u'on'], u'OBJ:202': [u'on'], u'OBJ:203': [u'on'], u'OBJ:204': [u'on'], u'OBJ:205': [u'on'], u'OBJ:206': [u'on'], u'OBJ:207': [u'on'], u'OBJ:208': [u'on'], u'OBJ:209': [u'on'], u'OBJ:289': [u'on'], u'OBJ:325': [u'on'], u'OBJ:324': [u'on'], u'OBJ:323': [u'on'], u'OBJ:322': [u'on'], u'OBJ:321': [u'on'], u'OBJ:320': [u'on'], u'OBJ:8': [u'on'], u'OBJ:9': [u'on'], u'OBJ:280': [u'on'], u'OBJ:281': [u'on'], u'OBJ:282': [u'on'], u'OBJ:283': [u'on'], u'OBJ:284': [u'on'], u'OBJ:285': [u'on'], u'OBJ:286': [u'on'], u'OBJ:287': [u'on'], u'OBJ:235': [u'on'], u'OBJ:234': [u'on'], u'OBJ:237': [u'on'], u'OBJ:236': [u'on'], u'OBJ:231': [u'on'], u'OBJ:230': [u'on'], u'OBJ:233': [u'on'], u'OBJ:232': [u'on'], u'OBJ:187': [u'on'], u'OBJ:213': [u'on'], u'OBJ:228': [u'on'], u'OBJ:229': [u'on'], u'OBJ:222': [u'on'], u'OBJ:223': [u'on'], u'OBJ:220': [u'on'], u'OBJ:221': [u'on'], u'OBJ:226': [u'on'], u'OBJ:227': [u'on'], u'OBJ:224': [u'on'], u'OBJ:225': [u'on'], u'OBJ:309': [u'on'], u'OBJ:308': [u'on'], u'OBJ:212': [u'on'], u'OBJ:301': [u'on'], u'OBJ:300': [u'on'], u'OBJ:303': [u'on'], u'OBJ:302': [u'on'], u'OBJ:305': [u'on'], u'OBJ:192': [u'on'], u'OBJ:307': [u'on'], u'OBJ:306': [u'on'], u'OBJ:210': [u'on'], u'OBJ:194': [u'on'], u'OBJ:195': [u'on'], u'OBJ:196': [u'on'], u'OBJ:214': [u'on'], u'OBJ:318': [u'on'], u'OBJ:319': [u'on'], u'OBJ:288': [u'on'], u'OBJ:259': [u'on'], u'OBJ:258': [u'on'], u'OBJ:257': [u'on'], u'OBJ:256': [u'on'], u'OBJ:255': [u'on'], u'OBJ:254': [u'on'], u'OBJ:253': [u'on'], u'OBJ:252': [u'on'], u'OBJ:251': [u'on'], u'OBJ:250': [u'on'], u'OBJ:155': [u'on'], u'OBJ:156': [u'on'], u'OBJ:162': [u'on'], u'OBJ:158': [u'on'], u'OBJ:159': [u'on'], u'OBJ:12': [u'on'], u'OBJ:13': [u'on'], u'OBJ:183': [u'on'], u'OBJ:182': [u'on'], u'OBJ:181': [u'on'], u'OBJ:161': [u'on'], u'OBJ:160': [u'on'], u'OBJ:163': [u'on'], u'OBJ:180': [u'on'], u'OBJ:165': [u'on'], u'OBJ:164': [u'on'], u'OBJ:167': [u'on'], u'OBJ:166': [u'on'], u'OBJ:169': [u'on'], u'OBJ:168': [u'on'], u'OBJ:186': [u'on']}>,
- COOKIES:{'csrftoken': 'brGBwr7IW2r49gWCXnWkIa55zos4ZPwe',
- 'sessionid': 'd232a9ea955551467533e4aefc45b1b0'},
- META:{'CONTENT_LENGTH': '1995',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=brGBwr7IW2r49gWCXnWkIa55zos4ZPwe; sessionid=d232a9ea955551467533e4aefc45b1b0',
- 'HTTP_DNT': '1',
- 'HTTP_HOST': '10.87.177.58',
- 'HTTP_REFERER': 'http://10.87.177.58/sa/versioninventory/selector/1/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/sa/versioninventory/selector/1/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.87.177.58',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x3beec90>,
- 'wsgi.input': <_io.BytesIO object at 0x77f4e30>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- o = <ManagedObject: YO-S3303-2>
- n = u'OBJ:186'
- objects =
- [<ManagedObject: YO-S3303-2>]
- selector = <ManagedObjectSelector: ALL>
- self =
- <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>
- ------------------------------------------------------------------------
- File: lib/app/site.py (Line: 248)
- Function: inner
- 241 a = dict((k, v[0] if len(v) == 1 else v)
- 242 for k, v in request.GET.lists())
- 243 app_logger.debug("API %s %s %s",
- 244 request.method, request.path, a)
- 245 # Call handler
- 246 v.__dict__["hits_metric"] += 1
- 247 with v.__dict__["time_metric"].timer():
- 248 ==> r = v(request, *args, **kwargs)
- 249 # Dump SQL statements
- 250 if self.log_sql_statements:
- 251 from django.db import connections
- 252 tsc = 0
- 253 sc = defaultdict(int)
- 254 for conn in connections.all():
- Variables:
- args = ()
- view_map =
- {'DELETE': <bound method VersionInventoryApplication.view_form of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>,
- 'GET': <bound method VersionInventoryApplication.view_form of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>,
- 'POST': <bound method VersionInventoryApplication.view_form of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>,
- 'PUT': <bound method VersionInventoryApplication.view_form of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>}
- Form = <class 'django.forms.forms.Form'>
- PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
- DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
- self = <noc.lib.app.site.Site object at 0x41ad190>
- v =
- <bound method VersionInventoryApplication.view_form of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>
- request =
- <WSGIRequest
- path:/sa/versioninventory/selector/1/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {u'OBJ:185': [u'on'], u'OBJ:261': [u'on'], u'OBJ:279': [u'on'], u'OBJ:278': [u'on'], u'OBJ:271': [u'on'], u'OBJ:270': [u'on'], u'OBJ:272': [u'on'], u'OBJ:275': [u'on'], u'OBJ:274': [u'on'], u'OBJ:277': [u'on'], u'OBJ:276': [u'on'], u'OBJ:157': [u'on'], u'OBJ:178': [u'on'], u'OBJ:179': [u'on'], u'OBJ:176': [u'on'], u'OBJ:177': [u'on'], u'OBJ:174': [u'on'], u'OBJ:175': [u'on'], u'OBJ:172': [u'on'], u'OBJ:173': [u'on'], u'OBJ:170': [u'on'], u'OBJ:171': [u'on'], u'OBJ:266': [u'on'], u'OBJ:267': [u'on'], u'OBJ:264': [u'on'], u'OBJ:265': [u'on'], u'OBJ:262': [u'on'], u'OBJ:263': [u'on'], u'OBJ:260': [u'on'], u'OBJ:184': [u'on'], u'OBJ:189': [u'on'], u'OBJ:188': [u'on'], u'OBJ:268': [u'on'], u'OBJ:269': [u'on'], u'OBJ:304': [u'on'], u'OBJ:190': [u'on'], u'OBJ:191': [u'on'], u'OBJ:211': [u'on'], u'OBJ:193': [u'on'], u'OBJ:217': [u'on'], u'OBJ:216': [u'on'], u'OBJ:215': [u'on'], u'OBJ:197': [u'on'], u'OBJ:198': [u'on'], u'OBJ:199': [u'on'], u'OBJ:219': [u'on'], u'OBJ:218': [u'on'], u'OBJ:299': [u'on'], u'OBJ:298': [u'on'], u'OBJ:293': [u'on'], u'OBJ:292': [u'on'], u'OBJ:291': [u'on'], u'OBJ:290': [u'on'], u'OBJ:297': [u'on'], u'OBJ:296': [u'on'], u'OBJ:295': [u'on'], u'OBJ:294': [u'on'], u'OBJ:200': [u'on'], u'OBJ:201': [u'on'], u'OBJ:202': [u'on'], u'OBJ:203': [u'on'], u'OBJ:204': [u'on'], u'OBJ:205': [u'on'], u'OBJ:206': [u'on'], u'OBJ:207': [u'on'], u'OBJ:208': [u'on'], u'OBJ:209': [u'on'], u'OBJ:289': [u'on'], u'OBJ:325': [u'on'], u'OBJ:324': [u'on'], u'OBJ:323': [u'on'], u'OBJ:322': [u'on'], u'OBJ:321': [u'on'], u'OBJ:320': [u'on'], u'OBJ:8': [u'on'], u'OBJ:9': [u'on'], u'OBJ:280': [u'on'], u'OBJ:281': [u'on'], u'OBJ:282': [u'on'], u'OBJ:283': [u'on'], u'OBJ:284': [u'on'], u'OBJ:285': [u'on'], u'OBJ:286': [u'on'], u'OBJ:287': [u'on'], u'OBJ:235': [u'on'], u'OBJ:234': [u'on'], u'OBJ:237': [u'on'], u'OBJ:236': [u'on'], u'OBJ:231': [u'on'], u'OBJ:230': [u'on'], u'OBJ:233': [u'on'], u'OBJ:232': [u'on'], u'OBJ:187': [u'on'], u'OBJ:213': [u'on'], u'OBJ:228': [u'on'], u'OBJ:229': [u'on'], u'OBJ:222': [u'on'], u'OBJ:223': [u'on'], u'OBJ:220': [u'on'], u'OBJ:221': [u'on'], u'OBJ:226': [u'on'], u'OBJ:227': [u'on'], u'OBJ:224': [u'on'], u'OBJ:225': [u'on'], u'OBJ:309': [u'on'], u'OBJ:308': [u'on'], u'OBJ:212': [u'on'], u'OBJ:301': [u'on'], u'OBJ:300': [u'on'], u'OBJ:303': [u'on'], u'OBJ:302': [u'on'], u'OBJ:305': [u'on'], u'OBJ:192': [u'on'], u'OBJ:307': [u'on'], u'OBJ:306': [u'on'], u'OBJ:210': [u'on'], u'OBJ:194': [u'on'], u'OBJ:195': [u'on'], u'OBJ:196': [u'on'], u'OBJ:214': [u'on'], u'OBJ:318': [u'on'], u'OBJ:319': [u'on'], u'OBJ:288': [u'on'], u'OBJ:259': [u'on'], u'OBJ:258': [u'on'], u'OBJ:257': [u'on'], u'OBJ:256': [u'on'], u'OBJ:255': [u'on'], u'OBJ:254': [u'on'], u'OBJ:253': [u'on'], u'OBJ:252': [u'on'], u'OBJ:251': [u'on'], u'OBJ:250': [u'on'], u'OBJ:155': [u'on'], u'OBJ:156': [u'on'], u'OBJ:162': [u'on'], u'OBJ:158': [u'on'], u'OBJ:159': [u'on'], u'OBJ:12': [u'on'], u'OBJ:13': [u'on'], u'OBJ:183': [u'on'], u'OBJ:182': [u'on'], u'OBJ:181': [u'on'], u'OBJ:161': [u'on'], u'OBJ:160': [u'on'], u'OBJ:163': [u'on'], u'OBJ:180': [u'on'], u'OBJ:165': [u'on'], u'OBJ:164': [u'on'], u'OBJ:167': [u'on'], u'OBJ:166': [u'on'], u'OBJ:169': [u'on'], u'OBJ:168': [u'on'], u'OBJ:186': [u'on']}>,
- COOKIES:{'csrftoken': 'brGBwr7IW2r49gWCXnWkIa55zos4ZPwe',
- 'sessionid': 'd232a9ea955551467533e4aefc45b1b0'},
- META:{'CONTENT_LENGTH': '1995',
- 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
- 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
- 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'csrftoken=brGBwr7IW2r49gWCXnWkIa55zos4ZPwe; sessionid=d232a9ea955551467533e4aefc45b1b0',
- 'HTTP_DNT': '1',
- 'HTTP_HOST': '10.87.177.58',
- 'HTTP_REFERER': 'http://10.87.177.58/sa/versioninventory/selector/1/',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/sa/versioninventory/selector/1/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'POST',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.87.177.58',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x3beec90>,
- 'wsgi.input': <_io.BytesIO object at 0x77f4e30>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- app_logger = <logging.Logger object at 0x6da38d0>
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- to_log_api_call = False
- kwargs = {'selector_id': u'1'}
- nq = <function nq at 0x78417d0>
- app =
- <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement