Univention Bugzilla – Bug 43974
dcpromo of Windows 2008R2 EC2 VMs doesn't work
Last modified: 2023-03-25 06:55:08 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/
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
r78172: * 01_base/27check_logfiles_univention: Ignore ucs-windows-tools.log (Bug #43974)
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
It works again. Thanks!