Bug 47360 - setup/check/credentials: NameError: global name 'check_result' is not defined
setup/check/credentials: NameError: global name 'check_result' is not defined
Status: CLOSED DUPLICATE of bug 44478
Product: UCS
Classification: Unclassified
Component: System setup
UCS 4.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: Johannes Keiser
Felix Botner
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-07-16 16:16 CEST by Johannes Keiser
Modified: 2019-02-21 11:14 CET (History)
1 user (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: 2018080221000374, 2018071721000161, 2018060421000445, 2018053121000575, 2018061521000693
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-07-16 16:16:40 CEST
Version: 4.3-0 errata28 (Neustadt)

Internal server error during "setup/check/credentials (wizard)".
Request: setup/check/credentials (wizard)

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/setup/__init__.py", line 780, in check_credentials
    domain = util.check_credentials_ad(nameserver, address, username, password)
  File "%PY2.7%/univention/management/console/modules/setup/util.py", line 1196, in check_credentials_ad
    ad_domain_info = lookup_adds_dc(address, ucr={'nameserver1': nameserver})
  File "%PY2.7%/univention/lib/admember.py", line 739, in lookup_adds_dc
    check_result.append("CLDAP: %s", ex.args[0])
NameError: global name 'check_result' is not defined

Role: None
Comment 1 Johannes Keiser univentionstaff 2018-07-16 16:17:12 CEST
Fixed with commit d2d0b08 from Bug #41733
Comment 2 Johannes Keiser univentionstaff 2018-07-16 16:58:11 CEST
Version: 4.3-0 errata89 (Neustadt)

Internal server error during "adconnector/check_domain".
Request: adconnector/check_domain

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 253, in execute
    function.__func__(self, request, *args, **kwargs)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 318, in _response
    result = _multi_response(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 192, in _response
    return function(self, request)
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 440, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 286, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/adconnector/__init__.py", line 390, in check_domain
    ad_domain_info = admember.lookup_adds_dc(ad_server_address)
  File "%PY2.7%/univention/lib/admember.py", line 739, in lookup_adds_dc
    check_result.append("CLDAP: %s", ex.args[0])
NameError: global name 'check_result' is not defined

Role: domaincontroller_master
Comment 3 Johannes Keiser univentionstaff 2018-07-17 13:06:14 CEST
Reported again:
Version: 4.3-0 errata28 (Neustadt)

Remark: Try to connect to win srv 2008 DC

Traceback(d41d8cd98f00b204e9800998ecf8427e):
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 123, in inner_run
Configuring Active Directory connection: admember.add_host_record_in_ad(uid=username, bindpw=password, sso=True)
Configuring Active Directory connection: File "%PY2.7%/univention/lib/admember.py", line 1247, in add_host_record_in_ad
Configuring Active Directory connection: ad_domain_info = lookup_adds_dc()
Configuring Active Directory connection: File "%PY2.7%/univention/lib/admember.py", line 739, in lookup_adds_dc
Configuring Active Directory connection: check_result.append("CLDAP: %s", ex.args[0])
Configuring Active Directory connection: NameError: global name 'check_result' is not defined

Role: domaincontroller_master
Comment 4 Johannes Keiser univentionstaff 2018-08-03 19:10:21 CEST
This was reported again with a higher version that the fix but that may be due to the fact that the errata version for the feedback is determined when the feedback is sent and not when the error ocurred.

Version: 4.3-1 errata157 (Neustadt)

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 123, in inner_run
Configuring Active Directory connection: admember.add_host_record_in_ad(uid=username, bindpw=password, sso=True)
Configuring Active Directory connection: File "%PY2.7%/univention/lib/admember.py", line 1247, in add_host_record_in_ad
Configuring Active Directory connection: ad_domain_info = lookup_adds_dc()
Configuring Active Directory connection: File "%PY2.7%/univention/lib/admember.py", line 739, in lookup_adds_dc
Configuring Active Directory connection: check_result.append("CLDAP: %s", ex.args[0])
Configuring Active Directory connection: NameError: global name 'check_result' is not defined

Role: domaincontroller_master
Comment 5 Felix Botner univentionstaff 2018-08-08 13:57:00 CEST
fixed with 87528b94f00155a827d3235d9fb6d43069a6a05d (Bug #44478)
Comment 6 Florian Best univentionstaff 2019-02-21 11:14:23 CET

*** This bug has been marked as a duplicate of bug 44478 ***