Bug 43277 - adtakeover/sysvol_info: ValueError: need more than 1 value to unpack
adtakeover/sysvol_info: ValueError: need more than 1 value to unpack
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: AD Takeover
UCS 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Samba maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-02 18:08 CET by Florian Best
Modified: 2020-08-21 12:42 CEST (History)
2 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?: 5: Blocking further progress on the daily work
User Pain: 0.171
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2016123021000101, 2017040621000269, 2017031421000577, 2019111021000163, 2020032521000844
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 Florian Best univentionstaff 2017-01-02 18:08:22 CET
Version: 4.1-3 errata268 (Vahr)

Remark: an Active Directory Takeover of a Win 2003 domain.  Unable ot proceed.

Traceback(af6593e353fdd3d087d996d906e64127):
Execution of command 'adtakeover/sysvol_info' has failed:

Traceback (most recent call last):
  File "%PY2.7%/univention/management/console/base.py", line 283, in execute
    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 462, in _response
    return list(function(self, iterator, *nones))
  File "%PY2.7%/univention/management/console/modules/decorators.py", line 284, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/adtakeover/__init__.py", line 111, in sysvol_info
    return takeover.sysvol_info()
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 496, in sysvol_info
    'ad_hostname' : get_ad_hostname(),
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 489, in get_ad_hostname
    return get_ip_and_hostname_of_ad()[1]
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 479, in get_ip_and_hostname_of_ad
    ad_server_fqdn, ad_server_name = ucr["hosts/static/%s" % ad_server_ip].split()
ValueError: need more than 1 value to unpack
Comment 1 Florian Best univentionstaff 2017-04-18 12:39:37 CEST
Version: 4.2-0 errata0 (Lesum)

Remark: Unable to takeover
Comment 2 Florian Best univentionstaff 2017-04-21 11:40:44 CEST
Version: 4.1-4 errata406 (Vahr)

Einrichten der Active-Directory-Verbindung: need more than 1 value to unpack
Comment 3 Ingo Steuwer univentionstaff 2020-07-03 20:52:46 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.
Comment 4 Christian Castens univentionstaff 2020-08-12 09:33:08 CEST
reported again:

Version: 4.4-2 errata330 (Blumenthal)

Remark: can't takeover


Traceback(af6593e353fdd3d087d996d906e64127):
Internal server error during "adtakeover/sysvol_info".
Request: adtakeover/sysvol_info

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 358, in __error_handling
    six.reraise(etype, exc, etraceback)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/base.py", line 261, in execute
    function.__func__(self, request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 321, in _response
    result = _multi_response(self, request)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 181, in _response
    return function(self, request)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 443, in _response
    return list(function(self, iterator, *nones))
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/decorators.py", line 289, in _fake_func
    yield function(self, *args)
  File "%PY2.7%/univention/management/console/modules/adtakeover/__init__.py", line 114, in sysvol_info
    return takeover.sysvol_info()
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 524, in sysvol_info
    'ad_hostname': get_ad_hostname(),
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 516, in get_ad_hostname
    return get_ip_and_hostname_of_ad()[1]
  File "%PY2.7%/univention/management/console/modules/adtakeover/takeover.py", line 505, in get_ip_and_hostname_of_ad
    ad_server_fqdn, ad_server_name = ucr["hosts/static/%s" % ad_server_ip].split()
ValueError: need more than 1 value to unpack

Role: domaincontroller_master
Comment 5 Christian Castens univentionstaff 2020-08-21 12:42:58 CEST
Version: 4.4-3 errata427 (Blumenthal)
reported again:
Remark: AD Takeover geht nicht

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/adtakeover/__init__.py", line 61, in _background
    result = func(self, request)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/adtakeover/__init__.py", line 122, in take_over_domain
    takeover.take_over_domain(self.progress)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/adtakeover/takeover.py", line 343, in take_over_domain
    takeover_final = AD_Takeover_Finalize(ucr)
  File "/usr/lib/python2.7/dist-packages/univention/management/console/modules/adtakeover/takeover.py", line 1495, in __init__
    self.ad_server_fqdn, self.ad_server_name = self.ucr["hosts/static/%s" % self.ad_server_ip].split(None, 1)
ValueError: need more than 1 value to unpack

Role: domaincontroller_master