Advertisement
Guest User

Untitled

a guest
Dec 23rd, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.52 KB | None | 0 0
  1. UNHANDLED EXCEPTION (2014-12-23 15:39:24.166960)
  2. Working directory: /opt/noc
  3. <type 'exceptions.KeyError'>
  4. u'None'
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/main/apps/desktop/views.py (Line: 143)
  8. Function: view_desktop
  9. 136 "trace_extjs_events": config.getboolean("main", "trace_extjs_events"),
  10. 137 "preview_theme": self.get_preview_theme(request)
  11. 138 }
  12. 139 theme = self.get_theme(request)
  13. 140 return self.render(
  14. 141 request, "desktop.html", apps=apps, setup=setup,
  15. 142 theme=theme,
  16. 143 ==> theme_css=self.themes[theme]["css"],
  17. 144 theme_js=self.themes[theme]["js"]
  18. 145 )
  19. 146
  20. 147 ##
  21. 148 ## Exposed Public API
  22. 149 ##
  23. Variables:
  24. a = 'wf.workflow'
  25. favicon_mime = 'image/png'
  26. request =
  27. <WSGIRequest
  28. path:/main/desktop/,
  29. GET:<QueryDict: {}>,
  30. POST:<QueryDict: {}>,
  31. COOKIES:{'sessionid': '08f694b02037642e83d16b8a374ad68c'},
  32. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  33. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
  34. 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,ru;q=0.6',
  35. 'HTTP_CONNECTION': 'close',
  36. 'HTTP_COOKIE': 'sessionid=08f694b02037642e83d16b8a374ad68c',
  37. 'HTTP_HOST': '10.1.1.20',
  38. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36',
  39. 'HTTP_X_SCHEME': 'http',
  40. 'PATH_INFO': u'/main/desktop/',
  41. 'QUERY_STRING': '',
  42. 'REMOTE_ADDR': '127.0.0.1',
  43. 'REQUEST_METHOD': 'GET',
  44. 'SCRIPT_NAME': u'',
  45. 'SERVER_NAME': '10.1.1.20',
  46. 'SERVER_PORT': '80',
  47. 'SERVER_PROTOCOL': 'HTTP/1.0',
  48. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7f03ce626c00>,
  49. 'wsgi.input': <_io.BytesIO object at 0x7f03bcd5be90>,
  50. 'wsgi.multiprocess': True,
  51. 'wsgi.multithread': False,
  52. 'wsgi.run_once': False,
  53. 'wsgi.url_scheme': 'http',
  54. 'wsgi.version': (1, 0)}>
  55. setup =
  56. {'branding_background_color': '#c0c0c0',
  57. 'branding_color': '#000',
  58. 'debug_js': False,
  59. 'enable_gis_base_google_roadmap': False,
  60. 'enable_gis_base_google_sat': False,
  61. 'enable_gis_base_osm': True,
  62. 'favicon_mime': 'image/png',
  63. 'favicon_url': '/static/img/logo_24x24_deep_azure.png',
  64. 'install_collection': False,
  65. 'installation_name': 'Azimut',
  66. 'logo_height': '24',
  67. 'logo_url': '/static/img/logo_black.svg',
  68. 'logo_width': '24',
  69. 'preview_theme': u'None',
  70. 'trace_extjs_events': False}
  71. apps =
  72. [['cm', 'objectnotify'],
  73. ['cm', 'prefixlist'],
  74. ['cm', 'rpsl'],
  75. ['dns', 'dnsserver'],
  76. ['dns', 'dnszone'],
  77. ['dns', 'dnszoneprofile'],
  78. ['fm', 'alarm'],
  79. ['fm', 'alarmclass'],
  80. ['fm', 'alarmclassconfig'],
  81. ['fm', 'alarmseverity'],
  82. ['fm', 'alarmtrigger'],
  83. ['fm', 'classificationrule'],
  84. ['fm', 'event'],
  85. ['fm', 'eventclass'],
  86. ['fm', 'eventtrigger'],
  87. ['fm', 'ignoreeventrule'],
  88. ['fm', 'ignorepattern'],
  89. ['fm', 'mib'],
  90. ['fm', 'mibpreference'],
  91. ['fm', 'monitor'],
  92. ['fm', 'oidalias'],
  93. ['gis', 'building'],
  94. ['gis', 'division'],
  95. ['gis', 'layer'],
  96. ['gis', 'srs'],
  97. ['gis', 'street'],
  98. ['gis', 'tms'],
  99. ['inv', 'capability'],
  100. ['inv', 'connectionrule'],
  101. ['inv', 'connectiontype'],
  102. ['inv', 'coverage'],
  103. ['inv', 'interface'],
  104. ['inv', 'interfaceclassificationrule'],
  105. ['inv', 'interfaceprofile'],
  106. ['inv', 'inv'],
  107. ['inv', 'macdb'],
  108. ['inv', 'map'],
  109. ['inv', 'modelinterface'],
  110. ['inv', 'modelmapping'],
  111. ['inv', 'networkchart'],
  112. ['inv', 'objectmodel'],
  113. ['inv', 'technology'],
  114. ['inv', 'unknownmodel'],
  115. ['inv', 'vendor'],
  116. ['ip', 'address'],
  117. ['ip', 'addressrange'],
  118. ['ip', 'ippool'],
  119. ['ip', 'prefix'],
  120. ['ip', 'prefixaccess'],
  121. ['ip', 'vrf'],
  122. ['ip', 'vrfgroup'],
  123. ['kb', 'globalbookmark'],
  124. ['kb', 'kbentry'],
  125. ['kb', 'kbentrytemplate'],
  126. ['kb', 'userbookmark'],
  127. ['main', 'audittrail'],
  128. ['main', 'config'],
  129. ['main', 'customfield'],
  130. ['main', 'customfieldenumgroup'],
  131. ['main', 'dbtrigger'],
  132. ['main', 'desktop'],
  133. ['main', 'group'],
  134. ['main', 'language'],
  135. ['main', 'mimetype'],
  136. ['main', 'notificationgroup'],
  137. ['main', 'pendingnotifications'],
  138. ['main', 'prefixtable'],
  139. ['main', 'pyrule'],
  140. ['main', 'ref'],
  141. ['main', 'refbookadmin'],
  142. ['main', 'resourcestate'],
  143. ['main', 'schedule'],
  144. ['main', 'search'],
  145. ['main', 'shard'],
  146. ['main', 'style'],
  147. ['main', 'sync'],
  148. ['main', 'systemnotification'],
  149. ['main', 'systemtemplate'],
  150. ['main', 'tag'],
  151. ['main', 'template'],
  152. ['main', 'timepattern'],
  153. ['main', 'update'],
  154. ['main', 'user'],
  155. ['main', 'userprofile'],
  156. ['main', 'welcome'],
  157. ['peer', 'as'],
  158. ['peer', 'asset'],
  159. ['peer', 'community'],
  160. ['peer', 'communitytype'],
  161. ['peer', 'maintainer'],
  162. ['peer', 'organisation'],
  163. ['peer', 'peer'],
  164. ['peer', 'peergroup'],
  165. ['peer', 'peeringpoint'],
  166. ['peer', 'person'],
  167. ['peer', 'prefixlistbuilder'],
  168. ['peer', 'rir'],
  169. ['pm', 'grafana'],
  170. ['pm', 'metric'],
  171. ['pm', 'metricconfig'],
  172. ['pm', 'metricset'],
  173. ['pm', 'metricsettings'],
  174. ['pm', 'metrictype'],
  175. ['pm', 'probe'],
  176. ['pm', 'render'],
  177. ['pm', 'storage'],
  178. ['project', 'project'],
  179. ['sa', 'activator'],
  180. ['sa', 'administrativedomain'],
  181. ['sa', 'authprofile'],
  182. ['sa', 'collector'],
  183. ['sa', 'commandsnippet'],
  184. ['sa', 'getnow'],
  185. ['sa', 'groupaccess'],
  186. ['sa', 'managedobject'],
  187. ['sa', 'managedobjectprofile'],
  188. ['sa', 'managedobjectselector'],
  189. ['sa', 'monitor'],
  190. ['sa', 'mrt'],
  191. ['sa', 'mrtconfig'],
  192. ['sa', 'objectnotification'],
  193. ['sa', 'terminationgroup'],
  194. ['sa', 'useraccess'],
  195. ['vc', 'vc'],
  196. ['vc', 'vcbindfilter'],
  197. ['vc', 'vcdomain'],
  198. ['vc', 'vcfilter'],
  199. ['vc', 'vctype'],
  200. ['wf', 'solution'],
  201. ['wf', 'workflow']]
  202. favicon_url = '/static/img/logo_24x24_deep_azure.png'
  203. theme = u'None'
  204. ext_apps =
  205. ['vc.vctype',
  206. 'main.style',
  207. 'gis.srs',
  208. 'peer.as',
  209. 'cm.objectnotify',
  210. 'fm.ignorepattern',
  211. 'sa.mrt',
  212. 'gis.street',
  213. 'ip.vrfgroup',
  214. 'main.desktop',
  215. 'pm.metrictype',
  216. 'main.customfield',
  217. 'fm.alarmtrigger',
  218. 'main.systemnotification',
  219. 'peer.maintainer',
  220. 'fm.classificationrule',
  221. 'peer.rir',
  222. 'peer.communitytype',
  223. 'inv.unknownmodel',
  224. 'sa.terminationgroup',
  225. 'main.group',
  226. 'main.tag',
  227. 'fm.ignoreeventrule',
  228. 'sa.managedobject',
  229. 'main.update',
  230. 'dns.dnszone',
  231. 'inv.objectmodel',
  232. 'sa.collector',
  233. 'main.config',
  234. 'main.customfieldenumgroup',
  235. 'pm.metricsettings',
  236. 'inv.connectiontype',
  237. 'peer.organisation',
  238. 'cm.prefixlist',
  239. 'fm.eventtrigger',
  240. 'wf.workflow',
  241. 'peer.community',
  242. 'pm.metric',
  243. 'fm.mib',
  244. 'sa.objectnotification',
  245. 'sa.monitor',
  246. 'main.language',
  247. 'peer.peer',
  248. 'peer.prefixlistbuilder',
  249. 'sa.authprofile',
  250. 'inv.inv',
  251. 'inv.modelinterface',
  252. 'peer.asset',
  253. 'pm.probe',
  254. 'inv.modelmapping',
  255. 'fm.monitor',
  256. 'gis.tms',
  257. 'peer.person',
  258. 'main.template',
  259. 'main.notificationgroup',
  260. 'kb.globalbookmark',
  261. 'kb.kbentry',
  262. 'peer.peeringpoint',
  263. 'ip.vrf',
  264. 'inv.connectionrule',
  265. 'sa.useraccess',
  266. 'sa.groupaccess',
  267. 'fm.eventclass',
  268. 'main.timepattern',
  269. 'fm.alarmclass',
  270. 'vc.vcdomain',
  271. 'pm.storage',
  272. 'sa.managedobjectprofile',
  273. 'main.systemtemplate',
  274. 'gis.building',
  275. 'fm.mibpreference',
  276. 'dns.dnszoneprofile',
  277. 'ip.ippool',
  278. 'main.search',
  279. 'ip.addressrange',
  280. 'sa.getnow',
  281. 'pm.grafana',
  282. 'main.mimetype',
  283. 'ip.prefix',
  284. 'main.user',
  285. 'inv.capability',
  286. 'main.shard',
  287. 'main.sync',
  288. 'pm.metricconfig',
  289. 'ip.prefixaccess',
  290. 'inv.map',
  291. 'cm.rpsl',
  292. 'fm.alarmclassconfig',
  293. 'main.userprofile',
  294. 'fm.alarm',
  295. 'sa.managedobjectselector',
  296. 'sa.mrtconfig',
  297. 'dns.dnsserver',
  298. 'gis.layer',
  299. 'inv.macdb',
  300. 'main.pyrule',
  301. 'main.audittrail',
  302. 'ip.address',
  303. 'kb.userbookmark',
  304. 'inv.networkchart',
  305. 'main.pendingnotifications',
  306. 'kb.kbentrytemplate',
  307. 'main.ref',
  308. 'inv.interfaceclassificationrule',
  309. 'peer.peergroup',
  310. 'project.project',
  311. 'fm.event',
  312. 'inv.vendor',
  313. 'main.schedule',
  314. 'main.refbookadmin',
  315. 'inv.coverage',
  316. 'main.prefixtable',
  317. 'wf.solution',
  318. 'pm.metricset',
  319. 'main.resourcestate',
  320. 'sa.commandsnippet',
  321. 'sa.administrativedomain',
  322. 'main.dbtrigger',
  323. 'fm.alarmseverity',
  324. 'sa.activator',
  325. 'vc.vcbindfilter',
  326. 'inv.interfaceprofile',
  327. 'fm.oidalias',
  328. 'main.welcome',
  329. 'inv.interface',
  330. 'pm.render',
  331. 'vc.vcfilter',
  332. 'inv.technology',
  333. 'vc.vc',
  334. 'gis.division']
  335. self =
  336. <noc.main.apps.desktop.views.DesktopApplication object at 0x7f03bd6c9710>
  337. ------------------------------------------------------------------------
  338. File: /opt/noc/lib/app/site.py (Line: 248)
  339. Function: inner
  340. 241 a = dict((k, v[0] if len(v) == 1 else v)
  341. 242 for k, v in request.GET.lists())
  342. 243 app_logger.debug("API %s %s %s",
  343. 244 request.method, request.path, a)
  344. 245 # Call handler
  345. 246 v.__dict__["hits_metric"] += 1
  346. 247 with v.__dict__["time_metric"].timer():
  347. 248 ==> r = v(request, *args, **kwargs)
  348. 249 # Dump SQL statements
  349. 250 if self.log_sql_statements:
  350. 251 from django.db import connections
  351. 252 tsc = 0
  352. 253 sc = defaultdict(int)
  353. 254 for conn in connections.all():
  354. Variables:
  355. args = ()
  356. view_map =
  357. {'GET': <bound method DesktopApplication.view_desktop of <noc.main.apps.desktop.views.DesktopApplication object at 0x7f03bd6c9710>>}
  358. Form = <class 'django.forms.forms.Form'>
  359. PermissionDenied = <class 'noc.lib.app.access.PermissionDenied'>
  360. DictParameter = <class 'noc.sa.interfaces.base.DictParameter'>
  361. self = <noc.lib.app.site.Site object at 0x7f03bfb0fe10>
  362. v =
  363. <bound method DesktopApplication.view_desktop of <noc.main.apps.desktop.views.DesktopApplication object at 0x7f03bd6c9710>>
  364. request =
  365. <WSGIRequest
  366. path:/main/desktop/,
  367. GET:<QueryDict: {}>,
  368. POST:<QueryDict: {}>,
  369. COOKIES:{'sessionid': '08f694b02037642e83d16b8a374ad68c'},
  370. META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  371. 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
  372. 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,ru;q=0.6',
  373. 'HTTP_CONNECTION': 'close',
  374. 'HTTP_COOKIE': 'sessionid=08f694b02037642e83d16b8a374ad68c',
  375. 'HTTP_HOST': '10.1.1.20',
  376. 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36',
  377. 'HTTP_X_SCHEME': 'http',
  378. 'PATH_INFO': u'/main/desktop/',
  379. 'QUERY_STRING': '',
  380. 'REMOTE_ADDR': '127.0.0.1',
  381. 'REQUEST_METHOD': 'GET',
  382. 'SCRIPT_NAME': u'',
  383. 'SERVER_NAME': '10.1.1.20',
  384. 'SERVER_PORT': '80',
  385. 'SERVER_PROTOCOL': 'HTTP/1.0',
  386. 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7f03ce626c00>,
  387. 'wsgi.input': <_io.BytesIO object at 0x7f03bcd5be90>,
  388. 'wsgi.multiprocess': True,
  389. 'wsgi.multithread': False,
  390. 'wsgi.run_once': False,
  391. 'wsgi.url_scheme': 'http',
  392. 'wsgi.version': (1, 0)}>
  393. app_logger = <logging.Logger object at 0x7f03bd6c97d0>
  394. InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
  395. to_log_api_call = False
  396. kwargs = {}
  397. nq = <function nq at 0x7f03bcc3a6e0>
  398. app =
  399. <noc.main.apps.desktop.views.DesktopApplication object at 0x7f03bd6c9710>
  400. ------------------------------------------------------------------------
  401. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement