Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Updating pyRule version_inventory
- Updating pyRule refresh_config
- Updating pyRule prefix_list_provisioning
- Updating pyRule mrt_result
- Updating pyRule result_report
- Updating pyRule matrix_report
- Updating pyRule open_event
- Updating pyRule get_single_result
- Updating pyRule drop_event
- Updating pyRule vc_provisioning
- Syncronize collections
- /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.
- _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
- Syncing noc.sockets:
- Syncing noc.vendors:
- Syncing noc.models:
- Syncing noc.oidaliases:
- Syncing noc.syntaxaliases:
- Syncing noc.mibaliases:
- Syncing noc.mibpreferences:
- Creating: EQUIPMENT-MIB(4300)
- ERROR:root:UNHANDLED EXCEPTION (2012-07-10 13:36:00.867395)
- Working directory: /opt/noc
- <class 'mongoengine.queryset.OperationError'>
- Tried to save duplicate unique keys (E11000 duplicate key error index: noc.noc.mibpreferences.$preference_1 dup key: { : 4300 })
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/contrib/lib/mongoengine-0.6.1-py2.6.egg/mongoengine/document.py (Line: 222)
- Function: save
- 215 kwargs['_refs'] = _refs
- 216 self.cascade_save(**kwargs)
- 217
- 218 except pymongo.errors.OperationFailure, err:
- 219 message = 'Could not save document (%s)'
- 220 if u'duplicate key' in unicode(err):
- 221 message = u'Tried to save duplicate unique keys (%s)'
- 222 ==> raise OperationError(message % unicode(err))
- 223 id_field = self._meta['id_field']
- 224 self[id_field] = self._fields[id_field].to_python(object_id)
- 225
- 226 self._changed_fields = []
- 227 self._created = False
- 228 signals.post_save.send(self.__class__, document=self, created=created)
- Variables:
- safe = True
- err = DuplicateKeyError(u'E11000 duplicate key error index: noc.noc.mibpreferences.$preference_1 dup key: { : 4300 }',)
- created = True
- doc = {'is_builtin': True, 'mib': u'EQUIPMENT-MIB', 'preference': 4300, '_id': ObjectId('4ffc05900825541ccc000000')}
- self = <MIBPreference: EQUIPMENT-MIB(4300)>
- force_insert = False
- _refs = None
- collection = Collection(Database(Connection('localhost', 27017), u'noc'), u'noc.mibpreferences')
- cascade = None
- cascade_kwargs = None
- write_options = {}
- message = u'Tried to save duplicate unique keys (%s)'
- validate = True
- ------------------------------------------------------------------------
- File: /opt/noc/main/management/commands/sync-collections.py (Line: 173)
- Function: sync_item
- 166 elif getattr(obj, i) != v:
- 167 # Other types
- 168 changed = True
- 169 setattr(obj, i, v)
- 170 # Save and report changes if exists
- 171 if created:
- 172 self.log("Creating: %s" % unicode(obj))
- 173 ==> obj.save()
- 174 elif changed:
- 175 self.log("Updating: %s" % unicode(obj))
- 176 obj.save()
- 177 return str(obj.id), partial
- 178
- 179 def sync(self):
- Variables:
- obj = <MIBPreference: EQUIPMENT-MIB(4300)>
- d = {'is_builtin': True, u'mib': u'EQUIPMENT-MIB', u'preference': 4300}
- created = True
- i = 'preference'
- k = {'mib': u'EQUIPMENT-MIB', 'preference': 4300}
- changed = True
- sk = [{'mib': u'EQUIPMENT-MIB', 'preference': 4300}]
- field = <mongoengine.fields.IntField object at 0x25e9310>
- u = 'preference'
- v = 4300
- partial = False
- allow_partial = True
- self = <noc.main.management.commands.sync-collections.CollectionSync object at 0x4cd83d0>
- ------------------------------------------------------------------------
- File: /opt/noc/main/management/commands/sync-collections.py (Line: 192)
- Function: sync
- 185 self.unique = set()
- 186 for index in self.doc._meta["unique_indexes"]:
- 187 for f, flag in index:
- 188 self.unique.add(f)
- 189 # Sync items
- 190 retry = []
- 191 for d in self.get_data():
- 192 ==> item_id, to_retry = self.sync_item(d, True)
- 193 try:
- 194 self.builtin_ids.remove(item_id)
- 195 except KeyError:
- 196 pass
- 197 if to_retry:
- 198 retry += [d]
- Variables:
- index = [('preference', 1)]
- retry = []
- d = {'is_builtin': True, u'mib': u'EQUIPMENT-MIB', u'preference': 4300}
- f = 'preference'
- self = <noc.main.management.commands.sync-collections.CollectionSync object at 0x4cd83d0>
- o = <MIBPreference: AGENT-GENERAL-MIB(4300)>
- item_id = '4fa3a1f508255459bf0000b0'
- flag = 1
- to_retry = False
- ------------------------------------------------------------------------
- File: /opt/noc/main/management/commands/sync-collections.py (Line: 261)
- Function: handle
- 254 if not a:
- 255 raise CommandError("Invalid collection: %s" % name)
- 256 CollectionSync(*a)
- 257 else:
- 258 # Sync all collections
- 259 for app, collections in self.collections:
- 260 for collection, doc in collections:
- 261 ==> CollectionSync(app, collection, doc).sync()
- 262 except CommandError, why:
- 263 raise CommandError(why)
- 264 except:
- 265 error_report()
- Variables:
- doc = <class 'noc.fm.models.MIBPreference'>
- app = 'fm'
- args = ()
- collection = 'mibpreferences'
- self = <noc.main.management.commands.sync-collections.Command object at 0x4cd1950>
- 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'>)]
- options = {'pythonpath': None, 'verbosity': '1', 'traceback': None, 'settings': None}
- ------------------------------------------------------------------------
- END OF TRACEBACK
- Syncronizing refbooks
- /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.
- _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
- UPDATE RefBook Выписка из реестра Российской системы нумерации
- UPDATE RefBook E.164 Country Prefixes
- UPDATE RefBook SMI Network Management Private Enterprise Codes
- UPDATE RefBook Q.931 Call Clearings
- UPDATE RefBook ISO 3166 Country Codes
- UPDATE RefBook Российский План Нумерации
- UPDATE RefBook IEEE OUI
- Syncronize MIBs
- /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.
- _warn("Not using mpz_powm_sec. You should rebuild using libgmp >= 5 to avoid timing attack vulnerability.", PowmInsecureWarning)
- Synchnonizing MIBs
- post-update complete
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement