Advertisement
Guest User

Untitled

a guest
Jul 15th, 2015
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.91 KB | None | 0 0
  1. 2015-07-15 11:40:03,978 [sa.managedobject] UNHANDLED EXCEPTION (2015-07-15 11:40:03.768607)
  2. BRANCH: develop TIP: abd6a2989d7a
  3. PROCESS: ./scripts/noc-web.py
  4. ERROR FINGERPRINT: a6afb954-01b3-5c3c-ade2-09ea709b7640
  5. WORKING DIRECTORY: /opt/noc
  6. EXCEPTION: <class 'noc.inv.models.networksegment.DoesNotExist'> NetworkSegment matching query does not exist.
  7. START OF TRACEBACK
  8. ------------------------------------------------------------------------
  9. File: lib/python2.6/site-packages/mongoengine/queryset/base.py (Line: 239)
  10. Function: get
  11. 232 queryset = queryset.filter(*q_objs, **query)
  12. 233
  13. 234 try:
  14. 235 result = queryset.next()
  15. 236 except StopIteration:
  16. 237 msg = ("%s matching query does not exist."
  17. 238 % queryset._document._class_name)
  18. 239 ==> raise queryset._document.DoesNotExist(msg)
  19. 240 try:
  20. 241 queryset.next()
  21. 242 except StopIteration:
  22. 243 return result
  23. 244
  24. 245 queryset.rewind()
  25. Variables:
  26. msg = 'NetworkSegment matching query does not exist.'
  27. query = {'id': u'55a51f647e85c97402201f32'}
  28. self = [<NetworkSegment: ALL>]
  29. queryset = []
  30. q_objs = ()
  31. ------------------------------------------------------------------------
  32. File: lib/fields.py (Line: 318)
  33. Function: to_python
  34. 311 def db_type(self, connection):
  35. 312 return "CHAR(24)"
  36. 313
  37. 314 def to_python(self, value):
  38. 315 if value is None:
  39. 316 return None
  40. 317 else:
  41. 318 ==> return self.document.objects.get(id=value)
  42. 319
  43. 320 def get_prep_value(self, value):
  44. 321 if value is None:
  45. 322 return None
  46. 323 elif isinstance(value, basestring):
  47. 324 return value
  48. Variables:
  49. self = <noc.lib.fields.DocumentReferenceField: segment>
  50. value = u'55a51f647e85c97402201f32'
  51. ------------------------------------------------------------------------
  52. File: lib/python2.6/site-packages/django/db/models/fields/subclassing.py (Line: 34)
  53. Function: __set__
  54. 27
  55. 28 def __get__(self, obj, type=None):
  56. 29 if obj is None:
  57. 30 raise AttributeError('Can only be accessed via an instance.')
  58. 31 return obj.__dict__[self.field.name]
  59. 32
  60. 33 def __set__(self, obj, value):
  61. 34 ==> obj.__dict__[self.field.name] = self.field.to_python(value)
  62. 35
  63. 36 def make_contrib(superclass, func=None):
  64. 37 """
  65. 38 Returns a suitable contribute_to_class() method for the Field subclass.
  66. 39
  67. 40 If 'func' is passed in, it is the existing contribute_to_class() method on
  68. Variables:
  69. self = <django.db.models.fields.subclassing.Creator object at 0x4c1aa50>
  70. obj = <ManagedObject: 6509-yla-gts3>
  71. value = u'55a51f647e85c97402201f32'
  72. ------------------------------------------------------------------------
  73. File: lib/python2.6/site-packages/django/db/models/base.py (Line: 300)
  74. Function: __init__
  75. 293 fields_iter = iter(self._meta.fields)
  76. 294 if not kwargs:
  77. 295 # The ordering of the izip calls matter - izip throws StopIteration
  78. 296 # when an iter throws it. So if the first iter throws it, the second
  79. 297 # is *not* consumed. We rely on this, so don't change the order
  80. 298 # without changing the logic.
  81. 299 for val, field in izip(args, fields_iter):
  82. 300 ==> setattr(self, field.attname, val)
  83. 301 else:
  84. 302 # Slower, kwargs-ready version.
  85. 303 for val, field in izip(args, fields_iter):
  86. 304 setattr(self, field.attname, val)
  87. 305 kwargs.pop(field.name, None)
  88. 306 # Maintain compatibility with existing calls.
  89. Variables:
  90. fields_iter = <listiterator object at 0x76a9610>
  91. val = u'55a51f647e85c97402201f32'
  92. args_len = 32
  93. self = <ManagedObject: 6509-yla-gts3>
  94. args =
  95. (214,
  96. u'6509-yla-gts3',
  97. True,
  98. 2,
  99. u'55a51f647e85c97402201f32',
  100. 1,
  101. None,
  102. u'Cisco.IOS',
  103. 6,
  104. None,
  105. None,
  106. 0,
  107. u'10.200.200.4',
  108. 0,
  109. u'+km',
  110. u'gjikbdctyf[eq',
  111. u'rere:tyth',
  112. u'6509-yla-gts3',
  113. '10.200.200.4',
  114. u'public',
  115. u'public',
  116. None,
  117. None,
  118. 1,
  119. None,
  120. None,
  121. u'Cisco/layer_3_switch',
  122. None,
  123. None,
  124. None,
  125. 0,
  126. ['cisco', 'yoshkar-ola'])
  127. field = <noc.lib.fields.DocumentReferenceField: segment>
  128. kwargs = {}
  129. ------------------------------------------------------------------------
  130. File: sa/models/managedobject.py (Line: 226)
  131. Function: __init__
  132. 219 if not a:
  133. 220 raise AttributeError(name)
  134. 221 cw = ManagedObject.ActionsProxy.CallWrapper(self._object, name, a)
  135. 222 self._cache[name] = cw
  136. 223 return cw
  137. 224
  138. 225 def __init__(self, *args, **kwargs):
  139. 226 ==> super(ManagedObject, self).__init__(*args, **kwargs)
  140. 227 self.scripts = ManagedObject.ScriptsProxy(self)
  141. 228 self.actions = ManagedObject.ActionsProxy(self)
  142. 229
  143. 230 def __unicode__(self):
  144. 231 return self.name
  145. 232
  146. Variables:
  147. self = <ManagedObject: 6509-yla-gts3>
  148. args =
  149. (214,
  150. u'6509-yla-gts3',
  151. True,
  152. 2,
  153. u'55a51f647e85c97402201f32',
  154. 1,
  155. None,
  156. u'Cisco.IOS',
  157. 6,
  158. None,
  159. None,
  160. 0,
  161. u'10.200.200.4',
  162. 0,
  163. u'+km',
  164. u'gjikbdctyf[eq',
  165. u'rere:tyth',
  166. u'6509-yla-gts3',
  167. '10.200.200.4',
  168. u'public',
  169. u'public',
  170. None,
  171. None,
  172. 1,
  173. None,
  174. None,
  175. u'Cisco/layer_3_switch',
  176. None,
  177. None,
  178. None,
  179. 0,
  180. ['cisco', 'yoshkar-ola'])
  181. kwargs = {}
  182. ------------------------------------------------------------------------
  183. File: lib/python2.6/site-packages/django/db/models/query.py (Line: 1388)
  184. Function: get_cached_row
  185. 1381 # Otherwise, construct the related object.
  186. 1382 if fields == (None,) * field_count:
  187. 1383 obj = None
  188. 1384 else:
  189. 1385 if field_names:
  190. 1386 obj = klass(**dict(zip(field_names, fields)))
  191. 1387 else:
  192. 1388 ==> obj = klass(*fields)
  193. 1389
  194. 1390 # If an object was retrieved, set the database state.
  195. 1391 if obj:
  196. 1392 obj._state.db = using
  197. 1393 obj._state.adding = False
  198. 1394
  199. Variables:
  200. klass_info =
  201. (<class 'noc.sa.models.managedobject.ManagedObject'>,
  202. (),
  203. 32,
  204. [(<django.db.models.fields.related.ForeignKey: administrative_domain>,
  205. (<class 'noc.sa.models.administrativedomain.AdministrativeDomain'>,
  206. (),
  207. 3,
  208. [],
  209. [])),
  210. (<django.db.models.fields.related.ForeignKey: activator>,
  211. (<class 'noc.sa.models.activator.Activator'>,
  212. (),
  213. 9,
  214. [(<django.db.models.fields.related.ForeignKey: shard>,
  215. (<class 'noc.main.models.Shard'>, (), 4, [], [])),
  216. (<django.db.models.fields.related.ForeignKey: prefix_table>,
  217. (<class 'noc.main.models.prefixtable.PrefixTable'>, (), 3, [], []))],
  218. [])),
  219. (<django.db.models.fields.related.ForeignKey: object_profile>,
  220. (<class 'noc.sa.models.managedobjectprofile.ManagedObjectProfile'>,
  221. (),
  222. 73,
  223. [],
  224. []))],
  225. [])
  226. fields =
  227. (214,
  228. u'6509-yla-gts3',
  229. True,
  230. 2,
  231. u'55a51f647e85c97402201f32',
  232. 1,
  233. None,
  234. u'Cisco.IOS',
  235. 6,
  236. None,
  237. None,
  238. 0,
  239. u'10.200.200.4',
  240. 0,
  241. u'+km',
  242. u'gjikbdctyf[eq',
  243. u'rere:tyth',
  244. u'6509-yla-gts3',
  245. '10.200.200.4',
  246. u'public',
  247. u'public',
  248. None,
  249. None,
  250. 1,
  251. None,
  252. None,
  253. u'Cisco/layer_3_switch',
  254. None,
  255. None,
  256. None,
  257. 0,
  258. ['cisco', 'yoshkar-ola'])
  259. field_count = 32
  260. reverse_related_fields = []
  261. index_start = 0
  262. klass = <class 'noc.sa.models.managedobject.ManagedObject'>
  263. offset = 0
  264. using = 'default'
  265. field_names = ()
  266. related_fields =
  267. [(<django.db.models.fields.related.ForeignKey: administrative_domain>,
  268. (<class 'noc.sa.models.administrativedomain.AdministrativeDomain'>,
  269. (),
  270. 3,
  271. [],
  272. [])),
  273. (<django.db.models.fields.related.ForeignKey: activator>,
  274. (<class 'noc.sa.models.activator.Activator'>,
  275. (),
  276. 9,
  277. [(<django.db.models.fields.related.ForeignKey: shard>,
  278. (<class 'noc.main.models.Shard'>, (), 4, [], [])),
  279. (<django.db.models.fields.related.ForeignKey: prefix_table>,
  280. (<class 'noc.main.models.prefixtable.PrefixTable'>, (), 3, [], []))],
  281. [])),
  282. (<django.db.models.fields.related.ForeignKey: object_profile>,
  283. (<class 'noc.sa.models.managedobjectprofile.ManagedObjectProfile'>,
  284. (),
  285. 73,
  286. [],
  287. []))]
  288. row =
  289. (214,
  290. u'6509-yla-gts3',
  291. True,
  292. 2,
  293. u'55a51f647e85c97402201f32',
  294. 1,
  295. None,
  296. u'Cisco.IOS',
  297. 6,
  298. None,
  299. None,
  300. 0,
  301. u'10.200.200.4',
  302. 0,
  303. u'+km',
  304. u'gjikbdctyf[eq',
  305. u'rere:tyth',
  306. u'6509-yla-gts3',
  307. '10.200.200.4',
  308. u'public',
  309. u'public',
  310. None,
  311. None,
  312. 1,
  313. None,
  314. None,
  315. u'Cisco/layer_3_switch',
  316. None,
  317. None,
  318. None,
  319. 0,
  320. ['cisco', 'yoshkar-ola'],
  321. 2,
  322. u'Yoshkar-Ola',
  323. u'Yoshkar-Ola and Medvedevo ',
  324. 1,
  325. u'default',
  326. 1,
  327. True,
  328. 1,
  329. u'noc',
  330. 0,
  331. 0,
  332. [],
  333. 1,
  334. u'default',
  335. True,
  336. u'Default shard',
  337. 1,
  338. u'Activator::default',
  339. None,
  340. 6,
  341. u'no-LLDP-STP',
  342. None,
  343. 25,
  344. None,
  345. None,
  346. None,
  347. False,
  348. None,
  349. True,
  350. 60,
  351. 4000,
  352. u',0',
  353. True,
  354. 600,
  355. 86400,
  356. True,
  357. 600,
  358. 86400,
  359. True,
  360. 600,
  361. 86400,
  362. True,
  363. 600,
  364. 900,
  365. True,
  366. 600,
  367. 86400,
  368. True,
  369. 600,
  370. 900,
  371. True,
  372. 600,
  373. 86400,
  374. True,
  375. 600,
  376. 86400,
  377. True,
  378. 600,
  379. 86400,
  380. True,
  381. 600,
  382. 86400,
  383. True,
  384. 600,
  385. 86400,
  386. False,
  387. 600,
  388. 86400,
  389. True,
  390. 600,
  391. 86400,
  392. True,
  393. 600,
  394. 86400,
  395. False,
  396. 600,
  397. 86400,
  398. False,
  399. 600,
  400. 86400,
  401. False,
  402. 600,
  403. 86400,
  404. False,
  405. 600,
  406. 86400,
  407. True,
  408. 600,
  409. 86400,
  410. True,
  411. 600,
  412. 86400)
  413. ------------------------------------------------------------------------
  414. File: lib/python2.6/site-packages/django/db/models/query.py (Line: 294)
  415. Function: iterator
  416. 287 compiler = self.query.get_compiler(using=db)
  417. 288 if fill_cache:
  418. 289 klass_info = get_klass_info(model, max_depth=max_depth,
  419. 290 requested=requested, only_load=only_load)
  420. 291 for row in compiler.results_iter():
  421. 292 if fill_cache:
  422. 293 obj, _ = get_cached_row(row, index_start, db, klass_info,
  423. 294 ==> offset=len(aggregate_select))
  424. 295 else:
  425. 296 if skip:
  426. 297 row_data = row[index_start:aggregate_start]
  427. 298 obj = model_cls(**dict(zip(init_list, row_data)))
  428. 299 else:
  429. 300 # Omit aggregates in object creation.
  430. Variables:
  431. requested = None
  432. fill_cache = True
  433. aggregate_select = []
  434. klass_info =
  435. (<class 'noc.sa.models.managedobject.ManagedObject'>,
  436. (),
  437. 32,
  438. [(<django.db.models.fields.related.ForeignKey: administrative_domain>,
  439. (<class 'noc.sa.models.administrativedomain.AdministrativeDomain'>,
  440. (),
  441. 3,
  442. [],
  443. [])),
  444. (<django.db.models.fields.related.ForeignKey: activator>,
  445. (<class 'noc.sa.models.activator.Activator'>,
  446. (),
  447. 9,
  448. [(<django.db.models.fields.related.ForeignKey: shard>,
  449. (<class 'noc.main.models.Shard'>, (), 4, [], [])),
  450. (<django.db.models.fields.related.ForeignKey: prefix_table>,
  451. (<class 'noc.main.models.prefixtable.PrefixTable'>, (), 3, [], []))],
  452. [])),
  453. (<django.db.models.fields.related.ForeignKey: object_profile>,
  454. (<class 'noc.sa.models.managedobjectprofile.ManagedObjectProfile'>,
  455. (),
  456. 73,
  457. [],
  458. []))],
  459. [])
  460. skip = None
  461. self = repr() failed
  462. load_fields = []
  463. db = 'default'
  464. index_start = 0
  465. extra_select = []
  466. aggregate_start = 32
  467. model = <class 'noc.sa.models.managedobject.ManagedObject'>
  468. row =
  469. (214,
  470. u'6509-yla-gts3',
  471. True,
  472. 2,
  473. u'55a51f647e85c97402201f32',
  474. 1,
  475. None,
  476. u'Cisco.IOS',
  477. 6,
  478. None,
  479. None,
  480. 0,
  481. u'10.200.200.4',
  482. 0,
  483. u'+km',
  484. u'gjikbdctyf[eq',
  485. u'rere:tyth',
  486. u'6509-yla-gts3',
  487. '10.200.200.4',
  488. u'public',
  489. u'public',
  490. None,
  491. None,
  492. 1,
  493. None,
  494. None,
  495. u'Cisco/layer_3_switch',
  496. None,
  497. None,
  498. None,
  499. 0,
  500. ['cisco', 'yoshkar-ola'],
  501. 2,
  502. u'Yoshkar-Ola',
  503. u'Yoshkar-Ola and Medvedevo ',
  504. 1,
  505. u'default',
  506. 1,
  507. True,
  508. 1,
  509. u'noc',
  510. 0,
  511. 0,
  512. [],
  513. 1,
  514. u'default',
  515. True,
  516. u'Default shard',
  517. 1,
  518. u'Activator::default',
  519. None,
  520. 6,
  521. u'no-LLDP-STP',
  522. None,
  523. 25,
  524. None,
  525. None,
  526. None,
  527. False,
  528. None,
  529. True,
  530. 60,
  531. 4000,
  532. u',0',
  533. True,
  534. 600,
  535. 86400,
  536. True,
  537. 600,
  538. 86400,
  539. True,
  540. 600,
  541. 86400,
  542. True,
  543. 600,
  544. 900,
  545. True,
  546. 600,
  547. 86400,
  548. True,
  549. 600,
  550. 900,
  551. True,
  552. 600,
  553. 86400,
  554. True,
  555. 600,
  556. 86400,
  557. True,
  558. 600,
  559. 86400,
  560. True,
  561. 600,
  562. 86400,
  563. True,
  564. 600,
  565. 86400,
  566. False,
  567. 600,
  568. 86400,
  569. True,
  570. 600,
  571. 86400,
  572. True,
  573. 600,
  574. 86400,
  575. False,
  576. 600,
  577. 86400,
  578. False,
  579. 600,
  580. 86400,
  581. False,
  582. 600,
  583. 86400,
  584. False,
  585. 600,
  586. 86400,
  587. True,
  588. 600,
  589. 86400,
  590. True,
  591. 600,
  592. 86400)
  593. only_load = {}
  594. max_depth = 5
  595. compiler = <django.db.models.sql.compiler.SQLCompiler object at 0x7ab10d0>
  596. ------------------------------------------------------------------------
  597. File: lib/python2.6/site-packages/django/db/models/query.py (Line: 85)
  598. Function: __len__
  599. 78 # Since __len__ is called quite frequently (for example, as part of
  600. 79 # list(qs), we make some effort here to be as efficient as possible
  601. 80 # whilst not messing up any existing iterators against the QuerySet.
  602. 81 if self._result_cache is None:
  603. 82 if self._iter:
  604. 83 self._result_cache = list(self._iter)
  605. 84 else:
  606. 85 ==> self._result_cache = list(self.iterator())
  607. 86 elif self._iter:
  608. 87 self._result_cache.extend(self._iter)
  609. 88 if self._prefetch_related_lookups and not self._prefetch_done:
  610. 89 self._prefetch_related_objects()
  611. 90 return len(self._result_cache)
  612. 91
  613. Variables:
  614. self = repr() failed
  615. ------------------------------------------------------------------------
  616. File: lib/app/extapplication.py (Line: 160)
  617. Function: list_data
  618. 153 ordering = ordering or self.default_ordering
  619. 154 if ordering:
  620. 155 data = data.order_by(*ordering)
  621. 156 if request.is_extjs:
  622. 157 total = data.count() # Total unpaged count
  623. 158 if start is not None and limit is not None:
  624. 159 data = data[int(start):int(start) + int(limit)]
  625. 160 ==> ld = len(data)
  626. 161 if self.row_limit and ld > self.row_limit:
  627. 162 # Request too large
  628. 163 return self.response(
  629. 164 "System limit is %d records (%d requested)" % (self.row_limit, ld),
  630. 165 status=self.TOO_LARGE)
  631. 166 out = [formatter(o, fields=only) for o in data]
  632. Variables:
  633. fs = None
  634. ordering = ['name']
  635. self =
  636. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x6d5b510>
  637. request =
  638. <WSGIRequest
  639. path:/sa/managedobject/,
  640. GET:<QueryDict: {u'__limit': [u'67'], u'__start': [u'0'], u'__page': [u'1'], u'_dc': [u'1436949610613'], u'__format': [u'ext'], u'__sort': [u'[{"property":"name","direction":"ASC"}]']}>,
  641. POST:<QueryDict: {}>,
  642. COOKIES:{'sessionid': '845383f1e2963ef9daedc1f1e86189cb'},
  643. META:{'HTTP_ACCEPT': '*/*',
  644. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
  645. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  646. 'HTTP_CONNECTION': 'close',
  647. 'HTTP_COOKIE': 'sessionid=845383f1e2963ef9daedc1f1e86189cb',
  648. 'HTTP_HOST': '127.0.0.1:8000',
  649. 'HTTP_REFERER': 'https://77.40.0.12/main/desktop/',
  650. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36',
  651. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  652. 'PATH_INFO': u'/sa/managedobject/',
  653. 'QUERY_STRING': '_dc=1436949610613&__format=ext&__page=1&__start=0&__limit=67&__sort=%5B%7B%22property%22%3A%22name%22%2C%22direction%22%3A%22ASC%22%7D%5D',
  654. 'REMOTE_ADDR': '127.0.0.1',
  655. 'REQUEST_METHOD': 'GET',
  656. 'SCRIPT_NAME': u'',
  657. 'SERVER_NAME': '127.0.0.1',
  658. 'SERVER_PORT': '8000',
  659. 'SERVER_PROTOCOL': 'HTTP/1.0',
  660. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x31d2a50>,
  661. 'wsgi.input': <io.BytesIO object at 0x794dd70>,
  662. 'wsgi.multiprocess': True,
  663. 'wsgi.multithread': False,
  664. 'wsgi.run_once': False,
  665. 'wsgi.url_scheme': 'http',
  666. 'wsgi.version': (1, 0)}>
  667. q = {}
  668. start = u'0'
  669. only = None
  670. r = {'direction': 'ASC', 'property': 'name'}
  671. limit = u'67'
  672. formatter =
  673. <bound method ManagedObjectApplication.instance_to_dict of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x6d5b510>>
  674. query = None
  675. total = 225
  676. data = repr() failed
  677. fav_items = None
  678. ------------------------------------------------------------------------
  679. File: lib/app/extmodelapplication.py (Line: 343)
  680. Function: api_list
  681. 336 f[n] = pdata[n]
  682. 337 return f, m2m
  683. 338 else:
  684. 339 return pdata, {}
  685. 340
  686. 341 @view(method=["GET"], url="^$", access="read", api=True)
  687. 342 def api_list(self, request):
  688. 343 ==> return self.list_data(request, self.instance_to_dict)
  689. 344
  690. 345 @view(method=["GET"], url=r"^lookup/$", access="lookup", api=True)
  691. 346 def api_lookup(self, request):
  692. 347 return self.list_data(request, self.instance_to_lookup)
  693. 348
  694. 349 @view(method=["POST"], url="^$", access="create", api=True)
  695. Variables:
  696. self =
  697. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x6d5b510>
  698. request =
  699. <WSGIRequest
  700. path:/sa/managedobject/,
  701. GET:<QueryDict: {u'__limit': [u'67'], u'__start': [u'0'], u'__page': [u'1'], u'_dc': [u'1436949610613'], u'__format': [u'ext'], u'__sort': [u'[{"property":"name","direction":"ASC"}]']}>,
  702. POST:<QueryDict: {}>,
  703. COOKIES:{'sessionid': '845383f1e2963ef9daedc1f1e86189cb'},
  704. META:{'HTTP_ACCEPT': '*/*',
  705. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
  706. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  707. 'HTTP_CONNECTION': 'close',
  708. 'HTTP_COOKIE': 'sessionid=845383f1e2963ef9daedc1f1e86189cb',
  709. 'HTTP_HOST': '127.0.0.1:8000',
  710. 'HTTP_REFERER': 'https://77.40.0.12/main/desktop/',
  711. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36',
  712. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  713. 'PATH_INFO': u'/sa/managedobject/',
  714. 'QUERY_STRING': '_dc=1436949610613&__format=ext&__page=1&__start=0&__limit=67&__sort=%5B%7B%22property%22%3A%22name%22%2C%22direction%22%3A%22ASC%22%7D%5D',
  715. 'REMOTE_ADDR': '127.0.0.1',
  716. 'REQUEST_METHOD': 'GET',
  717. 'SCRIPT_NAME': u'',
  718. 'SERVER_NAME': '127.0.0.1',
  719. 'SERVER_PORT': '8000',
  720. 'SERVER_PROTOCOL': 'HTTP/1.0',
  721. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x31d2a50>,
  722. 'wsgi.input': <io.BytesIO object at 0x794dd70>,
  723. 'wsgi.multiprocess': True,
  724. 'wsgi.multithread': False,
  725. 'wsgi.run_once': False,
  726. 'wsgi.url_scheme': 'http',
  727. 'wsgi.version': (1, 0)}>
  728. ------------------------------------------------------------------------
  729. File: lib/app/site.py (Line: 249)
  730. Function: inner
  731. 242 a = dict((k, v[0] if len(v) == 1 else v)
  732. 243 for k, v in request.GET.lists())
  733. 244 app_logger.debug("API %s %s %s",
  734. 245 request.method, request.path, a)
  735. 246 # Call handler
  736. 247 v.__dict__["hits_metric"] += 1
  737. 248 with v.__dict__["time_metric"].timer():
  738. 249 ==> r = v(request, *args, **kwargs)
  739. 250 # Dump SQL statements
  740. 251 if self.log_sql_statements:
  741. 252 from django.db import connections
  742. 253 tsc = 0
  743. 254 sc = defaultdict(int)
  744. 255 for conn in connections.all():
  745. Variables:
  746. args = ()
  747. view_map =
  748. {'GET': <bound method ManagedObjectApplication.api_list of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x6d5b510>>,
  749. 'POST': <bound method ManagedObjectApplication.api_create of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x6d5b510>>}
  750. Form = <class 'django.forms.forms.Form'>
  751. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  752. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  753. self = <noc.lib.app.site.Site object at 0x37738d0>
  754. v =
  755. <bound method ManagedObjectApplication.api_list of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x6d5b510>>
  756. request =
  757. <WSGIRequest
  758. path:/sa/managedobject/,
  759. GET:<QueryDict: {u'__limit': [u'67'], u'__start': [u'0'], u'__page': [u'1'], u'_dc': [u'1436949610613'], u'__format': [u'ext'], u'__sort': [u'[{"property":"name","direction":"ASC"}]']}>,
  760. POST:<QueryDict: {}>,
  761. COOKIES:{'sessionid': '845383f1e2963ef9daedc1f1e86189cb'},
  762. META:{'HTTP_ACCEPT': '*/*',
  763. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
  764. 'HTTP_ACCEPT_LANGUAGE': 'ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4',
  765. 'HTTP_CONNECTION': 'close',
  766. 'HTTP_COOKIE': 'sessionid=845383f1e2963ef9daedc1f1e86189cb',
  767. 'HTTP_HOST': '127.0.0.1:8000',
  768. 'HTTP_REFERER': 'https://77.40.0.12/main/desktop/',
  769. 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.132 Safari/537.36',
  770. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  771. 'PATH_INFO': u'/sa/managedobject/',
  772. 'QUERY_STRING': '_dc=1436949610613&__format=ext&__page=1&__start=0&__limit=67&__sort=%5B%7B%22property%22%3A%22name%22%2C%22direction%22%3A%22ASC%22%7D%5D',
  773. 'REMOTE_ADDR': '127.0.0.1',
  774. 'REQUEST_METHOD': 'GET',
  775. 'SCRIPT_NAME': u'',
  776. 'SERVER_NAME': '127.0.0.1',
  777. 'SERVER_PORT': '8000',
  778. 'SERVER_PROTOCOL': 'HTTP/1.0',
  779. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x31d2a50>,
  780. 'wsgi.input': <io.BytesIO object at 0x794dd70>,
  781. 'wsgi.multiprocess': True,
  782. 'wsgi.multithread': False,
  783. 'wsgi.run_once': False,
  784. 'wsgi.url_scheme': 'http',
  785. 'wsgi.version': (1, 0)}>
  786. app_logger = <logging.Logger instance at 0x6d58710>
  787. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  788. to_log_api_call = False
  789. kwargs = {}
  790. nq = <function nq at 0x7aa8668>
  791. app =
  792. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x6d5b510>
  793. ------------------------------------------------------------------------
  794. END OF TRACEBACK
  795. 2015-07-15 11:40:03,987 [tornado.access] 500 GET /sa/managedobject/?_dc=1436949610613&__format=ext&__page=1&__start=0&__limit=67&__sort=%5B%7B%22property%22%3A%22name%22%2C%22direction%22%3A%22ASC%22%7D%5D (127.0.0.1) 342.50ms
  796. 2015-07-15 11:40:09,469 [tornado.access] 404 GET /main/sync/default/0/config/ (127.0.0.1) 131.96ms
  797. 2015-07-15 11:40:09,522 [tornado.access] 403 GET /pm/probe/default/0/config/ (127.0.0.1) 282.55ms
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement