Bug 46962 - Einrichten der Active-Directory-Verbindung: UnboundLocalError: local variable 'cmd' referenced before assignment
Einrichten der Active-Directory-Verbindung: UnboundLocalError: local variable...
Status: CLOSED DUPLICATE of bug 45967
Product: UCS
Classification: Unclassified
Component: System setup
UCS 4.3
Other Linux
: P5 normal (vote)
: UCS 4.3-1-errata
Assigned To: Fathan Vidjaja
Felix Botner
:
Depends on: 45967
Blocks:
  Show dependency treegraph
 
Reported: 2018-05-04 18:57 CEST by Johannes Keiser
Modified: 2018-09-18 07:45 CEST (History)
5 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 6: Setup Problem: Issue for the setup process
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 3: A User would likely not purchase the product
User Pain: 0.103
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2018061321000741, 2018041121000355
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Keiser univentionstaff 2018-05-04 18:57:42 CEST
+++ This bug was initially created as a clone of Bug #45967 +++

Reported again with higher version.

Version: 4.3-0 errata11 (Neustadt)

Remark: Fresh install, AD member

Configuring Active Directory connection: Traceback (most recent call last):
Configuring Active Directory connection: File "%PY2.7%/univention/management/console/modules/setup/setup_script.py", line 310, in run
Configuring Active Directory connection: success = self.inner_run()
Configuring Active Directory connection: File "/usr/lib/univention-system-setup/scripts/90_postjoin/10admember", line 122, in inner_run
Configuring Active Directory connection: admember.add_domaincontroller_srv_record_in_ad(ad_server_ip, username, password)
Configuring Active Directory connection: File "%PY2.7%/univention/lib/admember.py", line 1357, in add_domaincontroller_srv_record_in_ad
Configuring Active Directory connection: ud.debug(ud.MODULE, ud.ERROR, "%s failed with %d (%s)" % (cmd, p1.returncode, stderr))
Configuring Active Directory connection: UnboundLocalError: local variable 'cmd' referenced before assignment
Comment 1 Erik Damrose univentionstaff 2018-05-07 09:38:58 CEST
The bug was fixed with #45967 with UCS 4.3-0e3. It can still occur until new UCS DVDs and appliances are made available.
Comment 2 Johannes Keiser univentionstaff 2018-07-16 18:12:44 CEST
Reported again:
Version: 4.3-1 errata112 (Neustadt)

Traceback(d41d8cd98f00b204e9800998ecf8427e):
Einrichten der Active-Directory-Verbindung: Traceback (most recent call last):
Einrichten der Active-Directory-Verbindung: File "%PY2.7%/univention/management/console/modules/setup/setup_script.py", line 310, in run
Einrichten der Active-Directory-Verbindung: success = self.inner_run()
Einrichten der Active-Directory-Verbindung: File "/usr/lib/univention-system-setup/scripts/90_postjoin/10admember", line 122, in inner_run
Einrichten der Active-Directory-Verbindung: admember.add_domaincontroller_srv_record_in_ad(ad_server_ip, username, password)
Einrichten der Active-Directory-Verbindung: File "%PY2.7%/univention/lib/admember.py", line 1357, in add_domaincontroller_srv_record_in_ad
Einrichten der Active-Directory-Verbindung: ud.debug(ud.MODULE, ud.ERROR, "%s failed with %d (%s)" % (cmd, p1.returncode, stderr))
Einrichten der Active-Directory-Verbindung: UnboundLocalError: local variable 'cmd' referenced before assignment

Role: domaincontroller_master


-----------
Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/modules/setup/setup_script.py", line 310, in run
    success = self.inner_run()
  File "/usr/lib/univention-system-setup/scripts/90_postjoin/10admember", line 122, in inner_run
    admember.add_domaincontroller_srv_record_in_ad(ad_server_ip, username, password)
  File "%PY2.7%/univention/lib/admember.py", line 1357, in add_domaincontroller_srv_record_in_ad
    ud.debug(ud.MODULE, ud.ERROR, "%s failed with %d (%s)" % (cmd, p1.returncode, stderr))
UnboundLocalError: local variable 'cmd' referenced before assignment
-----------
Comment 3 Felix Botner univentionstaff 2018-07-17 15:31:58 CEST

*** This bug has been marked as a duplicate of bug 45967 ***
Comment 4 Stefan Gohmann univentionstaff 2018-09-18 07:45:08 CEST
(In reply to Felix Botner from comment #3)
> 
> *** This bug has been marked as a duplicate of bug 45967 ***

OK