Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Submit vendor=CISCO, description=WS-C3560G-24TS, part_no=['WS-C3560G-24TS-E'], number=1, builtin=False, serial=FOC1203Z2C3, type=CHASSIS, revision=V03
- Set context N = 1 -> NN=0, N=1
- Unknown model: vendor=Cisco Systems, part_no=WS-C3560G-24TS (['WS-C3560G-24TS-E']). Skipping
- Submit vendor=NONAME, description=1000BaseLX SFP, part_no=['Unknown | Transceiver | 1000BASELX'], number=25, builtin=False, serial=H22L225, type=XCVR, revision=0617
- Set context N = 25 -> NN=1, N=25
- Unknown | Transceiver | 1000BASELX S/N H22L225 should be resolved later
- Submit vendor=NONAME, description=1000BaseLX SFP, part_no=['Unknown | Transceiver | 1000BASELX'], number=26, builtin=False, serial=H11L505, type=XCVR, revision=None
- Set context N = 26 -> NN=2, N=26
- Unknown | Transceiver | 1000BASELX S/N H11L505 should be resolved later
- Submit vendor=OPTICIN, description=unsupported, part_no=['SFP-WDM3.03'], number=27, builtin=False, serial=PC81260985, type=XCVR, revision=None
- Set context N = 27 -> NN=3, N=27
- Unknown model: vendor=Opticin, part_no=unsupported (['SFP-WDM3.03']). Skipping
- UNHANDLED EXCEPTION (2014-05-28 09:22:53.789468)
- Working directory: /opt/noc
- <class 'mongoengine.base.ValidationError'>
- Unable to dereference <class 'noc.inv.models.objectmodel.ObjectModel'>:530aedf54a5e685e80c085ad
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/lib/nosql.py (Line: 105)
- Function: __get__
- 98 # Dereference DBRefs
- 99 if isinstance(value, ObjectId):
- 100 v = self.document_type.objects(id=value).first()
- 101 if v is not None:
- 102 instance._data[self.name] = v
- 103 else:
- 104 raise ValidationError("Unable to dereference %s:%s" % (
- 105 ==> self.document_type, value))
- 106 return super(PlainReferenceField, self).__get__(instance, owner)
- 107
- 108 def to_mongo(self, document):
- 109 if isinstance(document, Document):
- 110 # We need the id from the saved object to create the DBRef
- 111 id_ = document.id
- Variables:
- owner = <class 'noc.inv.models.object.Object'>
- instance = <Object: s17-1-2.intt>
- self = <noc.lib.nosql.PlainReferenceField object at 0x411ed50>
- value = ObjectId('530aedf54a5e685e80c085ad')
- v = None
- ------------------------------------------------------------------------
- File: /opt/noc/inv/discovery/reports/asset.py (Line: 492)
- Function: check_management
- 485 """
- 486 Unmanage all left objects
- 487 """
- 488 for oid in self.managed:
- 489 o = Object.objects.filter(id=oid).first()
- 490 if o:
- 491 self.info("Revoking management from %s %s" % (
- 492 ==> o.model.name, o.id))
- 493 o.reset_data("management", "managed_object")
- 494 o.save()
- 495 o.log(
- 496 "Management revoked",
- 497 system="DISCOVERY", managed_object=self.object,
- 498 op="CHANGE"
- Variables:
- self = <noc.inv.discovery.reports.asset.AssetReport object at 0x46c34d0>
- oid = ObjectId('530af1ba4a5e685dfa20b2ee')
- o = <Object: s17-1-2.intt>
- ------------------------------------------------------------------------
- File: /opt/noc/inv/discovery/jobs/asset_discovery.py (Line: 48)
- Function: handler
- 41 description=o.get("description")
- 42 )
- 43 # Assign stack members
- 44 self.report.submit_stack_members()
- 45 #
- 46 self.report.submit_connections()
- 47 #
- 48 ==> self.report.check_management()
- 49 # Finish
- 50 self.report.send()
- 51 return True
- 52
- 53 @classmethod
- 54 def initial_submit_queryset(cls):
- Variables:
- self =
- <noc.inv.discovery.jobs.asset_discovery.AssetDiscoveryJob object at 0x46c3890>
- object = <ManagedObject: s17-1-2.intt>
- result =
- [{'builtin': False,
- 'description': 'WS-C3560G-24TS',
- 'number': '1',
- 'part_no': ['WS-C3560G-24TS-E'],
- 'revision': 'V03 ',
- 'serial': 'FOC1203Z2C3',
- 'type': 'CHASSIS',
- 'vendor': 'CISCO'},
- {'builtin': False,
- 'description': '1000BaseLX SFP',
- 'number': '25',
- 'part_no': ['Unknown | Transceiver | 1000BASELX'],
- 'revision': '0617 ',
- 'serial': 'H22L225',
- 'type': 'XCVR',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '1000BaseLX SFP',
- 'number': '26',
- 'part_no': ['Unknown | Transceiver | 1000BASELX'],
- 'revision': 'None',
- 'serial': 'H11L505',
- 'type': 'XCVR',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': 'unsupported',
- 'number': '27',
- 'part_no': ['SFP-WDM3.03'],
- 'revision': 'None',
- 'serial': 'PC81260985',
- 'type': 'XCVR',
- 'vendor': 'OPTICIN'}]
- o =
- {'builtin': False,
- 'description': 'unsupported',
- 'number': '27',
- 'part_no': ['SFP-WDM3.03'],
- 'revision': 'None',
- 'serial': 'PC81260985',
- 'type': 'XCVR',
- 'vendor': 'OPTICIN'}
- ------------------------------------------------------------------------
- File: /opt/noc/lib/scheduler/scheduler.py (Line: 283)
- Function: _job_wrapper
- 276 else:
- 277 return self._job_wrapper(job, **kwargs)
- 278
- 279 def _job_wrapper(self, job, **kwargs):
- 280 tb = None
- 281 t0 = time.time()
- 282 try:
- 283 ==> r = job.handler(**kwargs)
- 284 except Exception:
- 285 # error_report()
- 286 tb = get_traceback()
- 287 job.error(tb)
- 288 job.on_exception()
- 289 s = job.S_EXCEPTION
- Variables:
- job =
- <noc.inv.discovery.jobs.asset_discovery.AssetDiscoveryJob object at 0x46c3890>
- tb = None
- self = <noc.inv.discovery.scheduler.DiscoveryScheduler object at 0x3d271d0>
- t0 = 1401254573.761258
- kwargs =
- {'object': <ManagedObject: s17-1-2.intt>,
- 'result': [{'builtin': False,
- 'description': 'WS-C3560G-24TS',
- 'number': '1',
- 'part_no': ['WS-C3560G-24TS-E'],
- 'revision': 'V03 ',
- 'serial': 'FOC1203Z2C3',
- 'type': 'CHASSIS',
- 'vendor': 'CISCO'},
- {'builtin': False,
- 'description': '1000BaseLX SFP',
- 'number': '25',
- 'part_no': ['Unknown | Transceiver | 1000BASELX'],
- 'revision': '0617 ',
- 'serial': 'H22L225',
- 'type': 'XCVR',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '1000BaseLX SFP',
- 'number': '26',
- 'part_no': ['Unknown | Transceiver | 1000BASELX'],
- 'revision': 'None',
- 'serial': 'H11L505',
- 'type': 'XCVR',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': 'unsupported',
- 'number': '27',
- 'part_no': ['SFP-WDM3.03'],
- 'revision': 'None',
- 'serial': 'PC81260985',
- 'type': 'XCVR',
- 'vendor': 'OPTICIN'}]}
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement