Guest User

Untitled

a guest
Dec 29th, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. Working directory: /usr/local/noc
  2. <type 'exceptions.UnicodeDecodeError'>
  3. 'ascii' codec can't decode byte 0x88 in position 132: ordinal not in range(128)
  4. START OF TRACEBACK
  5. ------------------------------------------------------------------------
  6. File: /usr/local/noc/lib/scheduler/job.py (Line: 93)
  7. Function: debug
  8. 86
  9. 87 def get_display_key(self):
  10. 88 return self.key
  11. 89
  12. 90 def debug(self, msg):
  13. 91 logging.debug("[%s: %s(%s)] %s" % (
  14. 92 self.scheduler.name, self.name,
  15. 93 ==> self.get_display_key(), msg))
  16. 94 if self.to_log:
  17. 95 self.job_log += [msg]
  18. 96
  19. 97 def info(self, msg):
  20. 98 logging.info("[%s: %s(%s)] %s" % (
  21. 99 self.scheduler.name, self.name,
  22. Variables:
  23. msg =
  24. "Submit vendor=NONAME, description=SFP Transceiver, part_no=['NoName | Transceiver | 1G | SFP'], number=26, builtin=False, serial=|MS\x88\x87\xa4, type=XCVR, revision=\xdc\xf5"
  25. self =
  26. <noc.inv.discovery.jobs.asset_discovery.AssetDiscoveryJob object at 0x807e68e10>
  27. ------------------------------------------------------------------------
  28. File: /usr/local/noc/inv/discovery/jobs/asset_discovery.py (Line: 35)
  29. Function: handler
  30. 28
  31. 29 def handler(self, object, result):
  32. 30 self.report = AssetReport(self, to_save=self.to_save)
  33. 31 #
  34. 32 self.report.find_managed()
  35. 33 # Submit objects
  36. 34 for o in result:
  37. 35 ==> self.debug("Submit %s" % str_dict(o))
  38. 36 self.report.submit(
  39. 37 type=o["type"], number=o.get("number"),
  40. 38 builtin=o["builtin"],
  41. 39 vendor=o.get("vendor"), part_no=o["part_no"],
  42. 40 revision=o.get("revision"), serial=o.get("serial"),
  43. 41 description=o.get("description")
  44. Variables:
  45. self =
  46. <noc.inv.discovery.jobs.asset_discovery.AssetDiscoveryJob object at 0x807e68e10>
  47. object = <ManagedObject: bolsheoxt-6-1-es3528.line-r.ru>
  48. result =
  49. [{'builtin': False,
  50. 'description': 'EdgeCore ES3528M',
  51. 'number': 'None',
  52. 'part_no': ['ES3528M'],
  53. 'revision': 'R01',
  54. 'serial': '002000304',
  55. 'type': 'CHASSIS',
  56. 'vendor': 'EDGECORE'},
  57. {'builtin': False,
  58. 'description': 'SFP Transceiver',
  59. 'number': '26',
  60. 'part_no': ['NoName | Transceiver | 1G | SFP'],
  61. 'revision': '\xdc\xf5',
  62. 'serial': '|MS\x88\x87\xa4',
  63. 'type': 'XCVR',
  64. 'vendor': 'NONAME'},
  65. {'builtin': False,
  66. 'description': 'SFP Transceiver',
  67. 'number': '27',
  68. 'part_no': ['NoName | Transceiver | 1G | SFP'],
  69. 'revision': 'None',
  70. 'serial': 'None',
  71. 'type': 'XCVR',
  72. 'vendor': 'NONAME'},
  73. {'builtin': False,
  74. 'description': 'SFP Transceiver',
  75. 'number': '28',
  76. 'part_no': ['NoName | Transceiver | 1G | SFP'],
  77. 'revision': 'None',
  78. 'serial': 'None',
  79. 'type': 'XCVR',
  80. 'vendor': 'NONAME'}]
  81. o =
  82. {'builtin': False,
  83. 'description': 'SFP Transceiver',
  84. 'number': '26',
  85. 'part_no': ['NoName | Transceiver | 1G | SFP'],
  86. 'revision': '\xdc\xf5',
  87. 'serial': '|MS\x88\x87\xa4',
  88. 'type': 'XCVR',
  89. 'vendor': 'NONAME'}
  90. ------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment