Bug 38229 - 00_checks 05_check_join_status test does not detect failed inst script
00_checks 05_check_join_status test does not detect failed inst script
Status: CLOSED DUPLICATE of bug 30836
Product: UCS Test
Classification: Unclassified
Component: UCS@school
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-10 12:39 CEST by Dmitry Galkin
Modified: 2023-03-25 06:44 CET (History)
2 users (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 Dmitry Galkin univentionstaff 2015-04-10 12:39:31 CEST
While researching on the Bug #38228 I've noticed that the 00_checks/05_check_join_status tests does not 'see' the failed .inst script:

For example - test reports no errors:

*** BEGIN *** ['/bin/bash', '05_check_join_status'] ***
*** 00_checks/05_check_join_status *** Check join status ***
*** START TIME: 2015-03-20 11:47:43 ***
Joined successfully
*** END TIME: 2015-03-20 11:47:45 ***
*** TEST DURATION (H:MM:SS.ms): 0:00:01.448098 ***
*** END *** 100 ***

as seen: http://jenkins.knut.univention.de:8080/view/UCSschool/job/UCSschool%204.0/job/UCSschool%204.0%20Multiserver/30/SambaVersion=s4/artifact/ucs-test.log


Meanwhile in logs:

__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
**************************************************************************

can be found at: 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

(happens on DC where the tests are run - 'slave2032.autotest203.local', so the test should detect that).


As the test itself is trivial, the problem might actually be in univention-join/check_join_status
Comment 1 Arvid Requate univentionstaff 2015-04-13 12:57:39 CEST
> While researching on the Bug #38228 I've noticed that the 
> 00_checks/05_check_join_status tests does not 'see' the failed .inst script:

No, check_join_status is ok, the log output quited above shows that the failure 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 ***
Comment 2 Stefan Gohmann univentionstaff 2016-10-12 07:49:13 CEST
For this bug is no separate QA needed.