Guest User

Untitled

a guest
Aug 20th, 2012
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.03 KB | None | 0 0
  1. 2012-08-20 13:25:34,300 UNHANDLED EXCEPTION (2012-08-20 13:25:34.295264)
  2. Working directory: /opt/noc
  3. <type 'exceptions.ValueError'>
  4. need more than 3 values to unpack
  5. START OF TRACEBACK
  6. ------------------------------------------------------------------------
  7. File: /opt/noc/dns/models/dnszone.py (Line: 174)
  8. Function: records
  9. 167 All zone records. Zone records returned as list of tuples
  10. 168 (left, type, right), where type is RR type.
  11. 169
  12. 170 :return: Zone records
  13. 171 :trype: List of tuples
  14. 172 """
  15. 173 # @todo: deprecated
  16. 174 ==> return [(a, b, c) for a, b, c, _, _ in self.get_records()]
  17. 175
  18. 176 def zonedata(self, ns):
  19. 177 """
  20. 178 Return zone data formatted for given nameserver.
  21. 179
  22. 180 :param ns: DNS Server
  23. Variables:
  24. a = u'mail'
  25. c = u'mx.gnc.am.'
  26. b = u'CNAME'
  27. self = <DNSZone: gnc.am>
  28. _ = None
  29. ------------------------------------------------------------------------
  30. File: /opt/noc/dns/generators/bindv9.py (Line: 49)
  31. Function: get_records
  32. 42 "expire" : self.zone.profile.zone_expire,
  33. 43 "pretty_expire" : self.pretty_time(self.zone.profile.zone_expire),
  34. 44 "nses" : nses
  35. 45 }
  36. 46
  37. 47 def get_records(self):
  38. 48 s="$ORIGIN %s\n"%self.zone.name
  39. 49 ==> s+=self.format_3_columns(self.zone.records)
  40. 50 return s
  41. 51
  42. 52 def get_include(self,ns):
  43. 53 def ns_list(ds):
  44. 54 s=[ns.ip for ns in ds.order_by("name") if ns.ip]
  45. 55 if s:
  46. Variables:
  47. s = u'$ORIGIN gnc.am\n'
  48. self = <noc.dns.generators.bindv9.Generator object at 0x7fc4a8944090>
  49. ------------------------------------------------------------------------
  50. File: /opt/noc/dns/generators/__init__.py (Line: 58)
  51. Function: get_zone
  52. 51 raise Exception,"Records Not implemented"
  53. 52
  54. 53 def get_zone(self,zone):
  55. 54 self.zone=zone
  56. 55 s=""
  57. 56 s+=self.get_header()
  58. 57 s+=self.get_soa()
  59. 58 ==> s+=self.get_records()
  60. 59 s+=self.get_footer()
  61. 60 return s
  62. 61
  63. 62 def get_include(self,ns):
  64. 63 raise Exception,"Include file is not implemented"
  65. 64
  66. Variables:
  67. s = u';;\n;; WARNING: Auto-generated zone file\n;; Do not edit manually\n;;\n$ORIGIN .\n$TTL 3600\ngnc.am IN SOA ns1.gnc.am. m.khachatryan.gnc.am. (\n 2012081600 ; serial\n 3600 ; refresh (1 hour)\n 900 ; retry (15 mins)\n 1436400 ; expire (4 weeks 15 hours)\n 3600 ; minimum (1 hour)\n )\n\tNS\tns1.gnc.am.\n\tNS\tns2.gnc.am.\n\n'
  68. self = <noc.dns.generators.bindv9.Generator object at 0x7fc4a8944090>
  69. zone = <DNSZone: gnc.am>
  70. ------------------------------------------------------------------------
  71. File: /opt/noc/dns/models/dnszone.py (Line: 186)
  72. Function: zonedata
  73. 179
  74. 180 :param ns: DNS Server
  75. 181 :type ns: DNSServer instance
  76. 182 :return: Zone data
  77. 183 :rtype: String
  78. 184 """
  79. 185 # @todo: deprecated
  80. 186 ==> return ns.generator_class().get_zone(self)
  81. 187
  82. 188 @property
  83. 189 def distribution_list(self):
  84. 190 """List of DNSServers to distribute zone
  85. 191
  86. 192 :return: List of DNSServers
  87. Variables:
  88. self = <DNSZone: gnc.am>
  89. ns = <DNSServer: ns1.gnc.am (Abovyan)>
  90. ------------------------------------------------------------------------
  91. File: /opt/noc/cm/models.py (Line: 538)
  92. Function: global_pull
  93. 531 o = objects[path]
  94. 532 del objects[path]
  95. 533 else:
  96. 534 logging.debug(
  97. 535 "DNSHandler.global_pull: Creating object %s" % path)
  98. 536 o = DNS(repo_path=path)
  99. 537 o.save()
  100. 538 ==> if is_differ(o.path, z.zonedata(ns)):
  101. 539 changed[z] = None
  102. 540 for o in objects.values():
  103. 541 logging.debug("DNS.global_pull: Deleting object: %s" % o.repo_path)
  104. 542 o.delete()
  105. 543 for z in changed:
  106. 544 logging.debug("DNS.global_pull: Zone %s changed" % z.name)
  107. Variables:
  108. z = <DNSZone: gnc.am>
  109. DNSServer = <class 'noc.dns.models.dnsserver.DNSServer'>
  110. DNSZone = <class 'noc.dns.models.dnszone.DNSZone'>
  111. changed = {<DNSZone: 194.47.31.in-addr.arpa>: None, <DNSZone: 1.0.10.in-addr.arpa>: None, <DNSZone: 6.0.10.in-addr.arpa>: None, <DNSZone: 127.193.130.in-addr.arpa>: None, <DNSZone: 98.19.46.in-addr.arpa>: None, <DNSZone: 100.19.46.in-addr.arpa>: None}
  112. o = <DNS: dns/ns1.gnc.am/gnc.am>
  113. objects = {u'ns2.gnc.am/management.gnc.am': <DNS: dns/ns2.gnc.am/management.gnc.am>, u'ns1.gnc.am/southtech.am': <DNS: dns/ns1.gnc.am/southtech.am>, u'ns1.gnc.am/sef.am': <DNS: dns/ns1.gnc.am/sef.am>, u'ns2.gnc.am/gnc.am': <DNS: dns/ns2.gnc.am/gnc.am>, u'ns1.gnc.am/goriscity.am': <DNS: dns/ns1.gnc.am/goriscity.am>, u'ns2.gnc.am/goriscity.am': <DNS: dns/ns2.gnc.am/goriscity.am>, u'ns1.gnc.am/smsme.am': <DNS: dns/ns1.gnc.am/smsme.am>, u'ns2.gnc.am/sef.am': <DNS: dns/ns2.gnc.am/sef.am>, u'ns2.gnc.am/southtech.am': <DNS: dns/ns2.gnc.am/southtech.am>, u'ns1.gnc.am/management.gnc.am': <DNS: dns/ns1.gnc.am/management.gnc.am>, u'ns2.gnc.am/smsme.am': <DNS: dns/ns2.gnc.am/smsme.am>}
  114. path = u'ns1.gnc.am/gnc.am'
  115. ns = <DNSServer: ns1.gnc.am (Abovyan)>
  116. cls = <class 'noc.cm.models.DNS'>
  117. ------------------------------------------------------------------------
  118. File: /opt/noc/cm/periodics/dns_pull.py (Line: 16)
  119. Function: execute
  120. 9
  121. 10 class Task(noc.lib.periodic.Task):
  122. 11 name="cm.dns_pull"
  123. 12 description=""
  124. 13 wait_for=["cm.dns_push"]
  125. 14 def execute(self):
  126. 15 from noc.cm.models import DNS
  127. 16 ==> DNS.global_pull()
  128. 17 return True
  129. 18
  130. Variables:
  131. self = <noc.cm.periodics.dns_pull.Task object at 0x7fc4a870e310>
  132. DNS = <class 'noc.cm.models.DNS'>
  133. ------------------------------------------------------------------------
  134. File: /opt/noc/main/scheduler.py (Line: 72)
  135. Function: task_wrapper
  136. 65 t = datetime.datetime.now()
  137. 66 cwd = os.getcwd()
  138. 67 try:
  139. 68 if task.periodic_name.startswith("pyrule:"):
  140. 69 status = PyRule.call(task.periodic_name[7:],
  141. 70 timeout=task.timeout)
  142. 71 else:
  143. 72 ==> status = task.periodic(task.timeout).execute()
  144. 73 except:
  145. 74 error_report()
  146. 75 status = False
  147. 76 logging.info(u"Periodic task=%s status=%s" % (unicode(task),
  148. 77 "completed" if status else "failed"))
  149. 78 # Current path may be implicitly changed by periodic. Restore old value
  150. Variables:
  151. self = <noc.main.scheduler.Scheduler object at 0x1b3a410>
  152. task = <Schedule: cm.dns_pull:Any>
  153. cwd = '/opt/noc'
  154. t = datetime.datetime(2012, 8, 20, 13, 25, 32, 447504)
  155. ------------------------------------------------------------------------
  156. END OF TRACEBACK
  157. 2012-08-20 13:25:34,301 Periodic task=cm.dns_pull:Any status=failed
Advertisement
Add Comment
Please, Sign In to add comment