Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2012-11-01 11:20:26,028 Periodic task=cm.dns_pull:Any status=running
- 2012-11-01 11:20:26,041 UNHANDLED EXCEPTION (2012-11-01 11:20:26.039358)
- Working directory: /opt/noc
- <type 'exceptions.KeyError'>
- u'bind9'
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /opt/noc/lib/registry.py (Line: 90)
- Function: __getitem__
- 83 if f in self.exclude:
- 84 continue
- 85 f = "." + f
- 86 __import__(mb + f, {}, {}, self.classname)
- 87 self.is_registered = True
- 88
- 89 def __getitem__(self, name):
- 90 ==> return self.classes[name]
- 91
- 92 def __contains__(self, item):
- 93 return item in self.classes
- 94
- 95 @property
- 96 def choices(self):
- Variables:
- self = <noc.dns.generators.GeneratorRegistry object at 0x44c1250>
- name = u'bind9'
- ------------------------------------------------------------------------
- File: /opt/noc/dns/models/dnsserver.py (Line: 106)
- Function: generator_class
- 99 return retcode == 0
- 100
- 101 @property
- 102 def generator_class(self):
- 103 """
- 104 Property containing generator class
- 105 """
- 106 ==> return generator_registry[self.generator_name]
- 107
- 108 def save(self, *args, **kwargs):
- 109 super(DNSServer, self).save(*args, **kwargs)
- 110 from dnszone import DNSZone
- 111 DNSZone.touch(self.name)
- Variables:
- self = <DNSServer: ns1.amsterdamtelecom.ru>
- ------------------------------------------------------------------------
- File: /opt/noc/dns/models/dnszone.py (Line: 219)
- Function: zonedata
- 212
- 213 :param ns: DNS Server
- 214 :type ns: DNSServer
- 215 :return: Zone data
- 216 :rtype: str
- 217 """
- 218 # @todo: deprecated
- 219 ==> return ns.generator_class().get_zone(self)
- 220
- 221 @property
- 222 def distribution_list(self):
- 223 """List of DNSServers to distribute zone
- 224
- 225 :return: List of DNSServers
- Variables:
- self = <DNSZone: amsnet.ru>
- ns = <DNSServer: ns1.amsterdamtelecom.ru>
- ------------------------------------------------------------------------
- File: /opt/noc/cm/models.py (Line: 538)
- Function: global_pull
- 531 o = objects[path]
- 532 del objects[path]
- 533 else:
- 534 logging.debug(
- 535 "DNSHandler.global_pull: Creating object %s" % path)
- 536 o = DNS(repo_path=path)
- 537 o.save()
- 538 ==> if is_differ(o.path, z.zonedata(ns)):
- 539 changed[z] = None
- 540 for o in objects.values():
- 541 if "/" not in o.repo_path:
- 542 continue
- 543 logging.debug("DNS.global_pull: Deleting object: %s" % o.repo_path)
- 544 o.delete()
- Variables:
- z = <DNSZone: amsnet.ru>
- DNSServer = <class 'noc.dns.models.dnsserver.DNSServer'>
- DNSZone = <class 'noc.dns.models.dnszone.DNSZone'>
- changed = {}
- o = <DNS: dns/ns1.amsterdamtelecom.ru/amsnet.ru>
- objects = {u'amsnet.ru': <DNS: dns/amsnet.ru>, u'amsterdamtelecom.ru': <DNS: dns/amsterdamtelecom.ru>}
- path = u'ns1.amsterdamtelecom.ru/amsnet.ru'
- ns = <DNSServer: ns1.amsterdamtelecom.ru>
- cls = <class 'noc.cm.models.DNS'>
- ------------------------------------------------------------------------
- File: /opt/noc/cm/periodics/dns_pull.py (Line: 16)
- Function: execute
- 9
- 10 class Task(noc.lib.periodic.Task):
- 11 name="cm.dns_pull"
- 12 description=""
- 13 wait_for=["cm.dns_push"]
- 14 def execute(self):
- 15 from noc.cm.models import DNS
- 16 ==> DNS.global_pull()
- 17 return True
- 18
- Variables:
- self = <noc.cm.periodics.dns_pull.Task object at 0x471c150>
- DNS = <class 'noc.cm.models.DNS'>
- ------------------------------------------------------------------------
- File: /opt/noc/main/scheduler/periodic.py (Line: 74)
- Function: task_wrapper
- 67 t = datetime.datetime.now()
- 68 cwd = os.getcwd()
- 69 try:
- 70 if task.periodic_name.startswith("pyrule:"):
- 71 status = PyRule.call(task.periodic_name[7:],
- 72 timeout=task.timeout)
- 73 else:
- 74 ==> status = task.periodic(task.timeout).execute()
- 75 except:
- 76 error_report()
- 77 status = False
- 78 logging.info(u"Periodic task=%s status=%s" % (unicode(task),
- 79 "completed" if status else "failed"))
- 80 # Current path may be implicitly changed by periodic. Restore old value
- Variables:
- self = <PeriodicScheduler(Thread-1, started daemon 140169691121408)>
- task = <Schedule: cm.dns_pull:Any>
- cwd = '/opt/noc'
- t = datetime.datetime(2012, 11, 1, 11, 20, 26, 28758)
- ------------------------------------------------------------------------
- END OF TRACEBACK
- 2012-11-01 11:20:26,042 Periodic task=cm.dns_pull:Any status=failed
Advertisement
Add Comment
Please, Sign In to add comment