Bug 37485 - umc-webserver hangs
umc-webserver hangs
Status: CLOSED FIXED
Product: UCS Test
Classification: Unclassified
Component: UMC
unspecified
Other Linux
: P5 normal (vote)
: ---
Assigned To: Alexander Kramer
Alexander Kläser
:
Depends on: 37367
Blocks:
  Show dependency treegraph
 
Reported: 2015-01-08 13:39 CET by Alexander Kläser
Modified: 2023-03-25 06:45 CET (History)
6 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 Alexander Kläser univentionstaff 2015-01-08 13:39:19 CET
See the attached test script at Bug 37367, we could create a test case for this based on the script.

+++ This bug was initially created as a clone of Bug #37367 +++

The UMC-Webserver hangs when module processes does not answer to many requests.

Attached is a script which can provoke this. Just execute the script, wait 5 minutes (5 = the values provided in umc/http/session/timeout).

After this the server does not respond to any request anymore.
Comment 1 Alexander Kramer univentionstaff 2015-03-12 09:14:58 CET
debian/changelog: * Bug #37485: Added two tests for the umc-webserver
Revision 58909

Successful build
Package: ucs-test
Version: 5.0.133-2.987.201503120908
Branch: ucs_4.0-0
Scope: errata4.0-1
Comment 2 Stefan Gohmann univentionstaff 2015-03-20 06:30:43 CET
You've added a join script. This breaks on slaves and member servers the test case 00_checks/05_check_join_status because the join script is not executed on these roles automatically. 

The test cases do have the permissions to write changes to the LDAP directory. I suggest that you move the things the join script does into the test cases.

I've removed ucs-test-umc-module from the dependency list: r59271
Comment 3 Florian Best univentionstaff 2015-03-20 11:40:42 CET
I got this error notification when opening UMC:
Modul "js_$20151803080604$/umc/modules/ucstest.js" konnte nicht geladen werden.
Comment 4 Alexander Kramer univentionstaff 2015-03-30 13:33:18 CEST
fixed:
Modul "js_$20151803080604$/umc/modules/ucstest.js" konnte nicht geladen werden.
--> had a typo in the filename

fixed:
as requested a removed the join script and moved the code inside the ucs-test-module. I also added the dependency again


r 59496
debian / changelog: 5.0.140-7
* Bug #37485: Moved code from join script to ucs test module

Successful build
Package: ucs-test
Version: 5.0.140-7.1012.201503301327
Branch: ucs_4.0-0
Scope: errata4.0-1
Comment 5 Alexander Kläser univentionstaff 2015-04-01 16:12:34 CEST
I like the test script, they really work well.

A minor thing, 09_webserver_response_many_requests tells me that it is successful, however, it should fail as this bug has not yet been fixed. I would suggest to use 100 requests instead of 25 :) and to open a bug which will be linked in the test script. The script could then be marked as skip or WIP... not sure what would be the best policy for that.
Comment 6 Alexander Kramer univentionstaff 2015-04-02 13:56:53 CEST
As requested I adapted the script:
- the bug Bug #37487 is now linked in the test
- added meta data: versions and tag
- adapted NUMBER_OF_NOT_RESPONDING_REQUESTS to 100

r59588
debian/changelog
ucs-test (5.0.143-2) 
* Bug #37485: Adapted meta data for 09_webserver_response_many_requests


Successful build
Package: ucs-test
Version: 5.0.143-2.1019.201504021344
Branch: ucs_4.0-0
Scope: errata4.0-1
Comment 7 Alexander Kläser univentionstaff 2015-04-07 13:18:05 CEST
OK, thanks, this looks good now.
Comment 8 Florian Best univentionstaff 2015-07-08 14:29:29 CEST
I fixed a typo in the test script. svn r61891