Advertisement
Guest User

Untitled

a guest
Sep 24th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.88 KB | None | 0 0
  1. Updating pyRule vc_provisioning
  2. Syncronize collections
  3. Syncing noc.sockets:
  4. Syncing noc.vendors:
  5. Syncing noc.models:
  6. Syncing noc.oidaliases:
  7. Syncing noc.syntaxaliases:
  8. Syncing noc.mibaliases:
  9. Syncing noc.mibpreferences:
  10. Creating: EQUIPMENT-MIB(4300)
  11. Creating: AGENT-GENERAL-MIB(4400)
  12. Creating: HUAWEI-CONFIG-MAN-MIB(4700)
  13. Creating: HUAWEI-MIB(4800)
  14. Syncing noc.enumerations:
  15. Syncing noc.alarmseverities:
  16. Updating: INFO
  17. ERROR:root:UNHANDLED EXCEPTION (2012-09-24 16:14:14.163789)
  18. Working directory: /opt/noc
  19. <class 'noc.main.models.style.DoesNotExist'>
  20. Style matching query does not exist.
  21. START OF TRACEBACK
  22. ------------------------------------------------------------------------
  23. File: /opt/noc/contrib/lib/django/db/models/query.py (Line: 366)
  24. Function: get
  25. 359 if self.query.can_filter():
  26. 360 clone = clone.order_by()
  27. 361 num = len(clone)
  28. 362 if num == 1:
  29. 363 return clone._result_cache[0]
  30. 364 if not num:
  31. 365 raise self.model.DoesNotExist("%s matching query does not exist."
  32. 366 ==> % self.model._meta.object_name)
  33. 367 raise self.model.MultipleObjectsReturned("get() returned more than one %s -- it returned %s! Lookup parameters were %s"
  34. 368 % (self.model._meta.object_name, num, kwargs))
  35. 369
  36. 370 def create(self, **kwargs):
  37. 371 """
  38. 372 Creates a new object with the given kwargs, saving it to the database
  39. Variables:
  40. clone = []
  41. num = 0
  42. self = [<Style: FM CRITICAL>, <Style: FM INFO>, <Style: FM MAJOR>, <Style: FM MINOR>, <Style: FM WARNING>, <Style: IP - DHCP Start>, <Style: IP - DHCP Stop>, <Style: IP - Disconnected>, <Style: IP - Gateway>, <Style: IP/NET - Reserved>, <Style: NET - Telenor Unused>, <Style: NET - Unused>]
  43. args = ()
  44. kwargs = {'pk': 2}
  45. ------------------------------------------------------------------------
  46. File: /opt/noc/contrib/lib/django/db/models/manager.py (Line: 131)
  47. Function: get
  48. 124 def distinct(self, *args, **kwargs):
  49. 125 return self.get_query_set().distinct(*args, **kwargs)
  50. 126
  51. 127 def extra(self, *args, **kwargs):
  52. 128 return self.get_query_set().extra(*args, **kwargs)
  53. 129
  54. 130 def get(self, *args, **kwargs):
  55. 131 ==> return self.get_query_set().get(*args, **kwargs)
  56. 132
  57. 133 def get_or_create(self, **kwargs):
  58. 134 return self.get_query_set().get_or_create(**kwargs)
  59. 135
  60. 136 def create(self, **kwargs):
  61. 137 return self.get_query_set().create(**kwargs)
  62. Variables:
  63. self = <django.db.models.manager.Manager object at 0x7ffb83537350>
  64. args = ()
  65. kwargs = {'pk': 2}
  66. ------------------------------------------------------------------------
  67. File: /opt/noc/lib/nosql.py (Line: 206)
  68. Function: __get__
  69. 199 # Document class being used rather than a document object
  70. 200 return self
  71. 201
  72. 202 # Get value from document instance if available
  73. 203 value = instance._data.get(self.name)
  74. 204 # Dereference
  75. 205 if isinstance(value, int):
  76. 206 ==> value = self.document_type.objects.get(pk=value)
  77. 207 if value is not None:
  78. 208 instance._data[self.name] = value
  79. 209 return super(ForeignKeyField, self).__get__(instance, owner)
  80. 210
  81. 211 def to_mongo(self, document):
  82. 212 if isinstance(document, Model):
  83. Variables:
  84. owner = <class 'noc.fm.models.AlarmSeverity'>
  85. instance = <AlarmSeverity: WARNING>
  86. self = <noc.lib.nosql.ForeignKeyField object at 0x7ffb81ed7f10>
  87. value = 2
  88. ------------------------------------------------------------------------
  89. File: /opt/noc/main/management/commands/sync-collections.py (Line: 120)
  90. Function: sync_item
  91. 113 # Dereference ref_field__field lookups
  92. 114 if "__" in i and not i.startswith("__"):
  93. 115 i, f = i.split("__")
  94. 116 if i not in self.doc._fields:
  95. 117 self.die("Invalid lookup field: %s" % i)
  96. 118 ref = self.doc._fields[i].document_type
  97. 119 v = self.lookup(ref, f, v)
  98. 120 ==> cv = getattr(obj, i)
  99. 121 if cv is None or cv.id != v.id:
  100. 122 changed = True
  101. 123 setattr(obj, i, v)
  102. 124 continue
  103. 125 # Process fields
  104. 126 try:
  105. Variables:
  106. changed = False
  107. obj = <AlarmSeverity: WARNING>
  108. d = {'severity': 2000, 'is_builtin': True, 'style__name': 'FM WARNING', 'name': 'WARNING', 'description': 'Some services can be affected. Overall impact on network operation is small'}
  109. f = 'name'
  110. i = 'style'
  111. allow_partial = True
  112. k = {'name': 'WARNING'}
  113. created = False
  114. sk = [{'name': 'WARNING'}]
  115. field = <mongoengine.fields.BooleanField object at 0x7ffb81ed7e50>
  116. u = 'name'
  117. v = <Style: FM WARNING>
  118. partial = False
  119. ref = <class 'noc.main.models.style.Style'>
  120. self = <noc.main.management.commands.sync-collections.CollectionSync object at 0x7ffb816b39d0>
  121. ------------------------------------------------------------------------
  122. File: /opt/noc/main/management/commands/sync-collections.py (Line: 197)
  123. Function: sync
  124. 190 self.unique = set()
  125. 191 for index in self.doc._meta["unique_indexes"]:
  126. 192 for f, flag in index:
  127. 193 self.unique.add(f)
  128. 194 # Sync items
  129. 195 retry = []
  130. 196 for d in self.get_data():
  131. 197 ==> item_id, to_retry = self.sync_item(d, True)
  132. 198 try:
  133. 199 self.builtin_ids.remove(item_id)
  134. 200 except KeyError:
  135. 201 pass
  136. 202 if to_retry:
  137. 203 retry += [d]
  138. Variables:
  139. index = [('name', 1)]
  140. retry = []
  141. d = {'severity': 2000, 'is_builtin': True, 'style__name': 'FM WARNING', 'name': 'WARNING', 'description': 'Some services can be affected. Overall impact on network operation is small'}
  142. f = 'name'
  143. self = <noc.main.management.commands.sync-collections.CollectionSync object at 0x7ffb816b39d0>
  144. o = <AlarmSeverity: CRITICAL>
  145. item_id = '4f7d76d24a5e68205a0000b6'
  146. flag = 1
  147. to_retry = False
  148. ------------------------------------------------------------------------
  149. File: /opt/noc/main/management/commands/sync-collections.py (Line: 266)
  150. Function: handle
  151. 259 if not a:
  152. 260 raise CommandError("Invalid collection: %s" % name)
  153. 261 CollectionSync(*a)
  154. 262 else:
  155. 263 # Sync all collections
  156. 264 for app, collections in self.collections:
  157. 265 for collection, doc in collections:
  158. 266 ==> CollectionSync(app, collection, doc).sync()
  159. 267 except CommandError, why:
  160. 268 raise CommandError(why)
  161. 269 except:
  162. 270 error_report()
  163. Variables:
  164. doc = <class 'noc.fm.models.AlarmSeverity'>
  165. app = 'fm'
  166. args = ()
  167. collection = 'alarmseverities'
  168. self = <noc.main.management.commands.sync-collections.Command object at 0x7ffb816b3a10>
  169. 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'>)]
  170. options = {'pythonpath': None, 'verbosity': '1', 'traceback': None, 'settings': None}
  171. ------------------------------------------------------------------------
  172. END OF TRACEBACK
  173. Syncronizing refbooks
  174. UPDATE RefBook Выписка из реестра Российской системы нумерации
  175. UPDATE RefBook IEEE OUI
  176. UPDATE RefBook Российский План Нумерации
  177. UPDATE RefBook SMI Network Management Private Enterprise Codes
  178. UPDATE RefBook E.164 Country Prefixes
  179. UPDATE RefBook ISO 3166 Country Codes
  180. UPDATE RefBook Q.931 Call Clearings
  181. Syncronize MIBs
  182. Synchnonizing MIBs
  183. creating HUAWEI-CONFIG-MAN-MIB
  184. creating IANA-ITU-ALARM-TC-MIB
  185. creating ITU-ALARM-TC-MIB
  186. creating HUAWEI-MFLP-MIB
  187. creating HUAWEI-L2IF-MIB
  188. creating HUAWEI-BASE-TRAP-MIB
  189. creating HUAWEI-LLDP-MIB
  190. creating SWDGS3024PRIMGMT-MIB
  191. updating TIMERANGE-MIB
  192. updating EQUIPMENT-MIB
  193. Traceback (most recent call last):
  194. File "manage.py", line 41, in <module>
  195. execute_from_command_line(sys.argv)
  196. File "/opt/noc/contrib/lib/django/core/management/__init__.py", line 443, in execute_from_command_line
  197. utility.execute()
  198. File "/opt/noc/contrib/lib/django/core/management/__init__.py", line 382, in execute
  199. self.fetch_command(subcommand).run_from_argv(self.argv)
  200. File "/opt/noc/contrib/lib/django/core/management/base.py", line 196, in run_from_argv
  201. self.execute(*args, **options.__dict__)
  202. File "/opt/noc/contrib/lib/django/core/management/base.py", line 232, in execute
  203. output = self.handle(*args, **options)
  204. File "/opt/noc/fm/management/commands/sync-mibs.py", line 38, in handle
  205. self.sync_mibs(force=options["force"])
  206. File "/opt/noc/fm/management/commands/sync-mibs.py", line 72, in sync_mibs
  207. self.update_mib(mib, data + f.read(), version=0)
  208. File "/opt/noc/fm/management/commands/sync-mibs.py", line 114, in update_mib
  209. mib.load_data(d["data"])
  210. File "/opt/noc/fm/models.py", line 384, in load_data
  211. "Equal preferences")
  212. noc.fm.models.OIDCollision: Cannot resolve OID 1.3.6.1.4.1.171.12.11.1.11.1 collision between EQUIPMENT-MIB::swEquipPowerSavingLinkDetectState and EQUIPMENT-MIB::swEquipmentPowerSavingState. Equal preferences
  213. post-update: 80: sync-mibs failed
  214. Terminating
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement