Bug 38228 - 98univention-samba4-dns.inst sometimes fails in Multiserver school setup
98univention-samba4-dns.inst sometimes fails in Multiserver school setup
Status: RESOLVED DUPLICATE of bug 30836
Product: UCS@school
Classification: Unclassified
Component: General
UCS@school 4.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: Bugzilla Mailingliste
:
Depends on:
Blocks: 34214
  Show dependency treegraph
 
Reported: 2015-04-10 12:16 CEST by Dmitry Galkin
Modified: 2015-04-13 12:52 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
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 Dmitry Galkin univentionstaff 2015-04-10 12:16:03 CEST
The 98univention-samba4-dns.inst *sometimes* fails on some DCs in Multiserver School setups:

Configure 98univention-samba4-dns.inst [60Gfailed

**************************************************************************
* Join failed!                                                           *
* Contact your system administrator                                      *
**************************************************************************
__JOINERR__:FAILED: 98univention-samba4-dns.inst
* Message:  FAILED: 98univention-samba4-dns.inst
**************************************************************************


For example:

http://jenkins.knut.univention.de:8080/view/UCSschool/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/30/SambaVersion=s4/artifact/autotest-203-ucsschool-multiserver-s4.log


As this happens on a DC where tests are run (slave2032) the samba-tool gives the following output:

Executing cmd: ('samba-tool', 'gpo', 'show', '{55FEE9FD-36B3-456D-8F75-A7E389848184}')
### FAIL ###
The 'samba-tool' produced the following output to STDERR: 'ERROR(runtime): uncaught exception - ('Could not find a DC for domain', RuntimeError('NT_STATUS_OBJECT_NAME_NOT_FOUND',))
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175, in _run
    return self.run(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/gpo.py", line 464, in run
    self.url = dc_url(self.lp, self.creds, H)
  File "/usr/lib/python2.7/dist-packages/samba/netcmd/gpo.py", line 117, in dc_url
    raise RuntimeError("Could not find a DC for domain", e)'
###      ###




More examples:

http://jenkins.knut.univention.de:8080/view/UCSschool/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/31/SambaVersion=s4/artifact/autotest-203-ucsschool-multiserver-s4.log

http://jenkins.knut.univention.de:8080/view/UCSschool/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/30/SambaVersion=s4-all-components/artifact/autotest-203-ucsschool-multiserver-s4.log

http://jenkins.knut.univention.de:8080/view/UCSschool/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/31/SambaVersion=s4-all-components/artifact/autotest-203-ucsschool-multiserver-s4.log



The output of the .inst script is not available as the logs were overwritten with the next Jenkins job run.

And the join worked during the last job execution and before that: http://jenkins.knut.univention.de:8080/view/UCSschool/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/29/SambaVersion=s4/artifact/autotest-203-ucsschool-multiserver-s4.log
Comment 1 Arvid Requate univentionstaff 2015-04-13 12:52:58 CEST
> The 98univention-samba4-dns.inst *sometimes* fails on some DCs in Multiserver School setups:

Yes, but this is only during the "run_setup_join_on_non_master" on command3.
Later in command5 all joinscripts are run successfully by schoolinstaller.py, so this initial failure is not relevant.

In the first log above, the failure occurs on the second slave during command3.
At that time UCS@school packages are not even installed yet.
Instead I guess that this is Bug #30836.


The jenkins log output is really hard to read because each of the command blocks is run on master2030, slave2031 and slave2032 bbefore the next command block is run. Below is my dissecion of the first log above, starting with command3.


===============================================================================

command3:  [master2030]
 univention-license-import /root/autotest203.ldif
======================================================================
Execute: univention-license-import /root/autotest203.ldif
Backing up old license to /var/univention-backup/univention_license_replaced_at_2015_03_20_10_18_37
adding new entry "cn=admin,cn=license,cn=univention,dc=autotest203,dc=local"

Replaced license.
======================================================================

command3:  [slave2031]
 . utils.sh; run_setup_join_on_non_master
 . utils.sh && do_reboot
 LOCAL sleep 120
 . utils.sh && wait_for_reboot
======================================================================
Execute: . utils.sh; run_setup_join_on_non_master
[...]
Execute: . utils.sh && do_reboot
Execute local command:  sleep 120
Execute: . utils.sh && wait_for_reboot
3292 3291 3290 3289 3288 3253
======================================================================

command3:  [slave2032]
 . utils.sh; run_setup_join_on_non_master
 . utils.sh && do_reboot
 LOCAL sleep 120
 . utils.sh && wait_for_reboot
======================================================================
Execute: . utils.sh; run_setup_join_on_non_master
[...]
__MSG__:Configure 98univention-samba4-dns
__STEP__:37
Configure 98univention-samba4-dns.inst [60Gfailed


**************************************************************************
* Join failed!                                                           *
* Contact your system administrator                                      *
**************************************************************************
__JOINERR__:FAILED: 98univention-samba4-dns.inst
* Message:  FAILED: 98univention-samba4-dns.inst
**************************************************************************
__STEP__:38
Running postjoin scripts
=== 90_postjoin/10admember (2015-03-20 10:51:59) ===
[...]
Execute: . utils.sh && do_reboot
Execute local command:  sleep 120
Execute: . utils.sh && wait_for_reboot
3308 3307 3306 3305 3304 3269
======================================================================

command4:  [master2030]
 . utils.sh; switch_to_test_app_center
 . utils.sh; install_apps ucsschool
 . utils.sh; run_join_scripts
======================================================================
Execute: . utils.sh; switch_to_test_app_center  [master2030]
Setting repository/app_center/server
Execute: . utils.sh; install_apps ucsschool  [master2030]
[...]
20.03.15 10:54:35.599 MODULE      ( PROCESS ) : Running join scripts  [master2030]
univention-run-join-scripts: runs all join scripts existing on local computer.
[...]
Running 98univention-samba4-dns.inst[60Gskipped (already executed)
======================================================================


command4:  [slave2031]
 . utils.sh; switch_to_test_app_center
 . utils.sh; install_apps ucsschool
======================================================================
Execute: . utils.sh; switch_to_test_app_center  [slave2031]
Setting repository/app_center/server
Execute: . utils.sh; install_apps ucsschool  [slave2031]
[...]
20.03.15 10:55:04.140 MODULE      ( PROCESS ) : Running join scripts  [slave2031]
univention-run-join-scripts: runs all join scripts existing on local computer.
[...]
**************************************************************************
* Running join scripts failed!                                           *
**************************************************************************
* Message:  binddn for user  not found
**************************************************************************
[...]
Fri Mar 20 10:33:47 EDT 2015: finish /usr/share/univention-join/univention-join
======================================================================

command4:  [slave2032]
 . utils.sh; switch_to_test_app_center
 . utils.sh; install_apps ucsschool
======================================================================
Execute: . utils.sh; switch_to_test_app_center
Setting repository/app_center/server
Execute: . utils.sh; install_apps ucsschool
[...]
20.03.15 10:55:25.017 MODULE      ( PROCESS ) : Running join scripts
univention-run-join-scripts: runs all join scripts existing on local computer.
[...]
**************************************************************************
* Running join scripts failed!                                           *
**************************************************************************
* Message:  binddn for user  not found
**************************************************************************
[...]
Fri Mar 20 10:51:58 EDT 2015: finish /usr/share/univention-join/univention-join
======================================================================

command5:  [master2030]
 /root/schoolinstaller.py -uAdministrator -p univention -M && touch UCSSCHOOL_READY4TESTS
======================================================================
Execute: /root/schoolinstaller.py -uAdministrator -p univention -M && touch UCSSCHOOL_READY4TESTS
=== INSTALLATION STARTED ===
======================================================================

command5:  [slave2031]
 echo -n "univention" >/tmp/univention
 /root/schoolinstaller.py -uAdministrator -p univention -o School1 -M -e -s 4 && touch UCSSCHOOL_READY4TESTS
======================================================================
Execute: /root/schoolinstaller.py -uAdministrator -p univention -o School1 -M -e -s 4 && touch UCSSCHOOL_READY4TESTS
=== INSTALLATION STARTED ===
[...]
Domänenbeitritt - Ausführung des Join-Skriptes 96univention-samba4
Domänenbeitritt - Ausführung des Join-Skriptes 96univention-samba4slavepdc
[...]
Domänenbeitritt - Ausführung des Join-Skriptes 98univention-samba4-dns
Domänenbeitritt - Ausführung des Join-Skriptes 98univention-samba4slavepdc-dns
[...]
Domänenbeitritt - beendet...
======================================================================

command5:  [slave2032]
 echo -n "univention" >/tmp/univention
 /root/schoolinstaller.py -uAdministrator -p univention -o School2 -M -e -s 4 && touch UCSSCHOOL_READY4TESTS
======================================================================
Execute: echo -n "univention" >/tmp/univention
Execute: /root/schoolinstaller.py -uAdministrator -p univention -o School2 -M -e -s 4 && touch UCSSCHOOL_READY4TESTS
=== INSTALLATION STARTED ===
[...]
Domänenbeitritt - Ausführung des Join-Skriptes 96univention-samba4
Domänenbeitritt - Ausführung des Join-Skriptes 96univention-samba4slavepdc
[...]
Domänenbeitritt - Ausführung des Join-Skriptes 98univention-samba4-dns
Domänenbeitritt - Ausführung des Join-Skriptes 98univention-samba4slavepdc-dns
[...]
Domänenbeitritt - beendet...
======================================================================

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