Advertisement
Guest User

Untitled

a guest
Jul 10th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.41 KB | None | 0 0
  1. Updating pyRule version_inventory
  2. Updating pyRule refresh_config
  3. Updating pyRule prefix_list_provisioning
  4. Updating pyRule mrt_result
  5. Updating pyRule result_report
  6. Updating pyRule matrix_report
  7. Updating pyRule open_event
  8. Updating pyRule get_single_result
  9. Updating pyRule drop_event
  10. Updating pyRule vc_provisioning
  11. Syncronize collections
  12. /opt/noc/contrib/lib/pycrypto-2.5-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
  13. _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
  14. Syncing noc.sockets:
  15. Syncing noc.vendors:
  16. Syncing noc.models:
  17. Syncing noc.oidaliases:
  18. Syncing noc.syntaxaliases:
  19. Syncing noc.mibaliases:
  20. Syncing noc.mibpreferences:
  21. Creating: EQUIPMENT-MIB(4300)
  22. ERROR:root:UNHANDLED EXCEPTION (2012-07-10 13:36:00.867395)
  23. Working directory: /opt/noc
  24. <class 'mongoengine.queryset.OperationError'>
  25. Tried to save duplicate unique keys (E11000 duplicate key error index: noc.noc.mibpreferences.$preference_1 dup key: { : 4300 })
  26. START OF TRACEBACK
  27. ------------------------------------------------------------------------
  28. File: /opt/noc/contrib/lib/mongoengine-0.6.1-py2.6.egg/mongoengine/document.py (Line: 222)
  29. Function: save
  30. 215 kwargs['_refs'] = _refs
  31. 216 self.cascade_save(**kwargs)
  32. 217
  33. 218 except pymongo.errors.OperationFailure, err:
  34. 219 message = 'Could not save document (%s)'
  35. 220 if u'duplicate key' in unicode(err):
  36. 221 message = u'Tried to save duplicate unique keys (%s)'
  37. 222 ==> raise OperationError(message % unicode(err))
  38. 223 id_field = self._meta['id_field']
  39. 224 self[id_field] = self._fields[id_field].to_python(object_id)
  40. 225
  41. 226 self._changed_fields = []
  42. 227 self._created = False
  43.  
  44. 228 signals.post_save.send(self.__class__, document=self, created=created)
  45. Variables:
  46. safe = True
  47. err = DuplicateKeyError(u'E11000 duplicate key error index: noc.noc.mibpreferences.$preference_1 dup key: { : 4300 }',)
  48. created = True
  49. doc = {'is_builtin': True, 'mib': u'EQUIPMENT-MIB', 'preference': 4300, '_id': ObjectId('4ffc05900825541ccc000000')}
  50. self = <MIBPreference: EQUIPMENT-MIB(4300)>
  51. force_insert = False
  52. _refs = None
  53. collection = Collection(Database(Connection('localhost', 27017), u'noc'), u'noc.mibpreferences')
  54. cascade = None
  55. cascade_kwargs = None
  56. write_options = {}
  57. message = u'Tried to save duplicate unique keys (%s)'
  58. validate = True
  59. ------------------------------------------------------------------------
  60. File: /opt/noc/main/management/commands/sync-collections.py (Line: 173)
  61. Function: sync_item
  62. 166 elif getattr(obj, i) != v:
  63. 167 # Other types
  64. 168 changed = True
  65. 169 setattr(obj, i, v)
  66. 170 # Save and report changes if exists
  67. 171 if created:
  68. 172 self.log("Creating: %s" % unicode(obj))
  69. 173 ==> obj.save()
  70. 174 elif changed:
  71. 175 self.log("Updating: %s" % unicode(obj))
  72. 176 obj.save()
  73. 177 return str(obj.id), partial
  74. 178
  75. 179 def sync(self):
  76. Variables:
  77. obj = <MIBPreference: EQUIPMENT-MIB(4300)>
  78. d = {'is_builtin': True, u'mib': u'EQUIPMENT-MIB', u'preference': 4300}
  79. created = True
  80. i = 'preference'
  81. k = {'mib': u'EQUIPMENT-MIB', 'preference': 4300}
  82. changed = True
  83. sk = [{'mib': u'EQUIPMENT-MIB', 'preference': 4300}]
  84. field = <mongoengine.fields.IntField object at 0x25e9310>
  85. u = 'preference'
  86. v = 4300
  87. partial = False
  88. allow_partial = True
  89. self = <noc.main.management.commands.sync-collections.CollectionSync object at 0x4cd83d0>
  90. ------------------------------------------------------------------------
  91. File: /opt/noc/main/management/commands/sync-collections.py (Line: 192)
  92. Function: sync
  93. 185 self.unique = set()
  94. 186 for index in self.doc._meta["unique_indexes"]:
  95. 187 for f, flag in index:
  96. 188 self.unique.add(f)
  97. 189 # Sync items
  98. 190 retry = []
  99. 191 for d in self.get_data():
  100. 192 ==> item_id, to_retry = self.sync_item(d, True)
  101.  
  102. 193 try:
  103. 194 self.builtin_ids.remove(item_id)
  104. 195 except KeyError:
  105. 196 pass
  106. 197 if to_retry:
  107. 198 retry += [d]
  108. Variables:
  109. index = [('preference', 1)]
  110. retry = []
  111. d = {'is_builtin': True, u'mib': u'EQUIPMENT-MIB', u'preference': 4300}
  112. f = 'preference'
  113. self = <noc.main.management.commands.sync-collections.CollectionSync object at 0x4cd83d0>
  114. o = <MIBPreference: AGENT-GENERAL-MIB(4300)>
  115. item_id = '4fa3a1f508255459bf0000b0'
  116. flag = 1
  117. to_retry = False
  118. ------------------------------------------------------------------------
  119. File: /opt/noc/main/management/commands/sync-collections.py (Line: 261)
  120. Function: handle
  121. 254 if not a:
  122. 255 raise CommandError("Invalid collection: %s" % name)
  123. 256 CollectionSync(*a)
  124. 257 else:
  125. 258 # Sync all collections
  126. 259 for app, collections in self.collections:
  127. 260 for collection, doc in collections:
  128. 261 ==> CollectionSync(app, collection, doc).sync()
  129. 262 except CommandError, why:
  130. 263 raise CommandError(why)
  131. 264 except:
  132. 265 error_report()
  133. Variables:
  134. doc = <class 'noc.fm.models.MIBPreference'>
  135. app = 'fm'
  136. args = ()
  137. collection = 'mibpreferences'
  138. self = <noc.main.management.commands.sync-collections.Command object at 0x4cd1950>
  139. collections = [('oidaliases', <class 'noc.fm.models.OIDAlias'>), ('syntaxaliases', <class 'noc.fm.models.SyntaxAlias'>), ('mibaliases', <class 'noc.fm.models.MIBAlias'>), ('mibpreferences', <class 'noc.fm.models.MIBPreference'>), ('enumerations', <class 'noc.fm.models.Enumeration'>), ('alarmseverities', <class 'noc.fm.models.AlarmSeverity'>), ('alarmclasses', <class 'noc.fm.models.AlarmClass'>), ('eventclasses', <class 'noc.fm.models.EventClass'>), ('eventclassificationrules', <class 'noc.fm.models.EventClassificationRule'>), ('cloneclassificationrules', <class 'noc.fm.models.CloneClassificationRule'>)]
  140. options = {'pythonpath': None, 'verbosity': '1', 'traceback': None, 'settings': None}
  141. ------------------------------------------------------------------------
  142. END OF TRACEBACK
  143. Syncronizing refbooks
  144. /opt/noc/contrib/lib/pycrypto-2.5-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
  145. _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
  146. UPDATE RefBook Выписка из реестра Российской системы нумерации
  147. UPDATE RefBook E.164 Country Prefixes
  148. UPDATE RefBook SMI Network Management Private Enterprise Codes
  149. UPDATE RefBook Q.931 Call Clearings
  150. UPDATE RefBook ISO 3166 Country Codes
  151. UPDATE RefBook Российский План Нумерации
  152. UPDATE RefBook IEEE OUI
  153. Syncronize MIBs
  154.  
  155. /opt/noc/contrib/lib/pycrypto-2.5-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57: PowmInsecureWarning: Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.
  156. _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
  157. Synchnonizing MIBs
  158. post-update complete
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement