Advertisement
Guest User

NOC Save MO trace

a guest
Nov 20th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.69 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2014-11-20 11:11:02.838257)
  2. Working directory: /opt/noc
  3. <type 'exceptions.ValueError'>
  4. Invalid FQDN: strabag-09-49
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/sa/models/managedobjectprofile.py (Line: 203)
  8. Function: get_fqdn
  9. 196 f = Template(self.fqdn_template).render(ctx)
  10. 197 # Remove spaces
  11. 198 f = "".join(f.split())
  12. 199 else:
  13. 200 f = object.name
  14. 201 # Check resulting fqdn
  15. 202 if not is_fqdn(f):
  16. 203 ==> raise ValueError("Invalid FQDN: %s" % f)
  17. 204 return f
  18. Variables:
  19. self = <ManagedObjectProfile: Avaya>
  20. object = <ManagedObject: strabag-09-49>
  21. f = 'strabag-09-49'
  22. ------------------------------------------------------------------------
  23. File: /opt/noc/sa/models/managedobject.py (Line: 311)
  24. Function: sync_ipam
  25. 304 def sync_ipam(self):
  26. 305 """
  27. 306 Synchronize FQDN and address with IPAM
  28. 307 """
  29. 308 from noc.ip.models.address import Address
  30. 309 from noc.ip.models.vrf import VRF
  31. 310 # Generate FQDN from template
  32. 311 ==> fqdn = self.object_profile.get_fqdn(self)
  33. 312 # Get existing IPAM record
  34. 313 vrf = self.vrf if self.vrf else VRF.get_global()
  35. 314 try:
  36. 315 a = Address.objects.get(vrf=vrf, address=self.address)
  37. 316 except Address.DoesNotExist:
  38. 317 # Create new address
  39. Variables:
  40. self = <ManagedObject: strabag-09-49>
  41. VRF = <class 'noc.ip.models.vrf.VRF'>
  42. Address = <class 'noc.ip.models.address.Address'>
  43. ------------------------------------------------------------------------
  44. File: /opt/noc/sa/models/managedobject.py (Line: 280)
  45. Function: save
  46. 273 old = ManagedObject.objects.get(id=self.id)
  47. 274 else:
  48. 275 old = None
  49. 276 # Save
  50. 277 super(ManagedObject, self).save()
  51. 278 # IPAM sync
  52. 279 if self.object_profile.sync_ipam:
  53. 280 ==> self.sync_ipam()
  54. 281 # Notify changes
  55. 282 if ((old is None and self.trap_source_ip) or
  56. 283 (old and self.trap_source_ip != old.trap_source_ip) or
  57. 284 (old and self.activator.id != old.activator.id)):
  58. 285 self.sae_refresh_event_filter()
  59. 286 # Notify new object
  60. Variables:
  61. self = <ManagedObject: strabag-09-49>
  62. old = <ManagedObject: strabag-09-49>
  63. ------------------------------------------------------------------------
  64. File: /opt/noc/lib/app/extmodelapplication.py (Line: 437)
  65. Function: _update_object
  66. 430
  67. 431 @view(method=["PUT"], url="^(?P<id>\d+)/?$", access="update", api=True)
  68. 432 def api_update(self, request, id):
  69. 433 def _update_object(o, attrs, m2m_attrs):
  70. 434 for k, v in attrs.items():
  71. 435 setattr(o, k, v)
  72. 436 try:
  73. 437 ==> o.save()
  74. 438 if m2m_attrs:
  75. 439 self.update_m2ms(o, m2m_attrs)
  76. 440 except IntegrityError:
  77. 441 return self.render_json(
  78. 442 {
  79. 443 "success": False,
  80. Variables:
  81. self =
  82. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fac1fdec0d0>
  83. request =
  84. <WSGIRequest
  85. path:/sa/managedobject/8/,
  86. GET:<QueryDict: {}>,
  87. POST:<QueryDict: {}>,
  88. COOKIES:{'sessionid': 'f9cc92aed4e766575555d25eb6b24a48'},
  89. META:{'CONTENT_LENGTH': '594',
  90. 'CONTENT_TYPE': 'application/json',
  91. 'HTTP_ACCEPT': '*/*',
  92. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  93. 'HTTP_ACCEPT_LANGUAGE': 'en,ru;q=0.8,en-US;q=0.6',
  94. 'HTTP_CONNECTION': 'close',
  95. 'HTTP_COOKIE': 'sessionid=f9cc92aed4e766575555d25eb6b24a48',
  96. 'HTTP_HOST': '127.0.0.1:8000',
  97. 'HTTP_ORIGIN': 'http://10.15.3.44',
  98. 'HTTP_REFERER': 'http://10.15.3.44/main/desktop/',
  99. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36',
  100. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  101. 'PATH_INFO': u'/sa/managedobject/8/',
  102. 'QUERY_STRING': '',
  103. 'REMOTE_ADDR': '127.0.0.1',
  104. 'REQUEST_METHOD': 'PUT',
  105. 'SCRIPT_NAME': u'',
  106. 'SERVER_NAME': '127.0.0.1',
  107. 'SERVER_PORT': '8000',
  108. 'SERVER_PROTOCOL': 'HTTP/1.0',
  109. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7fac3141fa50>,
  110. 'wsgi.input': <_io.BytesIO object at 0x7fac1d7d1890>,
  111. 'wsgi.multiprocess': True,
  112. 'wsgi.multithread': False,
  113. 'wsgi.run_once': False,
  114. 'wsgi.url_scheme': 'http',
  115. 'wsgi.version': (1, 0)}>
  116. o = <ManagedObject: strabag-09-49>
  117. m2m_attrs = {}
  118. attrs =
  119. {'activator': <Activator: default>,
  120. 'address': '10.15.10.107',
  121. 'administrative_domain': <AdministrativeDomain: default>,
  122. 'auth_profile': None,
  123. 'collector': None,
  124. 'config_diff_filter_rule': None,
  125. 'config_filter_rule': <PyRule: Avaya_cfg_filter>,
  126. 'config_validation_rule': None,
  127. 'description': 'strabag-09-49',
  128. 'is_managed': True,
  129. 'max_scripts': 0,
  130. 'name': 'strabag-09-49',
  131. 'object_profile': <ManagedObjectProfile: Avaya>,
  132. 'password': 'Frt23131$(G',
  133. 'port': 0,
  134. 'profile_name': 'Avaya.ERS',
  135. 'remote_path': None,
  136. 'scheme': 0,
  137. 'service_terminator': None,
  138. 'shape': None,
  139. 'snmp_ro': 'C2yKh{laHak8Azi',
  140. 'snmp_rw': None,
  141. 'super_password': None,
  142. 'tags': [],
  143. 'termination_group': None,
  144. 'trap_community': None,
  145. 'trap_source_ip': '10.15.10.107',
  146. 'user': 'rsa',
  147. 'vc_domain': <VCDomain: default>,
  148. 'vrf': <VRF: global>}
  149. v = <VRF: global>
  150. k = 'vrf'
  151. ------------------------------------------------------------------------
  152. File: /opt/noc/lib/python2.7/site-packages/concurrent/futures/thread.py (Line: 61)
  153. Function: run
  154. 54 self.kwargs = kwargs
  155. 55
  156. 56 def run(self):
  157. 57 if not self.future.set_running_or_notify_cancel():
  158. 58 return
  159. 59
  160. 60 try:
  161. 61 ==> result = self.fn(*self.args, **self.kwargs)
  162. 62 except BaseException:
  163. 63 e, tb = sys.exc_info()[1:]
  164. 64 self.future.set_exception_info(e, tb)
  165. 65 else:
  166. 66 self.future.set_result(result)
  167. 67
  168. Variables:
  169. e = ValueError('Invalid FQDN: strabag-09-49',)
  170. self = <concurrent.futures.thread._WorkItem object at 0x7fac1d7b9790>
  171. tb = <traceback object at 0x7fac1d7ef0e0>
  172. ------------------------------------------------------------------------
  173. File: /opt/noc/lib/python2.7/site-packages/concurrent/futures/_compat.py (Line: 107)
  174. Function: reraise
  175. 100
  176. 101 return result
  177. 102
  178. 103
  179. 104 if _sys.version_info[0] < 3:
  180. 105 def reraise(exc, traceback):
  181. 106 locals_ = {'exc_type': type(exc), 'exc_value': exc, 'traceback': traceback}
  182. 107 ==> exec('raise exc_type, exc_value, traceback', {}, locals_)
  183. 108 else:
  184. 109 def reraise(exc, traceback):
  185. 110 # Tracebacks are embedded in exceptions in Python 3
  186. 111 raise exc
  187. Variables:
  188. locals_ =
  189. {'exc_type': <type 'exceptions.ValueError'>,
  190. 'exc_value': ValueError('Invalid FQDN: strabag-09-49',),
  191. 'traceback': <traceback object at 0x7fac1d7ef0e0>}
  192. traceback = <traceback object at 0x7fac1d7ef0e0>
  193. exc = ValueError('Invalid FQDN: strabag-09-49',)
  194. ------------------------------------------------------------------------
  195. File: /opt/noc/lib/python2.7/site-packages/concurrent/futures/_base.py (Line: 359)
  196. Function: __get_result
  197. 352 def done(self):
  198. 353 """Return True of the future was cancelled or finished executing."""
  199. 354 with self._condition:
  200. 355 return self._state in [CANCELLED, CANCELLED_AND_NOTIFIED, FINISHED]
  201. 356
  202. 357 def __get_result(self):
  203. 358 if self._exception:
  204. 359 ==> reraise(self._exception, self._traceback)
  205. 360 else:
  206. 361 return self._result
  207. 362
  208. 363 def add_done_callback(self, fn):
  209. 364 """Attaches a callable that will be called when the future finishes.
  210. 365
  211. Variables:
  212. self = <Future at 0x7fac1d7b9350 state=finished raised ValueError>
  213. ------------------------------------------------------------------------
  214. File: /opt/noc/lib/python2.7/site-packages/concurrent/futures/_base.py (Line: 407)
  215. Function: result
  216. 400 return self.__get_result()
  217. 401
  218. 402 self._condition.wait(timeout)
  219. 403
  220. 404 if self._state in [CANCELLED, CANCELLED_AND_NOTIFIED]:
  221. 405 raise CancelledError()
  222. 406 elif self._state == FINISHED:
  223. 407 ==> return self.__get_result()
  224. 408 else:
  225. 409 raise TimeoutError()
  226. 410
  227. 411 def exception_info(self, timeout=None):
  228. 412 """Return a tuple of (exception, traceback) raised by the call that the
  229. 413 future represents.
  230. Variables:
  231. self = <Future at 0x7fac1d7b9350 state=finished raised ValueError>
  232. timeout = 5.0
  233. ------------------------------------------------------------------------
  234. File: /opt/noc/main/models/slowop.py (Line: 73)
  235. Function: submit
  236. 66 so.duration = time.time() - t0
  237. 67 so.save()
  238. 68
  239. 69 so = None
  240. 70 t0 = time.time()
  241. 71 future = cls.pool.submit(fn, *args, **kwargs)
  242. 72 try:
  243. 73 ==> future.result(cls.SLOW_TIMEOUT)
  244. 74 except concurrent.futures.TimeoutError:
  245. 75 logger.debug("Continuing slow operation %s (app=%s, user=%s)",
  246. 76 fn, app_id, user)
  247. 77 # Save slow op
  248. 78 now = datetime.datetime.now()
  249. 79 so = SlowOp(
  250. Variables:
  251. args =
  252. (<ManagedObject: strabag-09-49>,
  253. {'activator': <Activator: default>,
  254. 'address': '10.15.10.107',
  255. 'administrative_domain': <AdministrativeDomain: default>,
  256. 'auth_profile': None,
  257. 'collector': None,
  258. 'config_diff_filter_rule': None,
  259. 'config_filter_rule': <PyRule: Avaya_cfg_filter>,
  260. 'config_validation_rule': None,
  261. 'description': 'strabag-09-49',
  262. 'is_managed': True,
  263. 'max_scripts': 0,
  264. 'name': 'strabag-09-49',
  265. 'object_profile': <ManagedObjectProfile: Avaya>,
  266. 'password': 'Frt21$(G',
  267. 'port': 0,
  268. 'profile_name': 'Avaya.ERS',
  269. 'remote_path': None,
  270. 'scheme': 0,
  271. 'service_terminator': None,
  272. 'shape': None,
  273. 'snmp_ro': 'C2yKh{laHzi',
  274. 'snmp_rw': None,
  275. 'super_password': None,
  276. 'tags': [],
  277. 'termination_group': None,
  278. 'trap_community': None,
  279. 'trap_source_ip': '10.15.10.107',
  280. 'user': 'rsa',
  281. 'vc_domain': <VCDomain: default>,
  282. 'vrf': <VRF: global>},
  283. {})
  284. app_id = 'sa.managedobject'
  285. t0 = 1416471062.828998
  286. future = <Future at 0x7fac1d7b9350 state=finished raised ValueError>
  287. so = None
  288. user = u'admin'
  289. kwargs = {}
  290. on_complete = <function on_complete at 0x7fac1cf37b18>
  291. fn = <function _update_object at 0x7fac1cf37398>
  292. cls = <class 'noc.main.models.slowop.SlowOp'>
  293. ------------------------------------------------------------------------
  294. File: /opt/noc/lib/app/extapplication.py (Line: 258)
  295. Function: submit_slow_op
  296. 251 else:
  297. 252 return self.response_accepted(request.path)
  298. 253
  299. 254 def submit_slow_op(self, request, fn, *args, **kwargs):
  300. 255 f = SlowOp.submit(
  301. 256 fn,
  302. 257 self.get_app_id(), request.user.username,
  303. 258 ==> *args, **kwargs
  304. 259 )
  305. 260 if f.done():
  306. 261 return f.result()
  307. 262 else:
  308. 263 return self.response_accepted(
  309. 264 location="%sfutures/%s/" % (self.base_url, f.slow_op.id)
  310. Variables:
  311. self =
  312. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fac1fdec0d0>
  313. args =
  314. (<ManagedObject: strabag-09-49>,
  315. {'activator': <Activator: default>,
  316. 'address': '10.15.10.107',
  317. 'administrative_domain': <AdministrativeDomain: default>,
  318. 'auth_profile': None,
  319. 'collector': None,
  320. 'config_diff_filter_rule': None,
  321. 'config_filter_rule': <PyRule: Avaya_cfg_filter>,
  322. 'config_validation_rule': None,
  323. 'description': 'strabag-09-49',
  324. 'is_managed': True,
  325. 'max_scripts': 0,
  326. 'name': 'strabag-09-49',
  327. 'object_profile': <ManagedObjectProfile: Avaya>,
  328. 'password': 'Frt23$(G',
  329. 'port': 0,
  330. 'profile_name': 'Avaya.ERS',
  331. 'remote_path': None,
  332. 'scheme': 0,
  333. 'service_terminator': None,
  334. 'shape': None,
  335. 'snmp_ro': 'C2yKh{laHAzi',
  336. 'snmp_rw': None,
  337. 'super_password': None,
  338. 'tags': [],
  339. 'termination_group': None,
  340. 'trap_community': None,
  341. 'trap_source_ip': '10.15.10.107',
  342. 'user': 'rsa',
  343. 'vc_domain': <VCDomain: default>,
  344. 'vrf': <VRF: global>},
  345. {})
  346. request =
  347. <WSGIRequest
  348. path:/sa/managedobject/8/,
  349. GET:<QueryDict: {}>,
  350. POST:<QueryDict: {}>,
  351. COOKIES:{'sessionid': 'f9cc92aed4e766575555d25eb6b24a48'},
  352. META:{'CONTENT_LENGTH': '594',
  353. 'CONTENT_TYPE': 'application/json',
  354. 'HTTP_ACCEPT': '*/*',
  355. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  356. 'HTTP_ACCEPT_LANGUAGE': 'en,ru;q=0.8,en-US;q=0.6',
  357. 'HTTP_CONNECTION': 'close',
  358. 'HTTP_COOKIE': 'sessionid=f9cc92aed4e766575555d25eb6b24a48',
  359. 'HTTP_HOST': '127.0.0.1:8000',
  360. 'HTTP_ORIGIN': 'http://10.15.3.44',
  361. 'HTTP_REFERER': 'http://10.15.3.44/main/desktop/',
  362. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36',
  363. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  364. 'PATH_INFO': u'/sa/managedobject/8/',
  365. 'QUERY_STRING': '',
  366. 'REMOTE_ADDR': '127.0.0.1',
  367. 'REQUEST_METHOD': 'PUT',
  368. 'SCRIPT_NAME': u'',
  369. 'SERVER_NAME': '127.0.0.1',
  370. 'SERVER_PORT': '8000',
  371. 'SERVER_PROTOCOL': 'HTTP/1.0',
  372. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7fac3141fa50>,
  373. 'wsgi.input': <_io.BytesIO object at 0x7fac1d7d1890>,
  374. 'wsgi.multiprocess': True,
  375. 'wsgi.multithread': False,
  376. 'wsgi.run_once': False,
  377. 'wsgi.url_scheme': 'http',
  378. 'wsgi.version': (1, 0)}>
  379. fn = <function _update_object at 0x7fac1cf37398>
  380. kwargs = {}
  381. ------------------------------------------------------------------------
  382. File: /opt/noc/lib/app/extmodelapplication.py (Line: 478)
  383. Function: api_update
  384. 471 "traceback": str(why)
  385. 472 }, status=self.BAD_REQUEST)
  386. 473 try:
  387. 474 o = self.queryset(request).get(**{self.pk: int(id)})
  388. 475 except self.model.DoesNotExist:
  389. 476 return HttpResponse("", status=self.NOT_FOUND)
  390. 477 return self.submit_slow_op(request, _update_object,
  391. 478 ==> o, attrs, m2m_attrs)
  392. 479
  393. 480 @view(method=["DELETE"], url="^(?P<id>\d+)/?$", access="delete", api=True)
  394. 481 def api_delete(self, request, id):
  395. 482 def _delete_object(o):
  396. 483 o.delete() # @todo: Detect errors
  397. 484 return HttpResponse(status=self.DELETED)
  398. Variables:
  399. _update_object = <function _update_object at 0x7fac1cf37398>
  400. self =
  401. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fac1fdec0d0>
  402. request =
  403. <WSGIRequest
  404. path:/sa/managedobject/8/,
  405. GET:<QueryDict: {}>,
  406. POST:<QueryDict: {}>,
  407. COOKIES:{'sessionid': 'f9cc92aed4e766575555d25eb6b24a48'},
  408. META:{'CONTENT_LENGTH': '594',
  409. 'CONTENT_TYPE': 'application/json',
  410. 'HTTP_ACCEPT': '*/*',
  411. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  412. 'HTTP_ACCEPT_LANGUAGE': 'en,ru;q=0.8,en-US;q=0.6',
  413. 'HTTP_CONNECTION': 'close',
  414. 'HTTP_COOKIE': 'sessionid=f9cc92aed4e766575555d25eb6b24a48',
  415. 'HTTP_HOST': '127.0.0.1:8000',
  416. 'HTTP_ORIGIN': 'http://10.15.3.44',
  417. 'HTTP_REFERER': 'http://10.15.3.44/main/desktop/',
  418. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36',
  419. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  420. 'PATH_INFO': u'/sa/managedobject/8/',
  421. 'QUERY_STRING': '',
  422. 'REMOTE_ADDR': '127.0.0.1',
  423. 'REQUEST_METHOD': 'PUT',
  424. 'SCRIPT_NAME': u'',
  425. 'SERVER_NAME': '127.0.0.1',
  426. 'SERVER_PORT': '8000',
  427. 'SERVER_PROTOCOL': 'HTTP/1.0',
  428. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7fac3141fa50>,
  429. 'wsgi.input': <_io.BytesIO object at 0x7fac1d7d1890>,
  430. 'wsgi.multiprocess': True,
  431. 'wsgi.multithread': False,
  432. 'wsgi.run_once': False,
  433. 'wsgi.url_scheme': 'http',
  434. 'wsgi.version': (1, 0)}>
  435. m2m_attrs = {}
  436. o = <ManagedObject: strabag-09-49>
  437. id = u'8'
  438. attrs =
  439. {'activator': <Activator: default>,
  440. 'address': '10.15.10.107',
  441. 'administrative_domain': <AdministrativeDomain: default>,
  442. 'auth_profile': None,
  443. 'collector': None,
  444. 'config_diff_filter_rule': None,
  445. 'config_filter_rule': <PyRule: Avaya_cfg_filter>,
  446. 'config_validation_rule': None,
  447. 'description': 'strabag-09-49',
  448. 'is_managed': True,
  449. 'max_scripts': 0,
  450. 'name': 'strabag-09-49',
  451. 'object_profile': <ManagedObjectProfile: Avaya>,
  452. 'password': 'Frt23131$(G',
  453. 'port': 0,
  454. 'profile_name': 'Avaya.ERS',
  455. 'remote_path': None,
  456. 'scheme': 0,
  457. 'service_terminator': None,
  458. 'shape': None,
  459. 'snmp_ro': 'C2yKh{laHak8Azi',
  460. 'snmp_rw': None,
  461. 'super_password': None,
  462. 'tags': [],
  463. 'termination_group': None,
  464. 'trap_community': None,
  465. 'trap_source_ip': '10.15.10.107',
  466. 'user': 'rsa',
  467. 'vc_domain': <VCDomain: default>,
  468. 'vrf': <VRF: global>}
  469. ------------------------------------------------------------------------
  470. File: /opt/noc/lib/app/site.py (Line: 248)
  471. Function: inner
  472. 241 a = dict((k, v[0] if len(v) == 1 else v)
  473. 242 for k, v in request.GET.lists())
  474. 243 app_logger.debug("API %s %s %s",
  475. 244 request.method, request.path, a)
  476. 245 # Call handler
  477. 246 v.__dict__["hits_metric"] += 1
  478. 247 with v.__dict__["time_metric"].timer():
  479. 248 ==> r = v(request, *args, **kwargs)
  480. 249 # Dump SQL statements
  481. 250 if self.log_sql_statements:
  482. 251 from django.db import connections
  483. 252 tsc = 0
  484. 253 sc = defaultdict(int)
  485. 254 for conn in connections.all():
  486. Variables:
  487. args = ()
  488. view_map =
  489. {'DELETE': <bound method ManagedObjectApplication.api_delete of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fac1fdec0d0>>,
  490. 'GET': <bound method ManagedObjectApplication.api_read of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fac1fdec0d0>>,
  491. 'PUT': <bound method ManagedObjectApplication.api_update of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fac1fdec0d0>>}
  492. Form = <class 'django.forms.forms.Form'>
  493. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  494. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  495. self = <noc.lib.app.site.Site object at 0x7fac224fdf10>
  496. v =
  497. <bound method ManagedObjectApplication.api_update of <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fac1fdec0d0>>
  498. request =
  499. <WSGIRequest
  500. path:/sa/managedobject/8/,
  501. GET:<QueryDict: {}>,
  502. POST:<QueryDict: {}>,
  503. COOKIES:{'sessionid': 'f9cc92aed4e766575555d25eb6b24a48'},
  504. META:{'CONTENT_LENGTH': '594',
  505. 'CONTENT_TYPE': 'application/json',
  506. 'HTTP_ACCEPT': '*/*',
  507. 'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
  508. 'HTTP_ACCEPT_LANGUAGE': 'en,ru;q=0.8,en-US;q=0.6',
  509. 'HTTP_CONNECTION': 'close',
  510. 'HTTP_COOKIE': 'sessionid=f9cc92aed4e766575555d25eb6b24a48',
  511. 'HTTP_HOST': '127.0.0.1:8000',
  512. 'HTTP_ORIGIN': 'http://10.15.3.44',
  513. 'HTTP_REFERER': 'http://10.15.3.44/main/desktop/',
  514. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.111 Safari/537.36',
  515. 'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
  516. 'PATH_INFO': u'/sa/managedobject/8/',
  517. 'QUERY_STRING': '',
  518. 'REMOTE_ADDR': '127.0.0.1',
  519. 'REQUEST_METHOD': 'PUT',
  520. 'SCRIPT_NAME': u'',
  521. 'SERVER_NAME': '127.0.0.1',
  522. 'SERVER_PORT': '8000',
  523. 'SERVER_PROTOCOL': 'HTTP/1.0',
  524. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7fac3141fa50>,
  525. 'wsgi.input': <_io.BytesIO object at 0x7fac1d7d1890>,
  526. 'wsgi.multiprocess': True,
  527. 'wsgi.multithread': False,
  528. 'wsgi.run_once': False,
  529. 'wsgi.url_scheme': 'http',
  530. 'wsgi.version': (1, 0)}>
  531. app_logger = <logging.Logger object at 0x7fac1fdec110>
  532. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  533. to_log_api_call = False
  534. kwargs = {'id': u'8'}
  535. nq = <function nq at 0x7fac1cf37668>
  536. app =
  537. <noc.sa.apps.managedobject.views.ManagedObjectApplication object at 0x7fac1fdec0d0>
  538. ------------------------------------------------------------------------
  539. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement