Guest User

Untitled

a guest
Sep 30th, 2014
285
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.20 KB | None | 0 0
  1. 2014-09-30 11:57:50,964 [noc.lib.debug] UNHANDLED EXCEPTION (2014-09-30 11:57:50.920536)
  2. Working directory: /opt/noc
  3. <class 'noc.lib.nbsocket.exceptions.BrokenPipeError'>
  4.  
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/lib/nbsocket/tcpsocket.py (Line: 108)
  8. Function: write
  9. 101 in handle_write() method
  10. 102
  11. 103 :param msg: Raw data
  12. 104 :type msg: Str
  13. 105 """
  14. 106 if self.closing:
  15. 107 self.error("Attempting to write to closing socket")
  16. 108 ==> raise BrokenPipeError()
  17. 109 self.out_buffer += msg
  18. 110 self.set_status(w=bool(self.out_buffer) and self.is_connected)
  19. 111
  20. 112 def on_read(self, data):
  21. 113 """
  22. 114 Called every time new data is avaiable
  23. Variables:
  24. msg =
  25. 'object.GBRW.GZDB.bb-77-1.interface.te0-0-0-0.interface.load.in 342455637.683 1412063650\nobject.HFSW.KYJY.resh.interface.fa_0-0.interface.load.in 32133730.7641 1412063650\nobject.GZSD.AZJU.cat-nvolzhskaya.interface.gi_0-1.interface.load.in 3682804.53742 1412063650\nobject.GBRW.GZDB.bb-77-1.interface.te0-0-0-0.interface.load.out 838927523.243 1412063650\n'
  26. self = <LineProtocolSocket(0x81540c850, 127.0.0.1:2003, closing)>
  27. ------------------------------------------------------------------------
  28. File: /opt/noc/pm/probe/protocols/line.py (Line: 30)
  29. Function: flush
  30. 23
  31. 24 def flush(self):
  32. 25 with self.feed_lock:
  33. 26 self.logger.debug("Sending %d metrics", len(self.data))
  34. 27 data = "".join(
  35. 28 "%s %s %s\n" % d for d in self.data
  36. 29 )
  37. 30 ==> self.write(data)
  38. 31 self.data = []
  39. Variables:
  40. self = <LineProtocolSocket(0x81540c850, 127.0.0.1:2003, closing)>
  41. data =
  42. 'object.GBRW.GZDB.bb-77-1.interface.te0-0-0-0.interface.load.in 342455637.683 1412063650\nobject.HFSW.KYJY.resh.interface.fa_0-0.interface.load.in 32133730.7641 1412063650\nobject.GZSD.AZJU.cat-nvolzhskaya.interface.gi_0-1.interface.load.in 3682804.53742 1412063650\nobject.GBRW.GZDB.bb-77-1.interface.te0-0-0-0.interface.load.out 838927523.243 1412063650\n'
  43. ------------------------------------------------------------------------
  44. File: /opt/noc/pm/probe/sender.py (Line: 72)
  45. Function: flush
  46. 65 Flush data from sender channels
  47. 66 """
  48. 67 with self.feed_lock:
  49. 68 if self.ready_channels:
  50. 69 logger.debug("Flushing channels %d channels",
  51. 70 len(self.ready_channels))
  52. 71 for ch in self.ready_channels:
  53. 72 ==> ch.flush()
  54. 73 self.ready_channels = set()
  55. 74
  56. 75 def create_line_channel(self, address, port):
  57. 76 return LineProtocolSocket(self, self.factory, address, port)
  58. 77
  59. 78 def create_pickle_channel(self, address, port):
  60. Variables:
  61. self = <Sender(sender, started 34465846272)>
  62. ch = <LineProtocolSocket(0x81540c850, 127.0.0.1:2003, closing)>
  63. ------------------------------------------------------------------------
  64. File: /opt/noc/pm/probe/daemon.py (Line: 80)
  65. Function: reschedule
  66. 73
  67. 74 def reschedule(self, t):
  68. 75 with self.pending_lock:
  69. 76 bisect.insort_right(
  70. 77 self.pending_queue,
  71. 78 t
  72. 79 )
  73. 80 ==> self.sender.flush()
  74.  
  75. Variables:
  76. self = <noc.pm.probe.daemon.ProbeDaemon object at 0x80073a490>
  77. t = <Task 6a5c5aa1-3a9a-5506-851f-4575344812e8>
  78. ------------------------------------------------------------------------
  79. File: /opt/noc/pm/probe/task.py (Line: 75)
  80. Function: run
  81. 68 self.mdata[m].set_value(t, v)
  82. 69 self.logger.debug("Done")
  83. 70 except:
  84. 71 error_report()
  85. 72 self.last_run = self.next_run
  86. 73 self.next_run = self.get_next_run()
  87. 74 self.running = False
  88. 75 ==> self.daemon.reschedule(self)
  89. 76
  90. 77 def configure(self, uuid, handler, interval, metrics,
  91. 78 config, **kwargs):
  92. 79 if not self.uuid:
  93. 80 self.logger = PrefixLoggerAdapter(logger, uuid)
  94. 81 self.uuid = uuid
  95. Variables:
  96. result =
  97. {'Interface | Load | In': 400158256385551,
  98. 'Interface | Load | Out': 894368989349260}
  99. self = <Task 6a5c5aa1-3a9a-5506-851f-4575344812e8>
  100. m = 'Interface | Load | Out'
  101. t = 1412063870.844698
  102. v = 894368989349260
  103. ------------------------------------------------------------------------
  104. File: /opt/noc/lib/threadpool.py (Line: 56)
  105. Function: run
  106. 49 title, f, args, kwargs = task
  107. 50 # Run job
  108. 51 self.title = title
  109. 52 self.start_time = time.time()
  110. 53 try:
  111. 54 self.can_cancel = True
  112. 55 self.is_idle = False
  113. 56 ==> f(*args, **kwargs)
  114. 57 self.can_cancel = False
  115. 58 except CancelledError:
  116. 59 break
  117. 60 except:
  118. 61 self.can_cancel = False
  119. 62 if not self.cancelled:
  120. Variables:
  121. task =
  122. ('<Task 6a5c5aa1-3a9a-5506-851f-4575344812e8>',
  123. <bound method Task.run of <Task 6a5c5aa1-3a9a-5506-851f-4575344812e8>>,
  124. (),
  125. {})
  126. f = <bound method Task.run of <Task 6a5c5aa1-3a9a-5506-851f-4575344812e8>>
  127. title = '<Task 6a5c5aa1-3a9a-5506-851f-4575344812e8>'
  128. self = <Worker(Thread-27803, started 34593616896)>
  129. args = ()
  130. kwargs = {}
  131. ------------------------------------------------------------------------
  132. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment