Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2014-12-23 15:39:24.166960)
- Working directory: /opt/noc
- <type 'exceptions.KeyError'>
- u'None'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/main/apps/desktop/views.py (Line: 143)
- Function: view_desktop
- 136 "trace_extjs_events": config.getboolean("main", "trace_extjs_events"),
- 137 "preview_theme": self.get_preview_theme(request)
- 138 }
- 139 theme = self.get_theme(request)
- 140 return self.render(
- 141 request, "desktop.html", apps=apps, setup=setup,
- 142 theme=theme,
- 143 ==> theme_css=self.themes[theme]["css"],
- 144 theme_js=self.themes[theme]["js"]
- 145 )
- 146
- 147 ##
- 148 ## Exposed Public API
- 149 ##
- Variables:
- a = 'wf.workflow'
- favicon_mime = 'image/png'
- request =
- <WSGIRequest
- path:/main/desktop/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'sessionid': '08f694b02037642e83d16b8a374ad68c'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,ru;q=0.6',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=08f694b02037642e83d16b8a374ad68c',
- 'HTTP_HOST': '10.1.1.20',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/main/desktop/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.1.1.20',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7f03ce626c00>,
- 'wsgi.input': <_io.BytesIO object at 0x7f03bcd5be90>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- setup =
- {'branding_background_color': '#c0c0c0',
- 'branding_color': '#000',
- 'debug_js': False,
- 'enable_gis_base_google_roadmap': False,
- 'enable_gis_base_google_sat': False,
- 'enable_gis_base_osm': True,
- 'favicon_mime': 'image/png',
- 'favicon_url': '/static/img/logo_24x24_deep_azure.png',
- 'install_collection': False,
- 'installation_name': 'Azimut',
- 'logo_height': '24',
- 'logo_url': '/static/img/logo_black.svg',
- 'logo_width': '24',
- 'preview_theme': u'None',
- 'trace_extjs_events': False}
- apps =
- [['cm', 'objectnotify'],
- ['cm', 'prefixlist'],
- ['cm', 'rpsl'],
- ['dns', 'dnsserver'],
- ['dns', 'dnszone'],
- ['dns', 'dnszoneprofile'],
- ['fm', 'alarm'],
- ['fm', 'alarmclass'],
- ['fm', 'alarmclassconfig'],
- ['fm', 'alarmseverity'],
- ['fm', 'alarmtrigger'],
- ['fm', 'classificationrule'],
- ['fm', 'event'],
- ['fm', 'eventclass'],
- ['fm', 'eventtrigger'],
- ['fm', 'ignoreeventrule'],
- ['fm', 'ignorepattern'],
- ['fm', 'mib'],
- ['fm', 'mibpreference'],
- ['fm', 'monitor'],
- ['fm', 'oidalias'],
- ['gis', 'building'],
- ['gis', 'division'],
- ['gis', 'layer'],
- ['gis', 'srs'],
- ['gis', 'street'],
- ['gis', 'tms'],
- ['inv', 'capability'],
- ['inv', 'connectionrule'],
- ['inv', 'connectiontype'],
- ['inv', 'coverage'],
- ['inv', 'interface'],
- ['inv', 'interfaceclassificationrule'],
- ['inv', 'interfaceprofile'],
- ['inv', 'inv'],
- ['inv', 'macdb'],
- ['inv', 'map'],
- ['inv', 'modelinterface'],
- ['inv', 'modelmapping'],
- ['inv', 'networkchart'],
- ['inv', 'objectmodel'],
- ['inv', 'technology'],
- ['inv', 'unknownmodel'],
- ['inv', 'vendor'],
- ['ip', 'address'],
- ['ip', 'addressrange'],
- ['ip', 'ippool'],
- ['ip', 'prefix'],
- ['ip', 'prefixaccess'],
- ['ip', 'vrf'],
- ['ip', 'vrfgroup'],
- ['kb', 'globalbookmark'],
- ['kb', 'kbentry'],
- ['kb', 'kbentrytemplate'],
- ['kb', 'userbookmark'],
- ['main', 'audittrail'],
- ['main', 'config'],
- ['main', 'customfield'],
- ['main', 'customfieldenumgroup'],
- ['main', 'dbtrigger'],
- ['main', 'desktop'],
- ['main', 'group'],
- ['main', 'language'],
- ['main', 'mimetype'],
- ['main', 'notificationgroup'],
- ['main', 'pendingnotifications'],
- ['main', 'prefixtable'],
- ['main', 'pyrule'],
- ['main', 'ref'],
- ['main', 'refbookadmin'],
- ['main', 'resourcestate'],
- ['main', 'schedule'],
- ['main', 'search'],
- ['main', 'shard'],
- ['main', 'style'],
- ['main', 'sync'],
- ['main', 'systemnotification'],
- ['main', 'systemtemplate'],
- ['main', 'tag'],
- ['main', 'template'],
- ['main', 'timepattern'],
- ['main', 'update'],
- ['main', 'user'],
- ['main', 'userprofile'],
- ['main', 'welcome'],
- ['peer', 'as'],
- ['peer', 'asset'],
- ['peer', 'community'],
- ['peer', 'communitytype'],
- ['peer', 'maintainer'],
- ['peer', 'organisation'],
- ['peer', 'peer'],
- ['peer', 'peergroup'],
- ['peer', 'peeringpoint'],
- ['peer', 'person'],
- ['peer', 'prefixlistbuilder'],
- ['peer', 'rir'],
- ['pm', 'grafana'],
- ['pm', 'metric'],
- ['pm', 'metricconfig'],
- ['pm', 'metricset'],
- ['pm', 'metricsettings'],
- ['pm', 'metrictype'],
- ['pm', 'probe'],
- ['pm', 'render'],
- ['pm', 'storage'],
- ['project', 'project'],
- ['sa', 'activator'],
- ['sa', 'administrativedomain'],
- ['sa', 'authprofile'],
- ['sa', 'collector'],
- ['sa', 'commandsnippet'],
- ['sa', 'getnow'],
- ['sa', 'groupaccess'],
- ['sa', 'managedobject'],
- ['sa', 'managedobjectprofile'],
- ['sa', 'managedobjectselector'],
- ['sa', 'monitor'],
- ['sa', 'mrt'],
- ['sa', 'mrtconfig'],
- ['sa', 'objectnotification'],
- ['sa', 'terminationgroup'],
- ['sa', 'useraccess'],
- ['vc', 'vc'],
- ['vc', 'vcbindfilter'],
- ['vc', 'vcdomain'],
- ['vc', 'vcfilter'],
- ['vc', 'vctype'],
- ['wf', 'solution'],
- ['wf', 'workflow']]
- favicon_url = '/static/img/logo_24x24_deep_azure.png'
- theme = u'None'
- ext_apps =
- ['vc.vctype',
- 'main.style',
- 'gis.srs',
- 'peer.as',
- 'cm.objectnotify',
- 'fm.ignorepattern',
- 'sa.mrt',
- 'gis.street',
- 'ip.vrfgroup',
- 'main.desktop',
- 'pm.metrictype',
- 'main.customfield',
- 'fm.alarmtrigger',
- 'main.systemnotification',
- 'peer.maintainer',
- 'fm.classificationrule',
- 'peer.rir',
- 'peer.communitytype',
- 'inv.unknownmodel',
- 'sa.terminationgroup',
- 'main.group',
- 'main.tag',
- 'fm.ignoreeventrule',
- 'sa.managedobject',
- 'main.update',
- 'dns.dnszone',
- 'inv.objectmodel',
- 'sa.collector',
- 'main.config',
- 'main.customfieldenumgroup',
- 'pm.metricsettings',
- 'inv.connectiontype',
- 'peer.organisation',
- 'cm.prefixlist',
- 'fm.eventtrigger',
- 'wf.workflow',
- 'peer.community',
- 'pm.metric',
- 'fm.mib',
- 'sa.objectnotification',
- 'sa.monitor',
- 'main.language',
- 'peer.peer',
- 'peer.prefixlistbuilder',
- 'sa.authprofile',
- 'inv.inv',
- 'inv.modelinterface',
- 'peer.asset',
- 'pm.probe',
- 'inv.modelmapping',
- 'fm.monitor',
- 'gis.tms',
- 'peer.person',
- 'main.template',
- 'main.notificationgroup',
- 'kb.globalbookmark',
- 'kb.kbentry',
- 'peer.peeringpoint',
- 'ip.vrf',
- 'inv.connectionrule',
- 'sa.useraccess',
- 'sa.groupaccess',
- 'fm.eventclass',
- 'main.timepattern',
- 'fm.alarmclass',
- 'vc.vcdomain',
- 'pm.storage',
- 'sa.managedobjectprofile',
- 'main.systemtemplate',
- 'gis.building',
- 'fm.mibpreference',
- 'dns.dnszoneprofile',
- 'ip.ippool',
- 'main.search',
- 'ip.addressrange',
- 'sa.getnow',
- 'pm.grafana',
- 'main.mimetype',
- 'ip.prefix',
- 'main.user',
- 'inv.capability',
- 'main.shard',
- 'main.sync',
- 'pm.metricconfig',
- 'ip.prefixaccess',
- 'inv.map',
- 'cm.rpsl',
- 'fm.alarmclassconfig',
- 'main.userprofile',
- 'fm.alarm',
- 'sa.managedobjectselector',
- 'sa.mrtconfig',
- 'dns.dnsserver',
- 'gis.layer',
- 'inv.macdb',
- 'main.pyrule',
- 'main.audittrail',
- 'ip.address',
- 'kb.userbookmark',
- 'inv.networkchart',
- 'main.pendingnotifications',
- 'kb.kbentrytemplate',
- 'main.ref',
- 'inv.interfaceclassificationrule',
- 'peer.peergroup',
- 'project.project',
- 'fm.event',
- 'inv.vendor',
- 'main.schedule',
- 'main.refbookadmin',
- 'inv.coverage',
- 'main.prefixtable',
- 'wf.solution',
- 'pm.metricset',
- 'main.resourcestate',
- 'sa.commandsnippet',
- 'sa.administrativedomain',
- 'main.dbtrigger',
- 'fm.alarmseverity',
- 'sa.activator',
- 'vc.vcbindfilter',
- 'inv.interfaceprofile',
- 'fm.oidalias',
- 'main.welcome',
- 'inv.interface',
- 'pm.render',
- 'vc.vcfilter',
- 'inv.technology',
- 'vc.vc',
- 'gis.division']
- self =
- <noc.main.apps.desktop.views.DesktopApplication object at 0x7f03bd6c9710>
- ------------------------------------------------------------------------
- File: /opt/noc/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 =
- {'GET': <bound method DesktopApplication.view_desktop of <noc.main.apps.desktop.views.DesktopApplication object at 0x7f03bd6c9710>>}
- 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 0x7f03bfb0fe10>
- v =
- <bound method DesktopApplication.view_desktop of <noc.main.apps.desktop.views.DesktopApplication object at 0x7f03bd6c9710>>
- request =
- <WSGIRequest
- path:/main/desktop/,
- GET:<QueryDict: {}>,
- POST:<QueryDict: {}>,
- COOKIES:{'sessionid': '08f694b02037642e83d16b8a374ad68c'},
- META:{'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
- 'HTTP_ACCEPT_ENCODING': 'gzip, deflate, sdch',
- 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8,ru;q=0.6',
- 'HTTP_CONNECTION': 'close',
- 'HTTP_COOKIE': 'sessionid=08f694b02037642e83d16b8a374ad68c',
- 'HTTP_HOST': '10.1.1.20',
- 'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.65 Safari/537.36',
- 'HTTP_X_SCHEME': 'http',
- 'PATH_INFO': u'/main/desktop/',
- 'QUERY_STRING': '',
- 'REMOTE_ADDR': '127.0.0.1',
- 'REQUEST_METHOD': 'GET',
- 'SCRIPT_NAME': u'',
- 'SERVER_NAME': '10.1.1.20',
- 'SERVER_PORT': '80',
- 'SERVER_PROTOCOL': 'HTTP/1.0',
- 'wsgi.errors': <open file '/dev/null', mode 'a+' at 0x7f03ce626c00>,
- 'wsgi.input': <_io.BytesIO object at 0x7f03bcd5be90>,
- 'wsgi.multiprocess': True,
- 'wsgi.multithread': False,
- 'wsgi.run_once': False,
- 'wsgi.url_scheme': 'http',
- 'wsgi.version': (1, 0)}>
- app_logger = <logging.Logger object at 0x7f03bd6c97d0>
- InterfaceTypeError = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- to_log_api_call = False
- kwargs = {}
- nq = <function nq at 0x7f03bcc3a6e0>
- app =
- <noc.main.apps.desktop.views.DesktopApplication object at 0x7f03bd6c9710>
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement