Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- object_name: "portal.san.ru"
- script: "OS.Linux.get_ifindex"
- 2014-03-06 16:13:10,668 Running script thread
- 2014-03-06 16:13:10,669 Creating transaction id=1111393015 method=None callback=None
- 2014-03-06 16:13:10,669 Running socket factory (SelectPoller)
- 2014-03-06 16:13:10,672 [Generic.get_ifindex(portal.san.ru, 88.147.128.20)] Running
- 2014-03-06 16:13:10,672 [Generic.get_ifindex(portal.san.ru, 88.147.128.20)] Unhandled exception
- 2014-03-06 16:13:10,691 [Generic.get_ifindex(portal.san.ru, 88.147.128.20)] Script traceback:
- <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- Parameter 'interface' required
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/sa/interfaces/base.py (Line: 1374)
- Function: clean
- 1367 in_kwargs = kwargs.copy()
- 1368 out_kwargs = {}
- 1369 for n, p in self.gen_parameters():
- 1370 if n not in in_kwargs and p.required:
- 1371 if p.default is not None:
- 1372 out_kwargs[n] = p.default
- 1373 else:
- 1374 ==> raise InterfaceTypeError("Parameter '%s' required" % n)
- 1375 if n in in_kwargs:
- 1376 if not (in_kwargs[n] is None and not p.required):
- 1377 try:
- 1378 if __profile:
- 1379 out_kwargs[n] = p.script_clean_input(__profile,
- 1380 in_kwargs[n])
- Variables:
- out_kwargs = {}
- _Interface__profile = <noc.sa.profiles.OS.Linux.Profile object at 0x4bba2d0>
- self = <noc.sa.interfaces.igetifindex.IGetIfIndex object at 0x3a75e10>
- n = 'interface'
- p = <noc.sa.interfaces.base.InterfaceNameParameter object at 0x274b190>
- kwargs = {}
- in_kwargs = {}
- ------------------------------------------------------------------------
- File: /opt/noc/sa/interfaces/base.py (Line: 1403)
- Function: script_clean_input
- 1396 try:
- 1397 rp = self.returns
- 1398 except AttributeError:
- 1399 return result # No return result restriction
- 1400 return rp.clean(result)
- 1401
- 1402 def script_clean_input(self, __profile, **kwargs):
- 1403 ==> return self.clean(__profile, **kwargs)
- 1404
- 1405 def script_clean_result(self, __profile, result):
- 1406 try:
- 1407 rp = self.returns
- 1408 except AttributeError:
- 1409 return result
- Variables:
- _Interface__profile = <noc.sa.profiles.OS.Linux.Profile object at 0x4bba2d0>
- self = <noc.sa.interfaces.igetifindex.IGetIfIndex object at 0x3a75e10>
- kwargs = {}
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 408)
- Function: guarded_run
- 401 s.call_cache[key1] = {}
- 402 s.call_cache[key1][key2] = value
- 403
- 404 def guarded_run(self):
- 405 """Wrap around script call with all possible checkings"""
- 406 # Enforce interface type checking
- 407 for i in self.implements:
- 408 ==> self.kwargs = i.script_clean_input(self.profile, **self.kwargs)
- 409 self.debug("Running script: %s (%r)" % (self.name, self.kwargs))
- 410 # Use cached result when available
- 411 if self.cache and self.parent is not None:
- 412 try:
- 413 result = self.get_cache(self.name, self.kwargs)
- 414 self.debug("Script returns with cached result: %r" % result)
- Variables:
- i = <noc.sa.interfaces.igetifindex.IGetIfIndex object at 0x3a75e10>
- self = <Script(Thread-2, started 140296688396032)>
- ------------------------------------------------------------------------
- File: /opt/noc/sa/script/script.py (Line: 445)
- Function: run
- 438
- 439 def run(self):
- 440 """Script thread worker method"""
- 441 self.debug("Running")
- 442 result = None
- 443 try:
- 444 with self.cancelable():
- 445 ==> result = self.guarded_run()
- 446 except self.TimeOutError:
- 447 self.error("Timed out")
- 448 self.e_timeout = True
- 449 except CancelledError:
- 450 self.error("Cancelled")
- 451 self.e_cancel = True
- Variables:
- self = <Script(Thread-2, started 140296688396032)>
- r =
- ["<class 'noc.sa.interfaces.base.InterfaceTypeError'>",
- "Parameter 'interface' required"]
- result = None
- v = InterfaceTypeError("Parameter 'interface' required",)
- tb = <traceback object at 0x4bbb0e0>
- t = <class 'noc.sa.interfaces.base.InterfaceTypeError'>
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2014-03-06 16:13:10,691 [Generic.get_ifindex(portal.san.ru, 88.147.128.20)] Closing
- 2014-03-06 16:13:11,672 Tick
- 2014-03-06 16:13:11,672 3 TICKS TO EXIT
- 2014-03-06 16:13:12,673 Tick
- 2014-03-06 16:13:12,674 2 TICKS TO EXIT
- 2014-03-06 16:13:13,681 Tick
- 2014-03-06 16:13:13,682 1 TICKS TO EXIT
- 2014-03-06 16:13:14,683 Tick
- 2014-03-06 16:13:14,683 EXIT
- 2014-03-06 16:13:14,683 Shutting down the factory
- 2014-03-06 16:13:14,683 0 TICKS TO EXIT
- 2014-03-06 16:13:14,683 Stopping socket factory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement