Guest User

Untitled

a guest
Jan 12th, 2016
83
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. UNHANDLED EXCEPTION (2016-01-11 23:31:09.069957)
  2. BRANCH: default TIP: d68c6d05fe02
  3. PROCESS: ./scripts/noc-web.py
  4. ERROR FINGERPRINT: cb91a2c2-0867-5938-a0d8-c56cf53efe95
  5. WORKING DIRECTORY: /opt/noc
  6. EXCEPTION: <class 'django.db.utils.IntegrityError'> null value in column "stop_time" violates not-null constraint
  7. ПОДРОБНОСТИ: Failing row contains (19380188, 26010, 197, Huawei.VRP.get_version, (dp1
  8. ., 2016-01-11 23:31:12.04694+03, 1, W, N., 120, null).
  9.  
  10. START OF TRACEBACK
  11. ------------------------------------------------------------------------
  12. File: lib/python2.7/site-packages/django/db/backends/postgresql_psycopg2/base.py (Line: 52)
  13. Function: execute
  14. 45 """
  15. 46
  16. 47 def __init__(self, cursor):
  17. 48 self.cursor = cursor
  18. 49
  19. 50 def execute(self, query, args=None):
  20. 51 try:
  21. 52 ==> return self.cursor.execute(query, args)
  22. 53 except Database.IntegrityError, e:
  23. 54 raise utils.IntegrityError, utils.IntegrityError(*tuple(e)), sys.exc_info()[2]
  24. 55 except Database.DatabaseError, e:
  25. 56 raise utils.DatabaseError, utils.DatabaseError(*tuple(e)), sys.exc_info()[2]
  26. 57
  27. 58 def executemany(self, query, args):
  28. Variables:
  29. query =
  30. '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"'
  31. self =
  32. <django.db.backends.postgresql_psycopg2.base.CursorWrapper object at 0x77191d0>
  33. args =
  34. (26010,
  35. 197,
  36. u'Huawei.VRP.get_version',
  37. '(dp1\n.',
  38. u'2016-01-11 23:31:12.046940',
  39. 1,
  40. 'W',
  41. 'N.',
  42. 120)
  43. e =
  44. 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',)
  45. ------------------------------------------------------------------------
  46. File: lib/python2.7/site-packages/django/db/models/sql/compiler.py (Line: 912)
  47. Function: execute_sql
  48. 905 ]
  49. 906
  50. 907 def execute_sql(self, return_id=False):
  51. 908 assert not (return_id and len(self.query.objs) != 1)
  52. 909 self.return_id = return_id
  53. 910 cursor = self.connection.cursor()
  54. 911 for sql, params in self.as_sql():
  55. 912 ==> cursor.execute(sql, params)
  56. 913 if not (return_id and cursor):
  57. 914 return
  58. 915 if self.connection.features.can_return_id_from_insert:
  59. 916 return self.connection.ops.fetch_returned_insert_id(cursor)
  60. 917 return self.connection.ops.last_insert_id(cursor,
  61. 918 self.query.model._meta.db_table, self.query.model._meta.pk.column)
  62. Variables:
  63. cursor = <django.db.backends.util.CursorWrapper object at 0x7719150>
  64. self = <django.db.models.sql.compiler.SQLInsertCompiler object at 0x7719310>
  65. return_id = True
  66. params =
  67. (26010,
  68. 197,
  69. u'Huawei.VRP.get_version',
  70. '(dp1\n.',
  71. u'2016-01-11 23:31:12.046940',
  72. 1,
  73. 'W',
  74. 'N.',
  75. 120)
  76. sql =
  77. '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"'
  78. ------------------------------------------------------------------------
  79. File: lib/python2.7/site-packages/django/db/models/query.py (Line: 1593)
  80. Function: insert_query
  81. 1586 """
  82. 1587 Inserts a new record for the given model. This provides an interface to
  83. 1588 the InsertQuery class and is how Model.save() is implemented. It is not
  84. 1589 part of the public API.
  85. 1590 """
  86. 1591 query = sql.InsertQuery(model)
  87. 1592 query.insert_values(fields, objs, raw=raw)
  88. 1593 ==> return query.get_compiler(using=using).execute_sql(return_id)
  89. 1594
  90. 1595
  91. 1596 def prefetch_related_objects(result_cache, related_lookups):
  92. 1597 """
  93. 1598 Helper function for prefetch_related functionality
  94. 1599
  95. Variables:
  96. objs = [<MapTask: New: 16-KZN-MBH0002-RSG01 Huawei.VRP.get_version>]
  97. fields =
  98. [<django.db.models.fields.related.ForeignKey: task>,
  99. <django.db.models.fields.related.ForeignKey: managed_object>,
  100. <django.db.models.fields.CharField: map_script>,
  101. <noc.lib.fields.PickledField: script_params>,
  102. <django.db.models.fields.DateTimeField: next_try>,
  103. <django.db.models.fields.IntegerField: retries_left>,
  104. <django.db.models.fields.CharField: status>,
  105. <noc.lib.fields.PickledField: script_result>,
  106. <django.db.models.fields.IntegerField: script_timeout>]
  107. return_id = True
  108. raw = False
  109. using = 'default'
  110. query = <django.db.models.sql.subqueries.InsertQuery object at 0x76f8490>
  111. model = <class 'noc.sa.models.maptask.MapTask'>
  112. ------------------------------------------------------------------------
  113. File: lib/python2.7/site-packages/django/db/models/manager.py (Line: 203)
  114. Function: _insert
  115. 196 def using(self, *args, **kwargs):
  116. 197 return self.get_query_set().using(*args, **kwargs)
  117. 198
  118. 199 def exists(self, *args, **kwargs):
  119. 200 return self.get_query_set().exists(*args, **kwargs)
  120. 201
  121. 202 def _insert(self, objs, fields, **kwargs):
  122. 203 ==> return insert_query(self.model, objs, fields, **kwargs)
  123. 204
  124. 205 def _update(self, values, **kwargs):
  125. 206 return self.get_query_set()._update(values, **kwargs)
  126. 207
  127. 208 def raw(self, raw_query, params=None, *args, **kwargs):
  128. 209 return RawQuerySet(raw_query=raw_query, model=self.model, params=params, using=self._db, *args, **kwargs)
  129. Variables:
  130. fields =
  131. [<django.db.models.fields.related.ForeignKey: task>,
  132. <django.db.models.fields.related.ForeignKey: managed_object>,
  133. <django.db.models.fields.CharField: map_script>,
  134. <noc.lib.fields.PickledField: script_params>,
  135. <django.db.models.fields.DateTimeField: next_try>,
  136. <django.db.models.fields.IntegerField: retries_left>,
  137. <django.db.models.fields.CharField: status>,
  138. <noc.lib.fields.PickledField: script_result>,
  139. <django.db.models.fields.IntegerField: script_timeout>]
  140. objs = [<MapTask: New: 16-KZN-MBH0002-RSG01 Huawei.VRP.get_version>]
  141. self = <django.db.models.manager.Manager object at 0x55e1990>
  142. kwargs = {'using': 'default', 'return_id': True, 'raw': False}
  143. ------------------------------------------------------------------------
  144. File: lib/python2.7/site-packages/django/db/models/base.py (Line: 551)
  145. Function: save_base
  146. 544 if force_update:
  147. 545 raise ValueError("Cannot force an update in save() with no primary key.")
  148. 546 fields = [f for f in fields if not isinstance(f, AutoField)]
  149. 547
  150. 548 record_exists = False
  151. 549
  152. 550 update_pk = bool(meta.has_auto_field and not pk_set)
  153. 551 ==> result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
  154. 552
  155. 553 if update_pk:
  156. 554 setattr(self, meta.pk.attname, result)
  157. 555 transaction.commit_unless_managed(using=using)
  158. 556
  159. 557 # Store the database on which the object was saved
  160. Variables:
  161. origin = <class 'noc.sa.models.maptask.MapTask'>
  162. non_pks =
  163. [<django.db.models.fields.related.ForeignKey: task>,
  164. <django.db.models.fields.related.ForeignKey: managed_object>,
  165. <django.db.models.fields.CharField: map_script>,
  166. <noc.lib.fields.PickledField: script_params>,
  167. <django.db.models.fields.DateTimeField: next_try>,
  168. <django.db.models.fields.IntegerField: retries_left>,
  169. <django.db.models.fields.CharField: status>,
  170. <noc.lib.fields.PickledField: script_result>,
  171. <django.db.models.fields.IntegerField: script_timeout>]
  172. f = <django.db.models.fields.IntegerField: script_timeout>
  173. fields =
  174. [<django.db.models.fields.related.ForeignKey: task>,
  175. <django.db.models.fields.related.ForeignKey: managed_object>,
  176. <django.db.models.fields.CharField: map_script>,
  177. <noc.lib.fields.PickledField: script_params>,
  178. <django.db.models.fields.DateTimeField: next_try>,
  179. <django.db.models.fields.IntegerField: retries_left>,
  180. <django.db.models.fields.CharField: status>,
  181. <noc.lib.fields.PickledField: script_result>,
  182. <django.db.models.fields.IntegerField: script_timeout>]
  183. self = <MapTask: New: 16-KZN-MBH0002-RSG01 Huawei.VRP.get_version>
  184. force_update = False
  185. force_insert = False
  186. raw = False
  187. manager = <django.db.models.manager.Manager object at 0x55e1990>
  188. meta = <Options for MapTask>
  189. pk_val = None
  190. using = 'default'
  191. pk_set = False
  192. org = None
  193. cls = <class 'noc.sa.models.maptask.MapTask'>
  194. update_pk = True
  195. record_exists = False
  196. ------------------------------------------------------------------------
  197. File: lib/python2.7/site-packages/django/db/models/base.py (Line: 463)
  198. Function: save
  199. 456
  200. 457 The 'force_insert' and 'force_update' parameters can be used to insist
  201. 458 that the "save" must be an SQL insert or update (or equivalent for
  202. 459 non-SQL backends), respectively. Normally, they should not be set.
  203. 460 """
  204. 461 if force_insert and force_update:
  205. 462 raise ValueError("Cannot force both insert and updating in model saving.")
  206. 463 ==> self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  207. 464
  208. 465 save.alters_data = True
  209. 466
  210. 467 def save_base(self, raw=False, cls=None, origin=None, force_insert=False,
  211. 468 force_update=False, using=None):
  212. 469 """
  213. Variables:
  214. using = None
  215. self = <MapTask: New: 16-KZN-MBH0002-RSG01 Huawei.VRP.get_version>
  216. force_update = False
  217. force_insert = False
  218. ------------------------------------------------------------------------
  219. File: sa/models/reducetask.py (Line: 264)
  220. Function: create_task
  221. 257 text="Activator pool '%s' is down" % o.activator.name)
  222. 258 else:
  223. 259 m.script_result = dict(code=ERR_INVALID_SCRIPT,
  224. 260 text="Invalid script %s" % msn)
  225. 261 elif status == "W":
  226. 262 # get effective timeout
  227. 263 m.script_timeout = o.profile.scripts[ms].get_timeout()
  228. 264 ==> m.save()
  229. 265 return r_task
  230. 266
  231. 267 ##
  232. 268 ## Perform reduce script and execute result
  233. 269 ##
  234. 270 def reduce(self):
  235. Variables:
  236. pool_timeouts =
  237. {1: [120,
  238. 120,
  239. 120,
  240. 120,
  241. 120,
  242. 120,
  243. 120,
  244. 120,
  245. 120,
  246. 120,
  247. 120,
  248. 120,
  249. 120,
  250. 120,
  251. 120,
  252. 120,
  253. 120,
  254. 120,
  255. 120,
  256. 120,
  257. 120,
  258. 120,
  259. 120,
  260. 120,
  261. 120,
  262. 120,
  263. 120,
  264. 120,
  265. 120,
  266. 120,
  267. 120,
  268. 120,
  269. 120,
  270. 120,
  271. 120,
  272. 120,
  273. 120,
  274. 120,
  275. 120,
  276. 120,
  277. 120,
  278. 120,
  279. 120,
  280. 120,
  281. 120,
  282. 120,
  283. 120,
  284. 120,
  285. 120,
  286. 120,
  287. 120,
  288. 120,
  289. 120,
  290. 120,
  291. 120,
  292. 120,
  293. 120,
  294. 120,
  295. 120,
  296. 120,
  297. 120,
  298. 120,
  299. 120,
  300. 120,
  301. 120,
  302. 120,
  303. 120,
  304. 120,
  305. 120,
  306. 120,
  307. 120,
  308. 120,
  309. 120,
  310. 120,
  311. 120,
  312. 120,
  313. 120,
  314. 120,
  315. 120,
  316. 120,
  317. 120,
  318. 120,
  319. 120,
  320. 120,
  321. 120,
  322. 120,
  323. 120,
  324. 120,
  325. 120,
  326. 120,
  327. 120,
  328. 120,
  329. 120,
  330. 120,
  331. 120,
  332. 120,
  333. 120,
  334. 120,
  335. 120,
  336. 120,
  337. 120,
  338. 120,
  339. 120,
  340. 120,
  341. 120,
  342. 120,
  343. 120,
  344. 120,
  345. 120,
  346. 120,
  347. 120,
  348. 120,
  349. 120,
  350. 120,
  351. 120,
  352. 120,
  353. 120,
  354. 120,
  355. 120,
  356. 120,
  357. 120,
  358. 120,
  359. 120,
  360. 120,
  361. 120,
  362. 120,
  363. 120,
  364. 120,
  365. 120,
  366. 120,
  367. 120,
  368. 120,
  369. 120,
  370. 120,
  371. 120,
  372. 120,
  373. 120,
  374. 120,
  375. 120,
  376. 120,
  377. 120,
  378. 120,
  379. 120,
  380. 120,
  381. 120,
  382. 120,
  383. 120,
  384. 120,
  385. 120,
  386. 120,
  387. 120,
  388. 120,
  389. 120,
  390. 120]}
  391. map_script_list = ['get_version']
  392. msp = [('get_version', {})]
  393. msn = u'Huawei.VRP.get_version'
  394. reduce_script_params = {}
  395. ts =
  396. [120,
  397. 120,
  398. 120,
  399. 120,
  400. 120,
  401. 120,
  402. 120,
  403. 120,
  404. 120,
  405. 120,
  406. 120,
  407. 120,
  408. 120,
  409. 120,
  410. 120,
  411. 120,
  412. 120,
  413. 120,
  414. 120,
  415. 120,
  416. 120,
  417. 120,
  418. 120,
  419. 120,
  420. 120,
  421. 120,
  422. 120,
  423. 120,
  424. 120,
  425. 120,
  426. 120,
  427. 120,
  428. 120,
  429. 120,
  430. 120,
  431. 120,
  432. 120,
  433. 120,
  434. 120,
  435. 120,
  436. 120,
  437. 120,
  438. 120,
  439. 120,
  440. 120,
  441. 120,
  442. 120,
  443. 120,
  444. 120,
  445. 120,
  446. 120,
  447. 120,
  448. 120,
  449. 120,
  450. 120,
  451. 120,
  452. 120,
  453. 120,
  454. 120,
  455. 120,
  456. 120,
  457. 120,
  458. 120,
  459. 120,
  460. 120,
  461. 120,
  462. 120,
  463. 120,
  464. 120,
  465. 120,
  466. 120,
  467. 120,
  468. 120,
  469. 120,
  470. 120,
  471. 120,
  472. 120,
  473. 120,
  474. 120,
  475. 120,
  476. 120,
  477. 120,
  478. 120,
  479. 120,
  480. 120,
  481. 120,
  482. 120,
  483. 120,
  484. 120,
  485. 120,
  486. 120,
  487. 120,
  488. 120,
  489. 120,
  490. 120,
  491. 120,
  492. 120,
  493. 120,
  494. 120,
  495. 120,
  496. 120,
  497. 120,
  498. 120,
  499. 120,
  500. 120,
  501. 120,
  502. 120,
  503. 120,
  504. 120,
  505. 120,
  506. 120,
  507. 120,
  508. 120,
  509. 120,
  510. 120,
  511. 120,
  512. 120,
  513. 120,
  514. 120,
  515. 120,
  516. 120,
  517. 120,
  518. 120,
  519. 120,
  520. 120,
  521. 120,
  522. 120,
  523. 120,
  524. 120,
  525. 120,
  526. 120,
  527. 120,
  528. 120,
  529. 120,
  530. 120,
  531. 120,
  532. 120,
  533. 120,
  534. 120,
  535. 120,
  536. 120,
  537. 120,
  538. 120,
  539. 120,
  540. 120,
  541. 120,
  542. 120,
  543. 120,
  544. 120,
  545. 120,
  546. 120,
  547. 120,
  548. 120,
  549. 120]
  550. ng = 4.0
  551. delay = 3
  552. pc = {1: {'max_scripts': 40, 'members': 4}}
  553. no_sessions = False
  554. ngs = defaultdict(<type 'int'>, {1: 4.0})
  555. map_script_params_list = [{}]
  556. cls = <class 'noc.sa.models.reducetask.ReduceTask'>
  557. status = 'W'
  558. timeout = 483
  559. r_task = <ReduceTask: 26010>
  560. start_time = datetime.datetime(2016, 1, 11, 23, 31, 9, 46940)
  561. a_id = 1
  562. objects =
  563. [<ManagedObject: YO-S3303-2>]
  564. pool = 1
  565. reduce_script =
  566. <bound method VersionInventoryApplication.reduce of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>
  567. c = {'max_scripts': 40, 'members': 4}
  568. map_script_params = {}
  569. get_timeout = <function get_timeout at 0x7841de8>
  570. m = <MapTask: New: 16-KZN-MBH0002-RSG01 Huawei.VRP.get_version>
  571. o = <ManagedObject: 16-KZN-MBH0002-RSG01>
  572. n = 1
  573. object_selector =
  574. [ <ManagedObject: YO-S3303-2>]
  575. p = {}
  576. s = <class 'noc.sa.profiles.Huawei.VRP.get_version.Script'>
  577. t = 480
  578. ms = 'get_version'
  579. x = <ManagedObject: YO-S3303-2>
  580. map_script = 'get_version'
  581. ------------------------------------------------------------------------
  582. File: lib/app/saapplication.py (Line: 110)
  583. Function: view_form
  584. 103 objects = [o for o in objects if o.has_access(request.user)]
  585. 104 task = ReduceTask.create_task(
  586. 105 object_selector=objects,
  587. 106 reduce_script=self.reduce_task,
  588. 107 reduce_script_params=reduce_script_params,
  589. 108 map_script=self.map_task,
  590. 109 map_script_params=map_script_params,
  591. 110 ==> timeout=self.timeout
  592. 111 )
  593. 112 return self.response_redirect("../../task/%d/" % task.id)
  594. 113 else:
  595. 114 if self.form:
  596. 115 # Display empty form if applicable
  597. 116 form = self.form()
  598. Variables:
  599. map_script_params = {}
  600. form = None
  601. reduce_script_params = {}
  602. selector_id = u'1'
  603. request =
  604. <WSGIRequest
  605. path:/sa/versioninventory/selector/1/,
  606. GET:<QueryDict: {}>,
  607. 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']}>,
  608. COOKIES:{'csrftoken': 'brGBwr7IW2r49gWCXnWkIa55zos4ZPwe',
  609. 'sessionid': 'd232a9ea955551467533e4aefc45b1b0'},
  610. META:{'CONTENT_LENGTH': '1995',
  611. 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
  612. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  613. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  614. 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
  615. 'HTTP_CONNECTION': 'close',
  616. 'HTTP_COOKIE': 'csrftoken=brGBwr7IW2r49gWCXnWkIa55zos4ZPwe; sessionid=d232a9ea955551467533e4aefc45b1b0',
  617. 'HTTP_DNT': '1',
  618. 'HTTP_HOST': '10.87.177.58',
  619. 'HTTP_REFERER': 'http://10.87.177.58/sa/versioninventory/selector/1/',
  620. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0',
  621. 'HTTP_X_SCHEME': 'http',
  622. 'PATH_INFO': u'/sa/versioninventory/selector/1/',
  623. 'QUERY_STRING': '',
  624. 'REMOTE_ADDR': '127.0.0.1',
  625. 'REQUEST_METHOD': 'POST',
  626. 'SCRIPT_NAME': u'',
  627. 'SERVER_NAME': '10.87.177.58',
  628. 'SERVER_PORT': '80',
  629. 'SERVER_PROTOCOL': 'HTTP/1.0',
  630. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x3beec90>,
  631. 'wsgi.input': <_io.BytesIO object at 0x77f4e30>,
  632. 'wsgi.multiprocess': True,
  633. 'wsgi.multithread': False,
  634. 'wsgi.run_once': False,
  635. 'wsgi.url_scheme': 'http',
  636. 'wsgi.version': (1, 0)}>
  637. o = <ManagedObject: YO-S3303-2>
  638. n = u'OBJ:186'
  639. objects =
  640. [<ManagedObject: YO-S3303-2>]
  641. selector = <ManagedObjectSelector: ALL>
  642. self =
  643. <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>
  644. ------------------------------------------------------------------------
  645. File: lib/app/site.py (Line: 248)
  646. Function: inner
  647. 241 a = dict((k, v[0] if len(v) == 1 else v)
  648. 242 for k, v in request.GET.lists())
  649. 243 app_logger.debug("API %s %s %s",
  650. 244 request.method, request.path, a)
  651. 245 # Call handler
  652. 246 v.__dict__["hits_metric"] += 1
  653. 247 with v.__dict__["time_metric"].timer():
  654. 248 ==> r = v(request, *args, **kwargs)
  655. 249 # Dump SQL statements
  656. 250 if self.log_sql_statements:
  657. 251 from django.db import connections
  658. 252 tsc = 0
  659. 253 sc = defaultdict(int)
  660. 254 for conn in connections.all():
  661. Variables:
  662. args = ()
  663. view_map =
  664. {'DELETE': <bound method VersionInventoryApplication.view_form of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>,
  665. 'GET': <bound method VersionInventoryApplication.view_form of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>,
  666. 'POST': <bound method VersionInventoryApplication.view_form of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>,
  667. 'PUT': <bound method VersionInventoryApplication.view_form of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>}
  668. Form = <class 'django.forms.forms.Form'>
  669. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  670. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  671. self = <noc.lib.app.site.Site object at 0x41ad190>
  672. v =
  673. <bound method VersionInventoryApplication.view_form of <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>>
  674. request =
  675. <WSGIRequest
  676. path:/sa/versioninventory/selector/1/,
  677. GET:<QueryDict: {}>,
  678. 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']}>,
  679. COOKIES:{'csrftoken': 'brGBwr7IW2r49gWCXnWkIa55zos4ZPwe',
  680. 'sessionid': 'd232a9ea955551467533e4aefc45b1b0'},
  681. META:{'CONTENT_LENGTH': '1995',
  682. 'CONTENT_TYPE': 'application/x-www-form-urlencoded',
  683. 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
  684. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
  685. 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.5',
  686. 'HTTP_CONNECTION': 'close',
  687. 'HTTP_COOKIE': 'csrftoken=brGBwr7IW2r49gWCXnWkIa55zos4ZPwe; sessionid=d232a9ea955551467533e4aefc45b1b0',
  688. 'HTTP_DNT': '1',
  689. 'HTTP_HOST': '10.87.177.58',
  690. 'HTTP_REFERER': 'http://10.87.177.58/sa/versioninventory/selector/1/',
  691. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0',
  692. 'HTTP_X_SCHEME': 'http',
  693. 'PATH_INFO': u'/sa/versioninventory/selector/1/',
  694. 'QUERY_STRING': '',
  695. 'REMOTE_ADDR': '127.0.0.1',
  696. 'REQUEST_METHOD': 'POST',
  697. 'SCRIPT_NAME': u'',
  698. 'SERVER_NAME': '10.87.177.58',
  699. 'SERVER_PORT': '80',
  700. 'SERVER_PROTOCOL': 'HTTP/1.0',
  701. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x3beec90>,
  702. 'wsgi.input': <_io.BytesIO object at 0x77f4e30>,
  703. 'wsgi.multiprocess': True,
  704. 'wsgi.multithread': False,
  705. 'wsgi.run_once': False,
  706. 'wsgi.url_scheme': 'http',
  707. 'wsgi.version': (1, 0)}>
  708. app_logger = <logging.Logger object at 0x6da38d0>
  709. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  710. to_log_api_call = False
  711. kwargs = {'selector_id': u'1'}
  712. nq = <function nq at 0x78417d0>
  713. app =
  714. <noc.sa.apps.versioninventory.views.VersionInventoryApplication object at 0x6da33d0>
  715. ------------------------------------------------------------------------
  716. END OF TRACEBACK
RAW Paste Data