Bug 45437 - samba_dnsupdate: UnboundLocalError: local variable 'estr' referenced before assignment
samba_dnsupdate: UnboundLocalError: local variable 'estr' referenced before a...
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 4.2
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-09-22 13:54 CEST by Nico Stöckigt
Modified: 2020-07-03 20:51 CEST (History)
2 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?: Yes
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017061421000161, 2017102621000684
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Stöckigt univentionstaff 2017-09-22 13:54:33 CEST
Failed 'samba-tool dns' based update: A DomainDnsZones.ayeq-benu.com 10.0.0.219 : local variable 'estr' referenced before assignment
Traceback (most recent call last):
  File "/usr/sbin/samba_dnsupdate", line 881, in <module>
    call_samba_tool(d, zone=d.zone)
  File "/usr/sbin/samba_dnsupdate", line 600, in call_samba_tool
    print("Failed 'samba-tool dns' based update: %s : %s" % (str(d), estr))
UnboundLocalError: local variable 'estr' referenced before assignment

=====

---8<---
590     try:
591         cmd = cmd_dns()
592         if opts.verbose:
593             print "Calling samba-tool dns %s -k no -P %s" % (op, args)
594         ret = cmd._run("dns", op, "-k", "no", "-P", *args)
595         if ret == -1:
596             if opts.fail_immediately:
597                 sys.exit(1)
598             error_count = error_count + 1
599             if opts.verbose:
600                 print("Failed 'samba-tool dns' based update: %s : %s" % (str(d), estr))
601     except Exception, estr:
602         if opts.fail_immediately:
603             sys.exit(1)
604         error_count = error_count + 1
605         if opts.verbose:
606             print("Failed 'samba-tool dns' based update: %s : %s" % (str(d), estr))
607         raise
--->8---
Comment 1 Ingo Steuwer univentionstaff 2020-07-03 20:51:21 CEST
This issue has been filed against UCS 4.2.

UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.