Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Command '['/usr/local/bin/hg', 'add', u'example.com/100.168.192.in-addr.arpa']' returned non-zero exit status 255
- START OF TRACEBACK
- ------------------------------------------------------------------------
- File: /usr/local/lib/python2.7/subprocess.py (Line: 511)
- Function: check_call
- 504 check_call(["ls", "-l"])
- 505 """
- 506 retcode = call(*popenargs, **kwargs)
- 507 if retcode:
- 508 cmd = kwargs.get("args")
- 509 if cmd is None:
- 510 cmd = popenargs[0]
- 511 ==> raise CalledProcessError(retcode, cmd)
- 512 return 0
- 513
- 514
- 515 def check_output(*popenargs, **kwargs):
- 516 r"""Run command with arguments and return its output as a byte string.
- 517
- Variables:
- cmd = ['/usr/local/bin/hg', 'add', u'example.com/100.168.192.in-addr.arpa']
- retcode = 255
- popenargs = (['/usr/local/bin/hg', 'add', u'example.com/100.168.192.in-addr.arpa'],)
- kwargs = {'cwd': '/var/repo/dns'}
- ------------------------------------------------------------------------
- File: /opt/noc/cm/vcs/__init__.py (Line: 81)
- Function: cmd
- 74 self.cmd(["commit",self.option_commit_message,message,path])
- 75 #
- 76 # Execute VCS command.
- 77 # cmd is a list of arguments
- 78 def cmd(self,cmd,check=True):
- 79 if check:
- 80 self.check_repository()
- 81 ==> subprocess.check_call([config.get("cm","vcs_path")]+cmd,cwd=self.repo)
- 82 # Returns an output of cmd
- 83 def cmd_out(self,cmd,check=True):
- 84 if check:
- 85 self.check_repository()
- 86 p=subprocess.Popen([config.get("cm","vcs_path")]+cmd,stdout=subprocess.PIPE,cwd=self.repo)
- 87 d=p.stdout.read()
- Variables:
- self = <noc.cm.vcs.hg.VCS object at 0x808bbf850>
- cmd = ['add', u'example.com/100.168.192.in-addr.arpa']
- check = True
- ------------------------------------------------------------------------
- File: /opt/noc/cm/vcs/__init__.py (Line: 60)
- Function: add
- 53 self.repo=repo
- 54 # Check wrether repository exists and create when necessary
- 55 def check_repository(self):
- 56 if not os.path.exists(self.repo):
- 57 os.makedirs(self.repo)
- 58 # Add file to repository
- 59 def add(self,path):
- 60 ==> self.cmd(["add",path])
- 61 # Remove file from repository
- 62 def rm(self,path):
- 63 self.cmd(["remove",path])
- 64 self.commit(path,"rm")
- 65 # Move file to a new location
- 66 # Dumb emulation
- Variables:
- path = u'example.com/100.168.192.in-addr.arpa'
- self = <noc.cm.vcs.hg.VCS object at 0x808bbf850>
- ------------------------------------------------------------------------
- File: /opt/noc/cm/models.py (Line: 136)
- Function: write
- 129 if not in_dir(path, self.repo):
- 130 raise Exception("Attempting to write outside of repo")
- 131 is_new = not os.path.exists(path)
- 132 now = datetime.datetime.now()
- 133 if rewrite_when_differ(self.path, data):
- 134 vcs = self.vcs
- 135 if is_new:
- 136 ==> vcs.add(self.repo_path)
- 137 vcs.commit(self.repo_path)
- 138 self.last_modified = now
- 139 self.on_object_changed()
- 140 self.last_pull = now
- 141 self.save()
- 142
- Variables:
- self = <DNS: dns/example.com/100.168.192.in-addr.arpa>
- is_new = True
- vcs = <noc.cm.vcs.hg.VCS object at 0x808bbf850>
- path = u'/var/repo/dns/example.com/100.168.192.in-addr.arpa'
- now = datetime.datetime(2012, 8, 10, 10, 4, 31, 771917)
- data = u';;\n;; "..."
- ------------------------------------------------------------------------
- File: /opt/noc/cm/models.py (Line: 550)
- Function: global_pull
- 543 for z in changed:
- 544 logging.debug("DNS.global_pull: Zone %s changed" % z.name)
- 545 z.serial = z.next_serial
- 546 z.save()
- 547 for ns in z.profile.masters.all():
- 548 path = os.path.join(ns.name, z.name)
- 549 o = DNS.objects.get(repo_path=path)
- 550 ==> o.write(z.zonedata(ns))
- 551 for ns in DNSServer.objects.all():
- 552 logging.debug(
- 553 "DNSHandler.global_pull: Includes for %s rebuilt" % ns.name)
- 554 g = ns.generator_class()
- 555 path = os.path.join(ns.name, "autozones.conf")
- 556 try:
- Variables:
- z = <DNSZone: 100.168.192.in-addr.arpa>
- DNSServer = <class 'noc.dns.models.DNSServer'>
- DNSZone = <class 'noc.dns.models.DNSZone'>
- changed = {<DNSZone: ... None}
- o = <DNS: dns/example.com/100.168.192.in-addr.arpa>
- objects = {}
- path = u'example.com/100.168.192.in-addr.arpa'
- ns = <DNSServer: example.com>
- 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 0x806eea410>
- DNS = <class 'noc.cm.models.DNS'>
- ------------------------------------------------------------------------
- File: /opt/noc/main/scheduler.py (Line: 72)
- Function: task_wrapper
- 65 t = datetime.datetime.now()
- 66 cwd = os.getcwd()
- 67 try:
- 68 if task.periodic_name.startswith("pyrule:"):
- 69 status = PyRule.call(task.periodic_name[7:],
- 70 timeout=task.timeout)
- 71 else:
- 72 ==> status = task.periodic(task.timeout).execute()
- 73 except:
- 74 error_report()
- 75 status = False
- 76 logging.info(u"Periodic task=%s status=%s" % (unicode(task),
- 77 "completed" if status else "failed"))
- 78 # Current path may be implicitly changed by periodic. Restore old value
- Variables:
- self = <noc.main.scheduler.Scheduler object at 0x8011b9510>
- task = <Schedule: cm.dns_pull:Any>
- cwd = '/opt/noc'
- t = datetime.datetime(2012, 8, 10, 10, 4, 16, 608012)
- ------------------------------------------------------------------------
- END OF TRACEBACK
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement