Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNHANDLED EXCEPTION (2013-12-11 13:24:05.932637)
- Working directory: /opt/noc
- Unable to dereference :52a701099297e86528262135
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/lib/nosql.py (Line: 103)
- Function: __get__
- 96 # Dereference DBRefs
- 97 if isinstance(value, ObjectId):
- 98 v = self.document_type.objects(id=value).first()
- 99 if v is not None:
- 100 instance._data[self.name] = v
- 101 else:
- 102 raise ValidationError("Unable to dereference %s:%s" % (
- 103 ==> self.document_type, value))
- 104 return super(PlainReferenceField, self).__get__(instance, owner)
- 105
- 106 def to_mongo(self, document):
- 107 if isinstance(document, Document):
- 108 # We need the id from the saved object to create the DBRef
- 109 id_ = document.id
- Variables:
- owner =
- instance =
- self =
- value = ObjectId('52a701099297e86528262135')
- v = None
- ------------------------------------------------------------------------
- File: /opt/noc/inv/discovery/reports/asset.py (Line: 460)
- Function: check_management
- 453 """
- 454 Unmanage all left objects
- 455 """
- 456 for oid in self.managed:
- 457 o = Object.objects.filter(id=oid).first()
- 458 if o:
- 459 self.info("Revoking management from %s %s" % (
- 460 ==> o.model.name, o.id))
- 461 o.reset_data("management", "managed_object")
- 462 o.save()
- 463 o.log(
- 464 "Management revoked",
- 465 system="DISCOVERY", managed_object=self.object,
- 466 op="CHANGE"
- Variables:
- self =
- oid = ObjectId('52a720ef9297e864fbdfe8da')
- o =
- ------------------------------------------------------------------------
- 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 =
- object =
- result =
- [{'builtin': False,
- 'description': 'ProLiant SL390s G7 (612227-B21)',
- 'number': 'None',
- 'part_no': ['612227-B21'],
- 'serial': 'CZ3136SR3A',
- 'type': 'CHASSIS',
- 'vendor': 'HP'},
- {'builtin': False,
- 'description': 'Intel(R) Xeon(R) CPU E5649 @ 2.53GHz',
- 'number': 'cpu@0',
- 'part_no': ['E5649'],
- 'serial': 'None',
- 'type': 'CPU',
- 'vendor': 'INTEL'},
- {'builtin': False,
- 'description': 'Intel(R) Xeon(R) CPU E5649 @ 2.53GHz',
- 'number': 'cpu@1',
- 'part_no': ['E5649'],
- 'serial': 'None',
- 'type': 'CPU',
- 'vendor': 'INTEL'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '1:2C',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '1:4B',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '1:5D',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '1:6A',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '2:2C',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '2:4B',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '2:5D',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '2:6A',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '82576 Gigabit Network Connection',
- 'number': 'pci@0000:04:00',
- 'part_no': ['82576 Gigabit Network Connection'],
- 'serial': '18:a9:05:c5:a7:5c',
- 'type': 'CARD',
- 'vendor': 'INTEL'},
- {'builtin': False,
- 'description': 'NetXtreme II BCM5709 Gigabit Ethernet',
- 'number': 'pci@0000:0b:00',
- 'part_no': ['NetXtreme II BCM5709 Gigabit Ethernet'],
- 'serial': '9c:8e:99:22:c9:60',
- 'type': 'CARD',
- 'vendor': 'BROADCOM'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:08:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323111075686',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:09:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323111076615',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:0a:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323111076216',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': 'VGA compatible controller',
- 'number': 'pci@0000:01:03',
- 'part_no': ['ES1000'],
- 'serial': 'None',
- 'type': 'CARD',
- 'vendor': 'AMD'},
- {'builtin': False,
- 'description': 'MM0500EBKAE ATA Disk',
- 'number': 'None',
- 'part_no': ['MM0500EBKAE'],
- 'serial': '9XF0E06L',
- 'type': 'DRIVE',
- 'vendor': 'None'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:19:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323910065827',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:1a:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323111078313',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:1b:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323910066193',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:15:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323111078150',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:16:00',
- 'part_no': ['Tesla M2070-Q'],
- 'serial': '0324512034184',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': 'Power Supply 1',
- 'number': '1',
- 'part_no': ['578322-B21'],
- 'serial': '5AVDC0C4D0S3UL',
- 'type': 'PSU',
- 'vendor': 'HP'},
- {'builtin': False,
- 'description': 'Power Supply 2',
- 'number': '2',
- 'part_no': ['578322-B21'],
- 'serial': '5AVDC0C4D0S3UM',
- 'type': 'PSU',
- 'vendor': 'HP'},
- {'builtin': False,
- 'description': 'Power Supply 3',
- 'number': '3',
- 'part_no': ['578322-B21'],
- 'serial': '5AVDC0C4D0S2NE',
- 'type': 'PSU',
- 'vendor': 'HP'},
- {'builtin': False,
- 'description': 'Power Supply 4',
- 'number': '4',
- 'part_no': ['578322-B21'],
- 'serial': '5AVDC0C4D0S2NF',
- 'type': 'PSU',
- 'vendor': 'HP'}]
- o =
- {'builtin': False,
- 'description': 'Power Supply 4',
- 'number': '4',
- 'part_no': ['578322-B21'],
- 'serial': '5AVDC0C4D0S2NF',
- 'type': 'PSU',
- 'vendor': 'HP'}
- ------------------------------------------------------------------------
- File: /opt/noc/lib/scheduler/scheduler.py (Line: 265)
- Function: _job_wrapper
- 258 else:
- 259 return self._job_wrapper(job, **kwargs)
- 260
- 261 def _job_wrapper(self, job, **kwargs):
- 262 tb = None
- 263 t0 = time.time()
- 264 try:
- 265 ==> r = job.handler(**kwargs)
- 266 except Exception:
- 267 # error_report()
- 268 tb = get_traceback()
- 269 job.error(tb)
- 270 job.on_exception()
- 271 s = job.S_EXCEPTION
- Variables:
- job =
- tb = None
- self =
- t0 = 1386753845.219352
- kwargs =
- {'object': ,
- 'result': [{'builtin': False,
- 'description': 'ProLiant SL390s G7 (612227-B21)',
- 'number': 'None',
- 'part_no': ['612227-B21'],
- 'serial': 'CZ3136SR3A',
- 'type': 'CHASSIS',
- 'vendor': 'HP'},
- {'builtin': False,
- 'description': 'Intel(R) Xeon(R) CPU E5649 @ 2.53GHz',
- 'number': 'cpu@0',
- 'part_no': ['E5649'],
- 'serial': 'None',
- 'type': 'CPU',
- 'vendor': 'INTEL'},
- {'builtin': False,
- 'description': 'Intel(R) Xeon(R) CPU E5649 @ 2.53GHz',
- 'number': 'cpu@1',
- 'part_no': ['E5649'],
- 'serial': 'None',
- 'type': 'CPU',
- 'vendor': 'INTEL'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '1:2C',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '1:4B',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '1:5D',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '1:6A',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '2:2C',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '2:4B',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '2:5D',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '8GiB DIMM DDR3 Synchronous 1333 MHz (0.8 ns)',
- 'number': '2:6A',
- 'part_no': ['NoName'],
- 'serial': 'None',
- 'type': 'RAM',
- 'vendor': 'NONAME'},
- {'builtin': False,
- 'description': '82576 Gigabit Network Connection',
- 'number': 'pci@0000:04:00',
- 'part_no': ['82576 Gigabit Network Connection'],
- 'serial': '18:a9:05:c5:a7:5c',
- 'type': 'CARD',
- 'vendor': 'INTEL'},
- {'builtin': False,
- 'description': 'NetXtreme II BCM5709 Gigabit Ethernet',
- 'number': 'pci@0000:0b:00',
- 'part_no': ['NetXtreme II BCM5709 Gigabit Ethernet'],
- 'serial': '9c:8e:99:22:c9:60',
- 'type': 'CARD',
- 'vendor': 'BROADCOM'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:08:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323111075686',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:09:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323111076615',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:0a:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323111076216',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': 'VGA compatible controller',
- 'number': 'pci@0000:01:03',
- 'part_no': ['ES1000'],
- 'serial': 'None',
- 'type': 'CARD',
- 'vendor': 'AMD'},
- {'builtin': False,
- 'description': 'MM0500EBKAE ATA Disk',
- 'number': 'None',
- 'part_no': ['MM0500EBKAE'],
- 'serial': '9XF0E06L',
- 'type': 'DRIVE',
- 'vendor': 'None'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:19:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323910065827',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:1a:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323111078313',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:1b:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323910066193',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:15:00',
- 'part_no': ['Tesla M2070'],
- 'serial': '0323111078150',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': '3D controller',
- 'number': 'pci@0000:16:00',
- 'part_no': ['Tesla M2070-Q'],
- 'serial': '0324512034184',
- 'type': 'CARD',
- 'vendor': 'NVIDIA'},
- {'builtin': False,
- 'description': 'Power Supply 1',
- 'number': '1',
- 'part_no': ['578322-B21'],
- 'serial': '5AVDC0C4D0S3UL',
- 'type': 'PSU',
- 'vendor': 'HP'},
- {'builtin': False,
- 'description': 'Power Supply 2',
- 'number': '2',
- 'part_no': ['578322-B21'],
- 'serial': '5AVDC0C4D0S3UM',
- 'type': 'PSU',
- 'vendor': 'HP'},
- {'builtin': False,
- 'description': 'Power Supply 3',
- 'number': '3',
- 'part_no': ['578322-B21'],
- 'serial': '5AVDC0C4D0S2NE',
- 'type': 'PSU',
- 'vendor': 'HP'},
- {'builtin': False,
- 'description': 'Power Supply 4',
- 'number': '4',
- 'part_no': ['578322-B21'],
- 'serial': '5AVDC0C4D0S2NF',
- 'type': 'PSU',
- 'vendor': 'HP'}]}
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement