Bug 43974 - dcpromo of Windows 2008R2 EC2 VMs doesn't work
dcpromo of Windows 2008R2 EC2 VMs doesn't work
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: Framework
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Felix Botner
Stefan Gohmann
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-19 12:00 CET by Stefan Gohmann
Modified: 2023-03-25 06:55 CET (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
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 Stefan Gohmann univentionstaff 2017-03-19 12:00:54 CET
dcpromo of Windows 2008 R2 EC2 VMs doesn't work in AD member and in AD Connector setups:

Execute: . utils.sh; set_administrator_password_for_ucs_test "Univention@99"
Setting tests/domainadmin/pwd
Execute: . utils.sh; promote_ad_w2k8r2 10.210.197.187 autotest221.local
Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 441, in promote_ad
    self.wait_until_client_is_gone(timeout=120)
  File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 260, in wait_until_client_is_gone
    raise WinExeFailed("waiting until client (%s) is gone failed with timeout %s" % (self.client, timeout))
univention.winexe.WinExeFailed: waiting until client (10.210.197.187) is gone failed with timeout 120
*** Failed 1: . utils.sh; promote_ad_w2k8r2 10.210.197.187 autotest221.local

http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/ADMemberMultiEnv/Mode=module,Version=w2k8r2-english/

http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/ADConnectorMultiEnv/Version=w2k8r2-english/
Comment 1 Stefan Gohmann univentionstaff 2017-03-21 06:01:57 CET
With the latest change:

Execute: . utils.sh; promote_ad_w2k12 10.210.103.87 autotest228.local
running winexe --interactive=0 -U testadmin%Univention@99 //10.210.103.87 cmd /C net user administrator Univention@99
Der Befehl wurde erfolgreich ausgefhrt.


running smbclient //10.210.103.87/C$ -U testadmin%Univention@99 -c prompt; lcd /usr/share/ucs-windows-tools/windows-scripts/; mput *; quit
Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 444, in promote_ad
    self.winexec("firewall-turn-off", domain_mode=False)
  File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 235, in winexec
    self.__copy_scripts()
  File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 171, in __copy_scripts
    ret, stdout, stderr = self.__run_command(cmd, dont_fail=True)
  File "/usr/lib/pymodules/python2.7/univention/winexe.py", line 149, in __run_command
    p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=False)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
*** Failed 1: . utils.sh; promote_ad_w2k12 10.210.103.87 autotest228.local
Comment 2 Stefan Gohmann univentionstaff 2017-03-23 07:45:18 CET
r78172:
* 01_base/27check_logfiles_univention: Ignore ucs-windows-tools.log
  (Bug #43974)
Comment 3 Felix Botner univentionstaff 2017-03-23 10:35:20 CET
The old promo ps script installed some rsat tool before the actual promotion. Seems that the latest rsat tools require a restart after installation (at least that is what i understood from the promo error message).

So i separated the installation of the rsat tools and the dc promo. First the tools are installed, then a reboot and then dcpromo.

Added logfile ucs-windows-tools.log
Comment 4 Stefan Gohmann univentionstaff 2017-03-23 15:08:01 CET
It works again. Thanks!