Univention Bugzilla – Bug 45967
Einrichten der Active-Directory-Verbindung: UnboundLocalError: local variable 'cmd' referenced before assignment
Last modified: 2018-07-17 15:31:58 CEST
Version: 4.2-3 errata256 (Lesum) 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
Caused by Bug #43745. Patch available in branch fbest/45967-fix-typo-admember.
Reported again: Version: 4.2-3 errata256 (Lesum)
Reported again: Version: 4.2-3 errata265 (Lesum)
Reported again: Version: 4.2-3 errata272 (Lesum)
Reported again: Version: 4.2-3 errata305 (Lesum)
Reported again: Version: 4.3-0 errata0 (Neustadt)
Reported again: Version: 4.2-3 errata305 (Lesum) Remark: Happens during setup. I have tested many times to execute AD takeover, result is successfull but later I cannot dcpromo a windows server or join windows 7 to domain, shows error in srv records.
https://github.com/univention/univention-corporate-server/blob/4.3-0/base/univention-lib/python/admember.py#L1357 The traceback masks the real issue. The nsupdate call to remove the existing SRV record from the AD failed.
ec1e0140 Assign variable before referencing it 2bf83d31 yaml univention-lib 7.0.0-3A~4.3.0.201803161600
OK - univention-lib (add_domaincontroller_srv_record_in_ad) FAIL - version missing in yaml
9c46d4e0 fix yaml
OK - YAML
<http://errata.software-univention.de/ucs/4.3/3.html>
Reported again: Version: 4.2-4 errata418 (Lesum) Same as Comment #0
Please add new reports to Bug #46962, this bug is closed.
*** Bug 46962 has been marked as a duplicate of this bug. ***