Advertisement
Guest User

Roman_S

a guest
Jan 16th, 2012
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.71 KB | None | 0 0
  1. [root@noc-project noc]# ./noc runserver 192.168.13.249:8000
  2. 2012-01-17 00:04:10,626 Running NOC 0.7(3) webserver
  3. 2012-01-17 00:04:10,626 Loading site
  4. 2012-01-17 00:04:10,626 Listening 192.168.13.249:8000
  5. 2012-01-17 00:04:10,628 Running child 22407
  6. 2012-01-17 00:04:10,744 Using JSON library: cjson
  7. 2012-01-17 00:04:10,751 Loading PeriodicRegistry
  8. 2012-01-17 00:04:10,757 Loading DownloaderRegistry
  9. /usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-i686.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
  10. 2012-01-17 00:04:10,825 SSH: Using gmpy
  11. 2012-01-17 00:04:10,851 Loading ProfileRegistry
  12. 2012-01-17 00:04:11,199 Loading ScriptRegistry
  13. 2012-01-17 00:04:11,273 Loading VCSRegistry
  14. 2012-01-17 00:04:11,307 Loading GeneratorRegistry
  15. 2012-01-17 00:04:11,323 Loading MacroRegistry
  16. 2012-01-17 00:04:11,345 Loading ParserRegistry
  17. 2012-01-17 00:04:11,365 UNHANDLED EXCEPTION (2012-01-17 00:04:11.354512)
  18. Working directory: /opt/noc
  19. <class 'psycopg2.OperationalError'>
  20. FATAL: Ident authentication failed for user "noc"
  21.  
  22. START OF TRACEBACK
  23. ------------------------------------------------------------------------
  24. File: /usr/lib/python2.6/site-packages/psycopg2-2.4.4-py2.6-linux-i686.egg/psycopg2/__init__.py (Line: 179)
  25. Function: connect
  26. 172 dsn = " ".join(["%s=%s" % (k, _param_escape(str(v)))
  27. 173 for (k, v) in items])
  28. 174
  29. 175 if not dsn:
  30. 176 raise InterfaceError('missing dsn and no parameters')
  31. 177
  32. 178 return _connect(dsn,
  33. 179 ==> connection_factory=connection_factory, async=async)
  34. 180
  35. 181
  36. 182 __all__ = filter(lambda k: not k.startswith('_'), locals().keys())
  37. 183
  38. Variables:
  39. database = 'noc'
  40. items = [('dbname', 'noc'), ('user', 'noc'), ('password', 'noc')]
  41. k = 'password'
  42. v = 'noc'
  43. port = None
  44. dsn = 'dbname=noc user=noc password=noc'
  45. host = None
  46. user = 'noc'
  47. kwargs = {}
  48. async = False
  49. password = 'noc'
  50. connection_factory = None
  51. ------------------------------------------------------------------------
  52. File: /opt/noc/contrib/lib/django/db/backends/postgresql_psycopg2/base.py (Line: 140)
  53. Function: _cursor
  54. 133 conn_params['user'] = settings_dict['USER']
  55. 134 if settings_dict['PASSWORD']:
  56. 135 conn_params['password'] = settings_dict['PASSWORD']
  57. 136 if settings_dict['HOST']:
  58. 137 conn_params['host'] = settings_dict['HOST']
  59. 138 if settings_dict['PORT']:
  60. 139 conn_params['port'] = settings_dict['PORT']
  61. 140 ==> self.connection = Database.connect(**conn_params)
  62. 141 self.connection.set_client_encoding('UTF8')
  63. 142 self.connection.set_isolation_level(self.isolation_level)
  64. 143 connection_created.send(sender=self.__class__, connection=self)
  65. 144 cursor = self.connection.cursor()
  66. 145 cursor.tzinfo_factory = None
  67. 146 if new_connection:
  68. Variables:
  69. conn_params = {'password': 'noc', 'user': 'noc', 'database': 'noc'}
  70. new_connection = True
  71. settings_dict = {'ENGINE': 'django.db.backends.postgresql_psycopg2', 'TEST_MIRROR': None, 'NAME': 'noc', 'TEST_CHARSET': None, 'TIME_ZONE': 'Europe/Moscow', 'TEST_COLLATION': None, 'OPTIONS': {}, 'HOST': '', 'USER': 'noc', 'TEST_NAME': 'test_noc', 'PASSWORD': 'noc', 'PORT': ''}
  72. self = <django.db.backends.postgresql_psycopg2.base.DatabaseWrapper object at 0x9b464b4>
  73. set_tz = 'Europe/Moscow'
  74. ------------------------------------------------------------------------
  75. File: /opt/noc/contrib/lib/django/db/backends/__init__.py (Line: 250)
  76. Function: cursor
  77. 243 if self.connection is not None:
  78. 244 self.connection.close()
  79. 245 self.connection = None
  80. 246
  81. 247 def cursor(self):
  82. 248 if (self.use_debug_cursor or
  83. 249 (self.use_debug_cursor is None and settings.DEBUG)):
  84. 250 ==> cursor = self.make_debug_cursor(self._cursor())
  85. 251 else:
  86. 252 cursor = util.CursorWrapper(self._cursor(), self)
  87. 253 return cursor
  88. 254
  89. 255 def make_debug_cursor(self, cursor):
  90. 256 return util.CursorDebugWrapper(cursor, self)
  91. Variables:
  92. self = <django.db.backends.postgresql_psycopg2.base.DatabaseWrapper object at 0x9b464b4>
  93. ------------------------------------------------------------------------
  94. File: /opt/noc/contrib/lib/django/db/models/sql/compiler.py (Line: 734)
  95. Function: execute_sql
  96. 727 raise EmptyResultSet
  97. 728 except EmptyResultSet:
  98. 729 if result_type == MULTI:
  99. 730 return empty_iter()
  100. 731 else:
  101. 732 return
  102. 733
  103. 734 ==> cursor = self.connection.cursor()
  104. 735 cursor.execute(sql, params)
  105. 736
  106. 737 if not result_type:
  107. 738 return cursor
  108. 739 if result_type == SINGLE:
  109. 740 if self.query.ordering_aliases:
  110. Variables:
  111. self = <django.db.models.sql.compiler.SQLCompiler object at 0xa7e2dcc>
  112. params = (True,)
  113. result_type = 'multi'
  114. sql = 'SELECT "main_dbtrigger"."id", "main_dbtrigger"."name", "main_dbtrigger"."model", "main_dbtrigger"."is_active", "main_dbtrigger"."order", "main_dbtrigger"."description", "main_dbtrigger"."pre_save_rule_id", "main_dbtrigger"."post_save_rule_id", "main_dbtrigger"."pre_delete_rule_id", "main_dbtrigger"."post_delete_rule_id" FROM "main_dbtrigger" WHERE "main_dbtrigger"."is_active" = %s ORDER BY "main_dbtrigger"."order" ASC'
  115. ------------------------------------------------------------------------
  116. File: /opt/noc/contrib/lib/django/db/models/sql/compiler.py (Line: 680)
  117. Function: results_iter
  118. 673 def results_iter(self):
  119. 674 """
  120. 675 Returns an iterator over the results from executing this query.
  121. 676 """
  122. 677 resolve_columns = hasattr(self, 'resolve_columns')
  123. 678 fields = None
  124. 679 has_aggregate_select = bool(self.query.aggregate_select)
  125. 680 ==> for rows in self.execute_sql(MULTI):
  126. 681 for row in rows:
  127. 682 if resolve_columns:
  128. 683 if fields is None:
  129. 684 # We only set this up here because
  130. 685 # related_select_fields isn't populated until
  131. 686 # execute_sql() has been called.
  132. Variables:
  133. fields = None
  134. self = <django.db.models.sql.compiler.SQLCompiler object at 0xa7e2dcc>
  135. has_aggregate_select = False
  136. resolve_columns = False
  137. ------------------------------------------------------------------------
  138. File: /opt/noc/contrib/lib/django/db/models/query.py (Line: 273)
  139. Function: iterator
  140. 266 init_list.append(field.attname)
  141. 267 model_cls = deferred_class_factory(self.model, skip)
  142. 268
  143. 269 # Cache db and model outside the loop
  144. 270 db = self.db
  145. 271 model = self.model
  146. 272 compiler = self.query.get_compiler(using=db)
  147. 273 ==> for row in compiler.results_iter():
  148. 274 if fill_cache:
  149. 275 obj, _ = get_cached_row(model, row,
  150. 276 index_start, using=db, max_depth=max_depth,
  151. 277 requested=requested, offset=len(aggregate_select),
  152. 278 only_load=only_load)
  153. 279 else:
  154. Variables:
  155. requested = None
  156. fill_cache = False
  157. aggregate_select = []
  158. fields = [<django.db.models.fields.AutoField object at 0x9feadcc>, <django.db.models.fields.CharField object at 0x9fea6cc>, <django.db.models.fields.CharField object at 0x9fea72c>, <django.db.models.fields.BooleanField object at 0x9fea76c>, <django.db.models.fields.IntegerField object at 0x9fea78c>, <django.db.models.fields.TextField object at 0x9fea7cc>, <django.db.models.fields.related.ForeignKey object at 0x9fea82c>, <django.db.models.fields.related.ForeignKey object at 0x9fea84c>, <django.db.models.fields.related.ForeignKey object at 0x9fea8cc>, <django.db.models.fields.related.ForeignKey object at 0x9fea94c>]
  159. skip = None
  160. self = []
  161. load_fields = []
  162. db = 'default'
  163. index_start = 0
  164. extra_select = []
  165. aggregate_start = 10
  166. pk_idx = 0
  167. model = <class 'noc.main.models.DBTrigger'>
  168. only_load = {}
  169. max_depth = 5
  170. compiler = <django.db.models.sql.compiler.SQLCompiler object at 0xa7e2dcc>
  171. ------------------------------------------------------------------------
  172. File: /opt/noc/contrib/lib/django/db/models/query.py (Line: 772)
  173. Function: _fill_cache
  174. 765 """
  175. 766 Fills the result cache with 'num' more entries (or until the results
  176. 767 iterator is exhausted).
  177. 768 """
  178. 769 if self._iter:
  179. 770 try:
  180. 771 for i in range(num or ITER_CHUNK_SIZE):
  181. 772 ==> self._result_cache.append(self._iter.next())
  182. 773 except StopIteration:
  183. 774 self._iter = None
  184. 775
  185. 776 def _next_is_sticky(self):
  186. 777 """
  187. 778 Indicates that the next filter call and the one following that should
  188. Variables:
  189. i = 0
  190. self = []
  191. num = None
  192. ------------------------------------------------------------------------
  193. File: /opt/noc/contrib/lib/django/db/models/query.py (Line: 107)
  194. Function: _result_iter
  195. 100 upper = len(self._result_cache)
  196. 101 while pos < upper:
  197. 102 yield self._result_cache[pos]
  198. 103 pos = pos + 1
  199. 104 if not self._iter:
  200. 105 raise StopIteration
  201. 106 if len(self._result_cache) <= pos:
  202. 107 ==> self._fill_cache()
  203. 108
  204. 109 def __nonzero__(self):
  205. 110 if self._result_cache is not None:
  206. 111 return bool(self._result_cache)
  207. 112 try:
  208. 113 iter(self).next()
  209. Variables:
  210. upper = 0
  211. self = []
  212. pos = 0
  213. ------------------------------------------------------------------------
  214. File: /opt/noc/main/models.py (Line: 1156)
  215. Function: refresh_cache
  216. 1149 def refresh_cache(cls, *args, **kwargs):
  217. 1150 # Clear cache
  218. 1151 cls._pre_save_triggers = {}
  219. 1152 cls._post_save_triggers = {}
  220. 1153 cls._pre_delete_triggers = {}
  221. 1154 cls._post_delete_triggers = {}
  222. 1155 # Add all active triggers
  223. 1156 ==> for t in cls.objects.filter(is_active=True).order_by("order"):
  224. 1157 for r in ["pre_save", "post_save", "pre_delete", "post_delete"]:
  225. 1158 c = getattr(cls, "_%s_triggers" % r)
  226. 1159 rule = getattr(t, "%s_rule" % r)
  227. 1160 if rule:
  228. 1161 try:
  229. 1162 c[t.model] += [rule]
  230. Variables:
  231. cls = <class 'noc.main.models.DBTrigger'>
  232. args = ()
  233. kwargs = {}
  234. ------------------------------------------------------------------------
  235. File: /opt/noc/main/models.py (Line: 1440)
  236. Function: <module>
  237. 1433 return cp
  238. 1434
  239. 1435
  240. 1436 ##
  241. 1437 ## Install triggers
  242. 1438 ##
  243. 1439 if settings.IS_WEB and not settings.IS_TEST:
  244. 1440 ==> DBTrigger.refresh_cache() # Load existing triggers
  245. 1441 # Trigger cache syncronization
  246. 1442 post_save.connect(DBTrigger.refresh_cache, sender=DBTrigger)
  247. 1443 post_delete.connect(DBTrigger.refresh_cache, sender=DBTrigger)
  248. 1444 # Install signal hooks
  249. 1445 pre_save.connect(DBTrigger.pre_save_dispatch)
  250. 1446 post_save.connect(DBTrigger.post_save_dispatch)
  251. Variables:
  252. MaxLengthValidator = <class 'django.core.validators.MaxLengthValidator'>
  253. Group = <class 'django.contrib.auth.models.Group'>
  254. BinaryField = <class 'noc.lib.fields.BinaryField'>
  255. TextArrayField = <class 'noc.lib.fields.TextArrayField'>
  256. NotificationGroupUser = <class 'noc.main.models.NotificationGroupUser'>
  257. periodic_registry = <noc.lib.periodic.PeriodicRegistry object at 0x9f4208c>
  258. model_choices = <function model_choices at 0x9fe05dc>
  259. with_statement = _Feature((2, 5, 0, 'alpha', 1), (2, 6, 0, 'alpha', 0), 32768)
  260. site = <noc.lib.app.site.Site object at 0x9d39dcc>
  261. datetime = <module 'datetime' from '/usr/lib/python2.6/lib-dynload/datetime.so'>
  262. rx_mac_3_octets = <_sre.SRE_Pattern object at 0x9f13118>
  263. UserProfileManager = <class 'noc.main.models.UserProfileManager'>
  264. SystemNotification = <class 'noc.main.models.SystemNotification'>
  265. NoPyRuleException = <class 'noc.main.models.NoPyRuleException'>
  266. ColorField = <class 'noc.lib.fields.ColorField'>
  267. get_user = <function get_user at 0x9f3cf44>
  268. DatabaseStorage = <class 'noc.main.models.DatabaseStorage'>
  269. database_storage = <noc.lib.database_storage.DatabaseStorage object at 0x9fd1fac>
  270. CIDRField = <class 'noc.lib.fields.CIDRField'>
  271. Language = <class 'noc.main.models.Language'>
  272. Permission = <class 'noc.main.models.Permission'>
  273. audit_trail_delete = <function audit_trail_delete at 0x9f4b95c>
  274. rx_coding = <_sre.SRE_Pattern object at 0xa01ddb8>
  275. UserProfileContact = <class 'noc.main.models.UserProfileContact'>
  276. AUDIT_TRAIL_EXCLUDE = set(['main_audittrail', 'kb_kbentryhistory', 'django_session', 'sa_reducetask', 'kb_kbentrypreviewlog', 'sa_maptask', 'django_admin_log', 'auth_message', 'fm_eventlog'])
  277. Style = <class 'noc.main.models.Style'>
  278. TP = <class 'noc.lib.timepattern.TimePattern'>
  279. __package__ = 'noc.main'
  280. re = <module 're' from '/usr/lib/python2.6/re.pyc'>
  281. PickledField = <class 'noc.lib.fields.PickledField'>
  282. RefBookData = <class 'noc.main.models.RefBookData'>
  283. models = <module 'django.db.models' from '/opt/noc/contrib/lib/django/db/models/__init__.pyc'>
  284. types = <module 'types' from '/usr/lib/python2.6/types.pyc'>
  285. RBDManader = <class 'noc.main.models.RBDManader'>
  286. post_save = <django.dispatch.dispatcher.Signal object at 0x9a2eaac>
  287. SystemTemplate = <class 'noc.main.models.SystemTemplate'>
  288. audit_trail_save = <function audit_trail_save at 0x9f4b844>
  289. Template = <class 'noc.main.models.Template'>
  290. UserProfile = <class 'noc.main.models.UserProfile'>
  291. databrowse = <module 'django.contrib.databrowse' from '/opt/noc/contrib/lib/django/contrib/databrowse/__init__.pyc'>
  292. __doc__ = '\n'
  293. USER_NOTIFICATION_METHOD_CHOICES = [('mail', 'Email')]
  294. User = <class 'django.contrib.auth.models.User'>
  295. MIMEType = <class 'noc.main.models.MIMEType'>
  296. check_extension = <function inner_validator at 0x9964f7c>
  297. NotificationGroup = <class 'noc.main.models.NotificationGroup'>
  298. on_new_model = <function on_new_model at 0x9f4ba04>
  299. RefBook = <class 'noc.main.models.RefBook'>
  300. __builtins__ = {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2010 Python Software Foundation.
  301. All Rights Reserved.
  302.  
  303. Copyright (c) 2000 BeOpen.com.
  304. All Rights Reserved.
  305.  
  306. Copyright (c) 1995-2001 Corporation for National Research Initiatives.
  307. All Rights Reserved.
  308.  
  309. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
  310. All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
  311. for supporting Python development. See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <function _gmpy_pow at 0xa27efb4>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}
  312. IP = <class 'noc.lib.ip.IP'>
  313. __file__ = '/opt/noc/main/models.pyc'
  314. PrefixTable = <class 'noc.main.models.PrefixTable'>
  315. pre_save = <django.dispatch.dispatcher.Signal object at 0x9a2ea8c>
  316. PyRule = <class 'noc.main.models.PyRule'>
  317. TimePatternTerm = <class 'noc.main.models.TimePatternTerm'>
  318. interface_registry = {'IRemoveVlan': <class 'noc.sa.interfaces.iremovevlan.IRemoveVlan'>, 'IGetTopologyData': <class 'noc.sa.interfaces.igettopologydata.IGetTopologyData'>, 'IGetDot11Associations': <class 'noc.sa.interfaces.igetdot11associations.IGetDot11Associations'>, 'ISyncVlans': <class 'noc.sa.interfaces.isyncvlans.ISyncVlans'>, 'IGetDictList': <class 'noc.sa.interfaces.igetdictlist.IGetDictList'>, 'IGetBFDSessions': <class 'noc.sa.interfaces.igetbfdsessions.IGetBFDSessions'>, 'IGetCDPNeighbors': <class 'noc.sa.interfaces.igetcdpneighbors.IGetCDPNeighbors'>, 'IDispositionCondition': <class 'noc.sa.interfaces.idispositioncondition.IDispositionCondition'>, 'IDBPreSave': <class 'noc.sa.interfaces.idbpresave.IDBPreSave'>, 'INotifySAE': <class 'noc.sa.interfaces.inotifysae.INotifySAE'>, 'IGetVlans': <class 'noc.sa.interfaces.igetvlans.IGetVlans'>, 'IConfigDiffFilter': <class 'noc.sa.interfaces.iconfigdifffilter.IConfigDiffFilter'>, 'IGetFDPNeighbors': <class 'noc.sa.interfaces.igetfdpneighbors.IGetFDPNeighbors'>, 'IGetCopperTDRDiag': <class 'noc.sa.interfaces.igetcoppertdrdiag.IGetCopperTDRDiag'>, 'ISyncPrefixLists': <class 'noc.sa.interfaces.isyncprefixlists.ISyncPrefixLists'>, 'IGetPortchannel': <class 'noc.sa.interfaces.igetportchannel.IGetPortchannel'>, 'IGetIfIndex': <class 'noc.sa.interfaces.igetifindex.IGetIfIndex'>, 'IGetMACAddressTable': <class 'noc.sa.interfaces.igetmacaddresstable.IGetMACAddressTable'>, 'IGetSNMPGet': <class 'noc.sa.interfaces.igetsnmpget.IGetSNMPGet'>, 'IReduceTask': <class 'noc.sa.interfaces.ireducetask.IReduceTask'>, 'IHasVlan': <class 'noc.sa.interfaces.ihasvlan.IHasVlan'>, 'IHasLocalUser': <class 'noc.sa.interfaces.ihaslocaluser.IHasLocalUser'>, 'IPeriodicTask': <class 'noc.sa.interfaces.iperiodictask.IPeriodicTask'>, 'IGetLocalUsers': <class 'noc.sa.interfaces.igetlocalusers.IGetLocalUsers'>, 'Interface': <class 'noc.sa.interfaces.base.Interface'>, 'IConfigFilter': <class 'noc.sa.interfaces.iconfigfilter.IConfigFilter'>, 'IGetARP': <class 'noc.sa.interfaces.igetarp.IGetARP'>, 'IPing': <class 'noc.sa.interfaces.iping.IPing'>, 'IAddVlan': <class 'noc.sa.interfaces.iaddvlan.IAddVlan'>, 'ICommands': <class 'noc.sa.interfaces.icommands.ICommands'>, 'IDBPostSave': <class 'noc.sa.interfaces.idbpostsave.IDBPostSave'>, 'IGetLicense': <class 'noc.sa.interfaces.igetlicense.IGetLicense'>, 'IGetObjectStatus': <class 'noc.sa.interfaces.igetobjectstatus.IGetObjectStatus'>, 'IGetHTTPGet': <class 'noc.sa.interfaces.igethttpget.IGetHTTPGet'>, 'IGetFQDN': <class 'noc.sa.interfaces.igetfqdn.IGetFQDN'>, 'IGetInterfaceStatus': <class 'noc.sa.interfaces.igetinterfacestatus.IGetInterfaceStatus'>, 'IGetSwitchport': <class 'noc.sa.interfaces.igetswitchport.IGetSwitchport'>, 'IDBPreDelete': <class 'noc.sa.interfaces.idbpredelete.IDBPreDelete'>, 'IGetInterfaces': <class 'noc.sa.interfaces.igetinterfaces.IGetInterfaces'>, 'IAuthenticationBackend': <class 'noc.sa.interfaces.iauthenticationbackend.IAuthenticationBackend'>, 'IGetSNMPGetNext': <class 'noc.sa.interfaces.igetsnmpgetnext.IGetSNMPGetNext'>, 'IAlarmTrigger': <class 'noc.sa.interfaces.ialarmtrigger.IAlarmTrigger'>, 'IGetSpanningTree': <class 'noc.sa.interfaces.igetspanningtree.IGetSpanningTree'>, 'IGetVersion': <class 'noc.sa.interfaces.igetversion.IGetVersion'>, 'IConfigValidator': <class 'noc.sa.interfaces.iconfigvalidator.IConfigValidator'>, 'IEventTrigger': <class 'noc.sa.interfaces.ieventtrigger.IEventTrigger'>, 'IDBPostDelete': <class 'noc.sa.interfaces.idbpostdelete.IDBPostDelete'>, 'IGetDHCPBinding': <class 'noc.sa.interfaces.igetdhcpbinding.IGetDHCPBinding'>, 'IGetChassisID': <class 'noc.sa.interfaces.igetchassisid.IGetChassisID'>, 'IGetLLDPNeighbors': <class 'noc.sa.interfaces.igetlldpneighbors.IGetLLDPNeighbors'>, 'IGetObjectsStatus': <class 'noc.sa.interfaces.igetobjectsstatus.IGetObjectsStatus'>, 'IAuthenticationForm': <class 'noc.sa.interfaces.iauthenticationform.IAuthenticationForm'>, 'IPingCheck': <class 'noc.sa.interfaces.ipingcheck.IPingCheck'>, 'IGetConfig': <class 'noc.sa.interfaces.igetconfig.IGetConfig'>, 'IEvent': <class 'noc.sa.interfaces.ievent.IEvent'>}
  319. Checkpoint = <class 'noc.main.models.Checkpoint'>
  320. Context = <class 'django.template.context.Context'>
  321. RefBookField = <class 'noc.main.models.RefBookField'>
  322. __name__ = 'noc.main.models'
  323. NotificationGroupOther = <class 'noc.main.models.NotificationGroupOther'>
  324. AuditTrail = <class 'noc.main.models.AuditTrail'>
  325. _ = <function ugettext at 0xb748f25c>
  326. PrefixTablePrefix = <class 'noc.main.models.PrefixTablePrefix'>
  327. search_methods = set([<bound method ModelBase.search of <class 'noc.cm.models.RPSL'>>, <bound method ModelBase.search of <class 'noc.kb.models.KBEntry'>>, <bound method ModelBase.search of <class 'noc.sa.models.ManagedObject'>>, <bound method ModelBase.search of <class 'noc.cm.models.Config'>>, <bound method ModelBase.search of <class 'noc.kb.models.KBEntryAttachment'>>, <bound method ModelBase.search of <class 'noc.ip.models.VRF'>>, <bound method ModelBase.search of <class 'noc.vc.models.VC'>>, <bound method ModelBase.search of <class 'noc.cm.models.PrefixList'>>, <bound method ModelBase.search of <class 'noc.ip.models.Prefix'>>, <bound method ModelBase.search of <class 'noc.main.models.RefBook'>>, <bound method ModelBase.search of <class 'noc.ip.models.Address'>>, <bound method ModelBase.search of <class 'noc.cm.models.DNS'>>])
  328. pre_delete = <django.dispatch.dispatcher.Signal object at 0x9a2eacc>
  329. downloader_registry = <noc.main.refbooks.downloaders.DownloaderRegistry object at 0x9f3b80c>
  330. settings = <module 'noc.settings' from '/opt/noc/settings.pyc'>
  331. check_mimetype = <function inner_validator at 0x9964fb4>
  332. Schedule = <class 'noc.main.models.Schedule'>
  333. NOTIFICATION_METHOD_CHOICES = [('mail', 'Email'), ('file', 'File')]
  334. Shard = <class 'noc.main.models.Shard'>
  335. threading = <module 'threading' from '/usr/lib/python2.6/threading.pyc'>
  336. connection = <django.db.backends.postgresql_psycopg2.base.DatabaseWrapper object at 0x9b464b4>
  337. Tag = <class 'tagging.models.Tag'>
  338. TimePatternList = <class 'noc.lib.timepattern.TimePatternList'>
  339. Notification = <class 'noc.main.models.Notification'>
  340. class_prepared = <django.dispatch.dispatcher.Signal object at 0x9a2ea0c>
  341. DBTrigger = <class 'noc.main.models.DBTrigger'>
  342. DBS = <class 'noc.lib.database_storage.DatabaseStorage'>
  343. post_delete = <django.dispatch.dispatcher.Signal object at 0x9a2eaec>
  344. os = <module 'os' from '/usr/lib/python2.6/os.pyc'>
  345. DjangoTemplate = <class 'django.template.base.Template'>
  346. TimePattern = <class 'noc.main.models.TimePattern'>
  347. ------------------------------------------------------------------------
  348. File: /opt/noc/lib/app/access.py (Line: 9)
  349. Function: <module>
  350. 2 ##----------------------------------------------------------------------
  351. 3 ## Access control
  352. 4 ##----------------------------------------------------------------------
  353. 5 ## Copyright (C) 2007-2009 The NOC Project
  354. 6 ## See LICENSE for details
  355. 7 ##----------------------------------------------------------------------
  356. 8 from django.db.models import Q
  357. 9 ==> import noc.main.models
  358. 10
  359. 11
  360. 12 class PermissionDenied(Exception):
  361. 13 """
  362. 14 Basic Permission Denied exception
  363. 15 """
  364. Variables:
  365. __builtins__ = {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2010 Python Software Foundation.
  366. All Rights Reserved.
  367.  
  368. Copyright (c) 2000 BeOpen.com.
  369. All Rights Reserved.
  370.  
  371. Copyright (c) 1995-2001 Corporation for National Research Initiatives.
  372. All Rights Reserved.
  373.  
  374. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
  375. All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
  376. for supporting Python development. See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <function _gmpy_pow at 0xa27efb4>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}
  377. __file__ = None
  378. __package__ = None
  379. Q = None
  380. __name__ = None
  381. __doc__ = None
  382. ------------------------------------------------------------------------
  383. File: /opt/noc/lib/app/__init__.py (Line: 9)
  384. Function: <module>
  385. 2 ##----------------------------------------------------------------------
  386. 3 ## Application classes
  387. 4 ##----------------------------------------------------------------------
  388. 5 ## Copyright (C) 2007-2009 The NOC Project
  389. 6 ## See LICENSE for details
  390. 7 ##----------------------------------------------------------------------
  391. 8 from site import *
  392. 9 ==> from access import *
  393. 10 from application import *
  394. 11 from modelapplication import *
  395. 12 from treeapplication import *
  396. 13 from extapplication import *
  397. 14 from extmodelapplication import *
  398. 15 from extdocapplication import *
  399. Variables:
  400. force_unicode = None
  401. reverse = None
  402. ViewDoesNotExist = None
  403. HttpResponseNotFound = None
  404. RegexURLPattern = None
  405. set_urlconf = None
  406. site = None
  407. Site = None
  408. __path__ = None
  409. get_callable = None
  410. HttpResponseForbidden = None
  411. HttpResponse = None
  412. NoReverseMatch = None
  413. normalize = None
  414. handler500 = None
  415. smart_str = None
  416. ImproperlyConfigured = None
  417. urllib = None
  418. __package__ = None
  419. re = None
  420. patterns = None
  421. MultiValueDict = None
  422. get_script_prefix = None
  423. include = None
  424. local = None
  425. __doc__ = None
  426. import_module = None
  427. ResolverMatch = None
  428. RegexURLResolver = None
  429. clear_url_caches = None
  430. __builtins__ = {'bytearray': <type 'bytearray'>, 'IndexError': <type 'exceptions.IndexError'>, 'all': <built-in function all>, 'help': Type help() for interactive help, or help(object) for help about object., 'vars': <built-in function vars>, 'SyntaxError': <type 'exceptions.SyntaxError'>, 'unicode': <type 'unicode'>, 'UnicodeDecodeError': <type 'exceptions.UnicodeDecodeError'>, 'isinstance': <built-in function isinstance>, 'copyright': Copyright (c) 2001-2010 Python Software Foundation.
  431. All Rights Reserved.
  432.  
  433. Copyright (c) 2000 BeOpen.com.
  434. All Rights Reserved.
  435.  
  436. Copyright (c) 1995-2001 Corporation for National Research Initiatives.
  437. All Rights Reserved.
  438.  
  439. Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
  440. All Rights Reserved., 'NameError': <type 'exceptions.NameError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'dict': <type 'dict'>, 'input': <built-in function input>, 'oct': <built-in function oct>, 'bin': <built-in function bin>, 'SystemExit': <type 'exceptions.SystemExit'>, 'StandardError': <type 'exceptions.StandardError'>, 'format': <built-in function format>, 'repr': <built-in function repr>, 'sorted': <built-in function sorted>, 'False': False, 'RuntimeWarning': <type 'exceptions.RuntimeWarning'>, 'list': <type 'list'>, 'iter': <built-in function iter>, 'reload': <built-in function reload>, 'Warning': <type 'exceptions.Warning'>, '__package__': None, 'round': <built-in function round>, 'dir': <built-in function dir>, 'cmp': <built-in function cmp>, 'set': <type 'set'>, 'bytes': <type 'str'>, 'reduce': <built-in function reduce>, 'intern': <built-in function intern>, 'issubclass': <built-in function issubclass>, 'Ellipsis': Ellipsis, 'EOFError': <type 'exceptions.EOFError'>, 'locals': <built-in function locals>, 'BufferError': <type 'exceptions.BufferError'>, 'slice': <type 'slice'>, 'FloatingPointError': <type 'exceptions.FloatingPointError'>, 'sum': <built-in function sum>, 'getattr': <built-in function getattr>, 'abs': <built-in function abs>, 'exit': Use exit() or Ctrl-D (i.e. EOF) to exit, 'print': <built-in function print>, 'True': True, 'FutureWarning': <type 'exceptions.FutureWarning'>, 'ImportWarning': <type 'exceptions.ImportWarning'>, 'None': None, 'hash': <built-in function hash>, 'ReferenceError': <type 'exceptions.ReferenceError'>, 'len': <built-in function len>, 'credits': Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
  441. for supporting Python development. See www.python.org for more information., 'frozenset': <type 'frozenset'>, '__name__': '__builtin__', 'ord': <built-in function ord>, 'super': <type 'super'>, 'TypeError': <type 'exceptions.TypeError'>, 'license': Type license() to see the full license text, 'KeyboardInterrupt': <type 'exceptions.KeyboardInterrupt'>, 'UserWarning': <type 'exceptions.UserWarning'>, 'filter': <built-in function filter>, 'range': <built-in function range>, 'staticmethod': <type 'staticmethod'>, 'SystemError': <type 'exceptions.SystemError'>, 'BaseException': <type 'exceptions.BaseException'>, 'pow': <function _gmpy_pow at 0xa27efb4>, 'RuntimeError': <type 'exceptions.RuntimeError'>, 'float': <type 'float'>, 'MemoryError': <type 'exceptions.MemoryError'>, 'StopIteration': <type 'exceptions.StopIteration'>, 'globals': <built-in function globals>, 'divmod': <built-in function divmod>, 'enumerate': <type 'enumerate'>, 'apply': <built-in function apply>, 'LookupError': <type 'exceptions.LookupError'>, 'open': <built-in function open>, 'quit': Use quit() or Ctrl-D (i.e. EOF) to exit, 'basestring': <type 'basestring'>, 'UnicodeError': <type 'exceptions.UnicodeError'>, 'zip': <built-in function zip>, 'hex': <built-in function hex>, 'long': <type 'long'>, 'next': <built-in function next>, 'ImportError': <type 'exceptions.ImportError'>, 'chr': <built-in function chr>, 'xrange': <type 'xrange'>, 'type': <type 'type'>, '__doc__': "Built-in functions, exceptions, and other objects.\n\nNoteworthy: None is the `nil' object; Ellipsis represents `...' in slices.", 'Exception': <type 'exceptions.Exception'>, 'tuple': <type 'tuple'>, 'UnicodeTranslateError': <type 'exceptions.UnicodeTranslateError'>, 'reversed': <type 'reversed'>, 'UnicodeEncodeError': <type 'exceptions.UnicodeEncodeError'>, 'IOError': <type 'exceptions.IOError'>, 'hasattr': <built-in function hasattr>, 'delattr': <built-in function delattr>, 'setattr': <built-in function setattr>, 'raw_input': <built-in function raw_input>, 'SyntaxWarning': <type 'exceptions.SyntaxWarning'>, 'compile': <built-in function compile>, 'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'str': <type 'str'>, 'property': <type 'property'>, 'GeneratorExit': <type 'exceptions.GeneratorExit'>, 'int': <type 'int'>, '__import__': <built-in function __import__>, 'KeyError': <type 'exceptions.KeyError'>, 'coerce': <built-in function coerce>, 'PendingDeprecationWarning': <type 'exceptions.PendingDeprecationWarning'>, 'file': <type 'file'>, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, 'unichr': <built-in function unichr>, 'id': <built-in function id>, 'OSError': <type 'exceptions.OSError'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'min': <built-in function min>, 'UnicodeWarning': <type 'exceptions.UnicodeWarning'>, 'execfile': <built-in function execfile>, 'any': <built-in function any>, 'complex': <type 'complex'>, 'bool': <type 'bool'>, 'ValueError': <type 'exceptions.ValueError'>, 'NotImplemented': NotImplemented, 'map': <built-in function map>, 'buffer': <type 'buffer'>, 'max': <built-in function max>, 'object': <type 'object'>, 'TabError': <type 'exceptions.TabError'>, 'callable': <built-in function callable>, 'ZeroDivisionError': <type 'exceptions.ZeroDivisionError'>, 'eval': <built-in function eval>, '__debug__': True, 'IndentationError': <type 'exceptions.IndentationError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'classmethod': <type 'classmethod'>, 'UnboundLocalError': <type 'exceptions.UnboundLocalError'>, 'NotImplementedError': <type 'exceptions.NotImplementedError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'OverflowError': <type 'exceptions.OverflowError'>}
  442. get_resolver = None
  443. __file__ = None
  444. DynamicMenu = None
  445. URL = None
  446. glob = None
  447. HTTP_METHODS = None
  448. __name__ = None
  449. get_urlconf = None
  450. ProxyNode = None
  451. types = None
  452. INSTALLED_APPS = None
  453. JSONEncoder = None
  454. hashlib = None
  455. resolve = None
  456. get_mod_func = None
  457. handler404 = None
  458. settings = None
  459. url = None
  460. iri_to_uri = None
  461. memoize = None
  462. Resolver404 = None
  463. set_script_prefix = None
  464. Http404 = None
  465. os = None
  466. get_traceback = None
  467. ------------------------------------------------------------------------
  468. File: /opt/noc/main/web.py (Line: 137)
  469. Function: children_loop
  470. 130 # Initialize pending sockets
  471. 131 sockets = self.server._pending_sockets
  472. 132 self.server._pending_sockets = []
  473. 133 self.server.add_sockets(sockets)
  474. 134 # Connect to mongodb
  475. 135 import noc.lib.nosql
  476. 136 # Initialize site
  477. 137 ==> from noc.lib.app import site
  478. 138 site.autodiscover()
  479. 139 # Run children's I/O loop
  480. 140 tornado.ioloop.IOLoop.instance().start()
  481. 141
  482. 142 def SIGTERM(self, signo, frame):
  483. 143 if self.t_children:
  484. Variables:
  485. self = <noc.main.web.Web object at 0xb764062c>
  486. sockets = [<socket._socketobject object at 0x9b87ca4>]
  487. noc = <module 'noc' from '/opt/noc/__init__.pyc'>
  488. ------------------------------------------------------------------------
  489. File: /opt/noc/main/web.py (Line: 110)
  490. Function: run
  491. 103 nc = cpu_count()
  492. 104 self.t_children = set()
  493. 105 while True:
  494. 106 # Run children
  495. 107 while len(self.t_children) < nc:
  496. 108 pid = os.fork()
  497. 109 if pid == 0:
  498. 110 ==> self.children_loop()
  499. 111 elif pid < 0:
  500. 112 logging.error("Unable to fork child")
  501. 113 else:
  502. 114 logging.info("Running child %d" % pid)
  503. 115 self.t_children.add(pid)
  504. 116 # Wait for status
  505. Variables:
  506. self = <noc.main.web.Web object at 0xb764062c>
  507. nc = 1
  508. pid = 0
  509. noc_wsgi = <tornado.wsgi.WSGIContainer object at 0x9b8810c>
  510. application = <tornado.web.Application object at 0x9b8814c>
  511. address = '192.168.13.249'
  512. port = 8000
  513. listen = '192.168.13.249:8000'
  514. ------------------------------------------------------------------------
  515. File: /opt/noc/lib/daemon.py (Line: 326)
  516. Function: guarded_run
  517. 319
  518. 320 def guarded_run(self):
  519. 321 """
  520. 322 Run daemon and catch common exceptions
  521. 323 :return:
  522. 324 """
  523. 325 try:
  524. 326 ==> self.run()
  525. 327 except KeyboardInterrupt:
  526. 328 pass
  527. 329 except MemoryError:
  528. 330 logging.error("Out of memory. Exiting.")
  529. 331 except:
  530. 332 error_report()
  531. Variables:
  532. self = <noc.main.web.Web object at 0xb764062c>
  533. ------------------------------------------------------------------------
  534. END OF TRACEBACK
  535. 2012-01-17 00:04:11,450 Exiting child 22407
  536. 2012-01-17 00:04:11,451 Running child 22411
  537. 2012-01-17 00:04:11,567 Using JSON library: cjson
  538. 2012-01-17 00:04:11,572 Loading PeriodicRegistry
  539. 2012-01-17 00:04:11,578 Loading DownloaderRegistry
  540. /usr/lib/python2.6/site-packages/pycrypto-2.4.1-py2.6-linux-i686.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
  541. 2012-01-17 00:04:11,646 SSH: Using gmpy
  542. 2012-01-17 00:04:11,670 Loading ProfileRegistry
  543. 2012-01-17 00:04:12,022 Loading ScriptRegistry
  544. ^C2012-01-17 00:04:12,065 SIGINT received. Exiting
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement