Advertisement
Guest User

2014-05-28, TSergey, asset_error

a guest
May 28th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.61 KB | None | 0 0
  1. Submit vendor=CISCO, description=WS-C3560G-24TS, part_no=['WS-C3560G-24TS-E'], number=1, builtin=False, serial=FOC1203Z2C3, type=CHASSIS, revision=V03
  2. Set context N = 1 -> NN=0, N=1
  3. Unknown model: vendor=Cisco Systems, part_no=WS-C3560G-24TS (['WS-C3560G-24TS-E']). Skipping
  4. Submit vendor=NONAME, description=1000BaseLX SFP, part_no=['Unknown | Transceiver | 1000BASELX'], number=25, builtin=False, serial=H22L225, type=XCVR, revision=0617
  5. Set context N = 25 -> NN=1, N=25
  6. Unknown | Transceiver | 1000BASELX S/N H22L225 should be resolved later
  7. Submit vendor=NONAME, description=1000BaseLX SFP, part_no=['Unknown | Transceiver | 1000BASELX'], number=26, builtin=False, serial=H11L505, type=XCVR, revision=None
  8. Set context N = 26 -> NN=2, N=26
  9. Unknown | Transceiver | 1000BASELX S/N H11L505 should be resolved later
  10. Submit vendor=OPTICIN, description=unsupported, part_no=['SFP-WDM3.03'], number=27, builtin=False, serial=PC81260985, type=XCVR, revision=None
  11. Set context N = 27 -> NN=3, N=27
  12. Unknown model: vendor=Opticin, part_no=unsupported (['SFP-WDM3.03']). Skipping
  13. UNHANDLED EXCEPTION (2014-05-28 09:22:53.789468)
  14. Working directory: /opt/noc
  15. <class 'mongoengine.base.ValidationError'>
  16. Unable to dereference <class 'noc.inv.models.objectmodel.ObjectModel'>:530aedf54a5e685e80c085ad
  17. START OF TRACEBACK
  18. ------------------------------------------------------------------------
  19. File: /opt/noc/lib/nosql.py (Line: 105)
  20. Function: __get__
  21. 98 # Dereference DBRefs
  22. 99 if isinstance(value, ObjectId):
  23. 100 v = self.document_type.objects(id=value).first()
  24. 101 if v is not None:
  25. 102 instance._data[self.name] = v
  26. 103 else:
  27. 104 raise ValidationError("Unable to dereference %s:%s" % (
  28. 105 ==> self.document_type, value))
  29. 106 return super(PlainReferenceField, self).__get__(instance, owner)
  30. 107
  31. 108 def to_mongo(self, document):
  32. 109 if isinstance(document, Document):
  33. 110 # We need the id from the saved object to create the DBRef
  34. 111 id_ = document.id
  35. Variables:
  36. owner = <class 'noc.inv.models.object.Object'>
  37. instance = <Object: s17-1-2.intt>
  38. self = <noc.lib.nosql.PlainReferenceField object at 0x411ed50>
  39. value = ObjectId('530aedf54a5e685e80c085ad')
  40. v = None
  41. ------------------------------------------------------------------------
  42. File: /opt/noc/inv/discovery/reports/asset.py (Line: 492)
  43. Function: check_management
  44. 485 """
  45. 486 Unmanage all left objects
  46. 487 """
  47. 488 for oid in self.managed:
  48. 489 o = Object.objects.filter(id=oid).first()
  49. 490 if o:
  50. 491 self.info("Revoking management from %s %s" % (
  51. 492 ==> o.model.name, o.id))
  52. 493 o.reset_data("management", "managed_object")
  53. 494 o.save()
  54. 495 o.log(
  55. 496 "Management revoked",
  56. 497 system="DISCOVERY", managed_object=self.object,
  57. 498 op="CHANGE"
  58. Variables:
  59. self = <noc.inv.discovery.reports.asset.AssetReport object at 0x46c34d0>
  60. oid = ObjectId('530af1ba4a5e685dfa20b2ee')
  61. o = <Object: s17-1-2.intt>
  62. ------------------------------------------------------------------------
  63. File: /opt/noc/inv/discovery/jobs/asset_discovery.py (Line: 48)
  64. Function: handler
  65. 41 description=o.get("description")
  66. 42 )
  67. 43 # Assign stack members
  68. 44 self.report.submit_stack_members()
  69. 45 #
  70. 46 self.report.submit_connections()
  71. 47 #
  72. 48 ==> self.report.check_management()
  73. 49 # Finish
  74. 50 self.report.send()
  75. 51 return True
  76. 52
  77. 53 @classmethod
  78. 54 def initial_submit_queryset(cls):
  79. Variables:
  80. self =
  81. <noc.inv.discovery.jobs.asset_discovery.AssetDiscoveryJob object at 0x46c3890>
  82. object = <ManagedObject: s17-1-2.intt>
  83. result =
  84. [{'builtin': False,
  85. 'description': 'WS-C3560G-24TS',
  86. 'number': '1',
  87. 'part_no': ['WS-C3560G-24TS-E'],
  88. 'revision': 'V03 ',
  89. 'serial': 'FOC1203Z2C3',
  90. 'type': 'CHASSIS',
  91. 'vendor': 'CISCO'},
  92. {'builtin': False,
  93. 'description': '1000BaseLX SFP',
  94. 'number': '25',
  95. 'part_no': ['Unknown | Transceiver | 1000BASELX'],
  96. 'revision': '0617 ',
  97. 'serial': 'H22L225',
  98. 'type': 'XCVR',
  99. 'vendor': 'NONAME'},
  100. {'builtin': False,
  101. 'description': '1000BaseLX SFP',
  102. 'number': '26',
  103. 'part_no': ['Unknown | Transceiver | 1000BASELX'],
  104. 'revision': 'None',
  105. 'serial': 'H11L505',
  106. 'type': 'XCVR',
  107. 'vendor': 'NONAME'},
  108. {'builtin': False,
  109. 'description': 'unsupported',
  110. 'number': '27',
  111. 'part_no': ['SFP-WDM3.03'],
  112. 'revision': 'None',
  113. 'serial': 'PC81260985',
  114. 'type': 'XCVR',
  115. 'vendor': 'OPTICIN'}]
  116. o =
  117. {'builtin': False,
  118. 'description': 'unsupported',
  119. 'number': '27',
  120. 'part_no': ['SFP-WDM3.03'],
  121. 'revision': 'None',
  122. 'serial': 'PC81260985',
  123. 'type': 'XCVR',
  124. 'vendor': 'OPTICIN'}
  125. ------------------------------------------------------------------------
  126. File: /opt/noc/lib/scheduler/scheduler.py (Line: 283)
  127. Function: _job_wrapper
  128. 276 else:
  129. 277 return self._job_wrapper(job, **kwargs)
  130. 278
  131. 279 def _job_wrapper(self, job, **kwargs):
  132. 280 tb = None
  133. 281 t0 = time.time()
  134. 282 try:
  135. 283 ==> r = job.handler(**kwargs)
  136. 284 except Exception:
  137. 285 # error_report()
  138. 286 tb = get_traceback()
  139. 287 job.error(tb)
  140. 288 job.on_exception()
  141. 289 s = job.S_EXCEPTION
  142. Variables:
  143. job =
  144. <noc.inv.discovery.jobs.asset_discovery.AssetDiscoveryJob object at 0x46c3890>
  145. tb = None
  146. self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x3d271d0>
  147. t0 = 1401254573.761258
  148. kwargs =
  149. {'object': <ManagedObject: s17-1-2.intt>,
  150. 'result': [{'builtin': False,
  151. 'description': 'WS-C3560G-24TS',
  152. 'number': '1',
  153. 'part_no': ['WS-C3560G-24TS-E'],
  154. 'revision': 'V03 ',
  155. 'serial': 'FOC1203Z2C3',
  156. 'type': 'CHASSIS',
  157. 'vendor': 'CISCO'},
  158. {'builtin': False,
  159. 'description': '1000BaseLX SFP',
  160. 'number': '25',
  161. 'part_no': ['Unknown | Transceiver | 1000BASELX'],
  162. 'revision': '0617 ',
  163. 'serial': 'H22L225',
  164. 'type': 'XCVR',
  165. 'vendor': 'NONAME'},
  166. {'builtin': False,
  167. 'description': '1000BaseLX SFP',
  168. 'number': '26',
  169. 'part_no': ['Unknown | Transceiver | 1000BASELX'],
  170. 'revision': 'None',
  171. 'serial': 'H11L505',
  172. 'type': 'XCVR',
  173. 'vendor': 'NONAME'},
  174. {'builtin': False,
  175. 'description': 'unsupported',
  176. 'number': '27',
  177. 'part_no': ['SFP-WDM3.03'],
  178. 'revision': 'None',
  179. 'serial': 'PC81260985',
  180. 'type': 'XCVR',
  181. 'vendor': 'OPTICIN'}]}
  182. ------------------------------------------------------------------------
  183. END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement