Guest User

Untitled

a guest
Nov 1st, 2012
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.77 KB | None | 0 0
  1. 2012-11-01 11:20:26,028 Periodic task=cm.dns_pull:Any status=running
  2. 2012-11-01 11:20:26,041 UNHANDLED EXCEPTION (2012-11-01 11:20:26.039358)
  3. Working directory: /opt/noc
  4. <type 'exceptions.KeyError'>
  5. u'bind9'
  6. START OF TRACEBACK
  7. ------------------------------------------------------------------------
  8. File: /opt/noc/lib/registry.py (Line: 90)
  9. Function: __getitem__
  10. 83 if f in self.exclude:
  11. 84 continue
  12. 85 f = "." + f
  13. 86 __import__(mb + f, {}, {}, self.classname)
  14. 87 self.is_registered = True
  15. 88
  16. 89 def __getitem__(self, name):
  17. 90 ==> return self.classes[name]
  18. 91
  19. 92 def __contains__(self, item):
  20. 93 return item in self.classes
  21. 94
  22. 95 @property
  23. 96 def choices(self):
  24. Variables:
  25. self = <noc.dns.generators.GeneratorRegistry object at 0x44c1250>
  26. name = u'bind9'
  27. ------------------------------------------------------------------------
  28. File: /opt/noc/dns/models/dnsserver.py (Line: 106)
  29. Function: generator_class
  30. 99 return retcode == 0
  31. 100
  32. 101 @property
  33. 102 def generator_class(self):
  34. 103 """
  35. 104 Property containing generator class
  36. 105 """
  37. 106 ==> return generator_registry[self.generator_name]
  38. 107
  39. 108 def save(self, *args, **kwargs):
  40. 109 super(DNSServer, self).save(*args, **kwargs)
  41. 110 from dnszone import DNSZone
  42. 111 DNSZone.touch(self.name)
  43. Variables:
  44. self = <DNSServer: ns1.amsterdamtelecom.ru>
  45. ------------------------------------------------------------------------
  46. File: /opt/noc/dns/models/dnszone.py (Line: 219)
  47. Function: zonedata
  48. 212
  49. 213 :param ns: DNS Server
  50. 214 :type ns: DNSServer
  51. 215 :return: Zone data
  52. 216 :rtype: str
  53. 217 """
  54. 218 # @todo: deprecated
  55. 219 ==> return ns.generator_class().get_zone(self)
  56. 220
  57. 221 @property
  58. 222 def distribution_list(self):
  59. 223 """List of DNSServers to distribute zone
  60. 224
  61. 225 :return: List of DNSServers
  62. Variables:
  63. self = <DNSZone: amsnet.ru>
  64. ns = <DNSServer: ns1.amsterdamtelecom.ru>
  65. ------------------------------------------------------------------------
  66. File: /opt/noc/cm/models.py (Line: 538)
  67. Function: global_pull
  68. 531 o = objects[path]
  69. 532 del objects[path]
  70. 533 else:
  71. 534 logging.debug(
  72. 535 "DNSHandler.global_pull: Creating object %s" % path)
  73. 536 o = DNS(repo_path=path)
  74. 537 o.save()
  75. 538 ==> if is_differ(o.path, z.zonedata(ns)):
  76. 539 changed[z] = None
  77. 540 for o in objects.values():
  78. 541 if "/" not in o.repo_path:
  79. 542 continue
  80. 543 logging.debug("DNS.global_pull: Deleting object: %s" % o.repo_path)
  81. 544 o.delete()
  82. Variables:
  83. z = <DNSZone: amsnet.ru>
  84. DNSServer = <class 'noc.dns.models.dnsserver.DNSServer'>
  85. DNSZone = <class 'noc.dns.models.dnszone.DNSZone'>
  86. changed = {}
  87. o = <DNS: dns/ns1.amsterdamtelecom.ru/amsnet.ru>
  88. objects = {u'amsnet.ru': <DNS: dns/amsnet.ru>, u'amsterdamtelecom.ru': <DNS: dns/amsterdamtelecom.ru>}
  89. path = u'ns1.amsterdamtelecom.ru/amsnet.ru'
  90. ns = <DNSServer: ns1.amsterdamtelecom.ru>
  91. cls = <class 'noc.cm.models.DNS'>
  92. ------------------------------------------------------------------------
  93. File: /opt/noc/cm/periodics/dns_pull.py (Line: 16)
  94. Function: execute
  95. 9
  96. 10 class Task(noc.lib.periodic.Task):
  97. 11 name="cm.dns_pull"
  98. 12 description=""
  99. 13 wait_for=["cm.dns_push"]
  100. 14 def execute(self):
  101. 15 from noc.cm.models import DNS
  102. 16 ==> DNS.global_pull()
  103. 17 return True
  104. 18
  105. Variables:
  106. self = <noc.cm.periodics.dns_pull.Task object at 0x471c150>
  107. DNS = <class 'noc.cm.models.DNS'>
  108. ------------------------------------------------------------------------
  109. File: /opt/noc/main/scheduler/periodic.py (Line: 74)
  110. Function: task_wrapper
  111. 67 t = datetime.datetime.now()
  112. 68 cwd = os.getcwd()
  113. 69 try:
  114. 70 if task.periodic_name.startswith("pyrule:"):
  115. 71 status = PyRule.call(task.periodic_name[7:],
  116. 72 timeout=task.timeout)
  117. 73 else:
  118. 74 ==> status = task.periodic(task.timeout).execute()
  119. 75 except:
  120. 76 error_report()
  121. 77 status = False
  122. 78 logging.info(u"Periodic task=%s status=%s" % (unicode(task),
  123. 79 "completed" if status else "failed"))
  124. 80 # Current path may be implicitly changed by periodic. Restore old value
  125. Variables:
  126. self = <PeriodicScheduler(Thread-1, started daemon 140169691121408)>
  127. task = <Schedule: cm.dns_pull:Any>
  128. cwd = '/opt/noc'
  129. t = datetime.datetime(2012, 11, 1, 11, 20, 26, 28758)
  130. ------------------------------------------------------------------------
  131. END OF TRACEBACK
  132. 2012-11-01 11:20:26,042 Periodic task=cm.dns_pull:Any status=failed
Advertisement
Add Comment
Please, Sign In to add comment