Univention Bugzilla – Bug 43860
Test case 60_umc/10_error_code_for_requests fails in UCS 4.2
Last modified: 2017-04-04 18:29:58 CEST
Please fix the test or fix the product or in case it is not so important disable the test case. http://jenkins.knut.univention.de:8080/job/UCS-4.2/job/UCS-4.2-0/job/AutotestJoin/75/SambaVersion=s3,Systemrolle=master/testReport/ *** BEGIN *** ['/usr/bin/python', '10_error_code_for_requests'] *** *** 60_umc/10_error_code_for_requests *** Check if requests are answered with an error code after killing ucstest module *** *** START TIME: 2017-03-14 15:59:06 *** Object exists: cn=UMC,cn=univention,dc=autotest090,dc=local Object exists: cn=UMC,cn=policies,dc=autotest090,dc=local Object exists: cn=operations,cn=UMC,cn=univention,dc=autotest090,dc=local Object exists: cn=default-umc-all,cn=UMC,cn=policies,dc=autotest090,dc=local WARNING: cannot append cn=default-umc-all,cn=UMC,cn=policies,dc=autotest090,dc=local to univentionPolicyReference, value exists No modification: cn=Domain Admins,cn=groups,dc=autotest090,dc=local Object exists: cn=default-umc-users,cn=UMC,cn=policies,dc=autotest090,dc=local WARNING: cannot append cn=default-umc-users,cn=UMC,cn=policies,dc=autotest090,dc=local to univentionPolicyReference, value exists No modification: cn=Domain Users,cn=groups,dc=autotest090,dc=local Object created: cn=ucstest-all,cn=operations,cn=UMC,cn=univention,dc=autotest090,dc=local Object modified: cn=default-umc-all,cn=UMC,cn=policies,dc=autotest090,dc=local Setting up the connections and sending requests... *** UMC request: "POST auth" (None) UMC request payload: {'options': {'password': 'univention', 'username': 'Administrator'}} *** UMC response: {u'message': None, u'options': None, u'result': {u'username': u'Administrator'}, u'status': 200} *** *** POST to /univention/command/ucstest/norespond with headers={'X-Requested-With': 'XMLHttpRequest', 'Cookie': 'UMCSessionId=d25f735f-022f-42c3-a48e-078d52b42afa; UMCUsername=Administrator', 'Accept-Language': 'de-DE', 'X-XSRF-Protection': 'd25f735f-022f-42c3-a48e-078d52b42afa', 'Content-Type': 'application/json', 'Accept': 'application/json; q=1, text/html; q=0.5; */*; q=0.1', 'User-Agent': 'UCS/4.2 (univention.lib.umc/0-errata0)'} *** UMC request: "POST auth" (None) UMC request payload: {'options': {'password': 'univention', 'username': 'Administrator'}} *** UMC response: {u'message': None, u'options': None, u'result': {u'username': u'Administrator'}, u'status': 200} *** *** POST to /univention/command/ucstest/norespond with headers={'X-Requested-With': 'XMLHttpRequest', 'Cookie': 'UMCSessionId=b89f896b-b71a-49fa-9e1e-d65b9f0840f8; UMCUsername=Administrator', 'Accept-Language': 'de-DE', 'X-XSRF-Protection': 'b89f896b-b71a-49fa-9e1e-d65b9f0840f8', 'Content-Type': 'application/json', 'Accept': 'application/json; q=1, text/html; q=0.5; */*; q=0.1', 'User-Agent': 'UCS/4.2 (univention.lib.umc/0-errata0)'} *** UMC request: "POST auth" (None) UMC request payload: {'options': {'password': 'univention', 'username': 'Administrator'}} *** UMC response: {u'message': None, u'options': None, u'result': {u'username': u'Administrator'}, u'status': 200} *** *** POST to /univention/command/ucstest/norespond with headers={'X-Requested-With': 'XMLHttpRequest', 'Cookie': 'UMCSessionId=4f6d4940-be87-4c11-8e65-02613d38515d; UMCUsername=Administrator', 'Accept-Language': 'de-DE', 'X-XSRF-Protection': '4f6d4940-be87-4c11-8e65-02613d38515d', 'Content-Type': 'application/json', 'Accept': 'application/json; q=1, text/html; q=0.5; */*; q=0.1', 'User-Agent': 'UCS/4.2 (univention.lib.umc/0-errata0)'} *** UMC request: "POST auth" (None) UMC request payload: {'options': {'password': 'univention', 'username': 'Administrator'}} *** UMC response: {u'message': None, u'options': None, u'result': {u'username': u'Administrator'}, u'status': 200} *** *** POST to /univention/command/ucstest/norespond with headers={'X-Requested-With': 'XMLHttpRequest', 'Cookie': 'UMCSessionId=e6e24377-1515-477b-9c31-bd399f9d7f99; UMCUsername=Administrator', 'Accept-Language': 'de-DE', 'X-XSRF-Protection': 'e6e24377-1515-477b-9c31-bd399f9d7f99', 'Content-Type': 'application/json', 'Accept': 'application/json; q=1, text/html; q=0.5; */*; q=0.1', 'User-Agent': 'UCS/4.2 (univention.lib.umc/0-errata0)'} *** UMC request: "POST auth" (None) UMC request payload: {'options': {'password': 'univention', 'username': 'Administrator'}} *** UMC response: {u'message': None, u'options': None, u'result': {u'username': u'Administrator'}, u'status': 200} *** *** POST to /univention/command/ucstest/norespond with headers={'X-Requested-With': 'XMLHttpRequest', 'Cookie': 'UMCSessionId=b48e52a9-4d40-4978-963f-aa73c50cc302; UMCUsername=Administrator', 'Accept-Language': 'de-DE', 'X-XSRF-Protection': 'b48e52a9-4d40-4978-963f-aa73c50cc302', 'Content-Type': 'application/json', 'Accept': 'application/json; q=1, text/html; q=0.5; */*; q=0.1', 'User-Agent': 'UCS/4.2 (univention.lib.umc/0-errata0)'} *** UMC request: "POST auth" (None) UMC request payload: {'options': {'password': 'univention', 'username': 'Administrator'}} *** UMC response: {u'message': None, u'options': None, u'result': {u'username': u'Administrator'}, u'status': 200} *** *** POST to /univention/command/ucstest/norespond with headers={'X-Requested-With': 'XMLHttpRequest', 'Cookie': 'UMCSessionId=9787dc8c-2f7a-4bab-9546-f60c30044b1c; UMCUsername=Administrator', 'Accept-Language': 'de-DE', 'X-XSRF-Protection': '9787dc8c-2f7a-4bab-9546-f60c30044b1c', 'Content-Type': 'application/json', 'Accept': 'application/json; q=1, text/html; q=0.5; */*; q=0.1', 'User-Agent': 'UCS/4.2 (univention.lib.umc/0-errata0)'} *** UMC request: "POST auth" (None) UMC request payload: {'options': {'password': 'univention', 'username': 'Administrator'}} *** UMC response: {u'message': None, u'options': None, u'result': {u'username': u'Administrator'}, u'status': 200} *** *** POST to /univention/command/ucstest/norespond with headers={'X-Requested-With': 'XMLHttpRequest', 'Cookie': 'UMCSessionId=c52a98c5-4f32-456b-a9bc-2e61059061f2; UMCUsername=Administrator', 'Accept-Language': 'de-DE', 'X-XSRF-Protection': 'c52a98c5-4f32-456b-a9bc-2e61059061f2', 'Content-Type': 'application/json', 'Accept': 'application/json; q=1, text/html; q=0.5; */*; q=0.1', 'User-Agent': 'UCS/4.2 (univention.lib.umc/0-errata0)'} *** UMC request: "POST auth" (None) UMC request payload: {'options': {'password': 'univention', 'username': 'Administrator'}} *** UMC response: {u'message': None, u'options': None, u'result': {u'username': u'Administrator'}, u'status': 200} *** *** POST to /univention/command/ucstest/norespond with headers={'X-Requested-With': 'XMLHttpRequest', 'Cookie': 'UMCSessionId=e6c561cc-b41b-4645-8c1d-c1ce720f8381; UMCUsername=Administrator', 'Accept-Language': 'de-DE', 'X-XSRF-Protection': 'e6c561cc-b41b-4645-8c1d-c1ce720f8381', 'Content-Type': 'application/json', 'Accept': 'application/json; q=1, text/html; q=0.5; */*; q=0.1', 'User-Agent': 'UCS/4.2 (univention.lib.umc/0-errata0)'} Killing module process... Found module process 12614 ['/usr/bin/python2.7', '/usr/sbin/univention-management-console-module', '-m', 'ucstest', '-s', '/var/run/univention-management-console/12477-1489521550398.socket', '-d', '2', '-l', 'de_DE.UTF-8'] and killing it ... Found module process 12617 ['/usr/bin/python2.7', '/usr/sbin/univention-management-console-module', '-m', 'ucstest', '-s', '/var/run/univention-management-console/12477-1489521551556.socket', '-d', '2', '-l', 'de_DE.UTF-8'] and killing it ... Found module process 12623 ['/usr/bin/python2.7', '/usr/sbin/univention-management-console-module', '-m', 'ucstest', '-s', '/var/run/univention-management-console/12477-1489521552666.socket', '-d', '2', '-l', 'de_DE.UTF-8'] and killing it ... Found module process 12631 ['/usr/bin/python2.7', '/usr/sbin/univention-management-console-module', '-m', 'ucstest', '-s', '/var/run/univention-management-console/12477-1489521554269.socket', '-d', '2', '-l', 'de_DE.UTF-8'] and killing it ... Found module process 12635 ['/usr/bin/python2.7', '/usr/sbin/univention-management-console-module', '-m', 'ucstest', '-s', '/var/run/univention-management-console/12477-1489521556549.socket', '-d', '2', '-l', 'de_DE.UTF-8'] and killing it ... Found module process 12640 ['/usr/bin/python2.7', '/usr/sbin/univention-management-console-module', '-m', 'ucstest', '-s', '/var/run/univention-management-console/12477-1489521558895.socket', '-d', '2', '-l', 'de_DE.UTF-8'] and killing it ... Found module process 12645 ['/usr/bin/python2.7', '/usr/sbin/univention-management-console-module', '-m', 'ucstest', '-s', '/var/run/univention-management-console/12477-1489521561634.socket', '-d', '2', '-l', 'de_DE.UTF-8'] and killing it ... Found module process 12649 ['/usr/bin/python2.7', '/usr/sbin/univention-management-console-module', '-m', 'ucstest', '-s', '/var/run/univention-management-console/12477-1489521564176.socket', '-d', '2', '-l', 'de_DE.UTF-8'] and killing it ... Verfying that requests are answered with an error code... *** RESPONSE Status=510; body= '{"status": 510, "message": "", "location": "https://master090.autotest090.local/univention/command"}' *** *** RESPONSE Status=510; body= '{"status": 510, "message": "", "location": "https://master090.autotest090.local/univention/command"}' *** *** RESPONSE Status=510; body= '{"status": 510, "message": "", "location": "https://master090.autotest090.local/univention/command"}' *** *** RESPONSE Status=511; body= '{"status": 511, "message": "Connection to module process failed", "location": "https://master090.autotest090.local/univention/command"}' *** ERROR: Unexpected status of response 511 (expected was 510) *** RESPONSE Status=511; body= '{"status": 511, "message": "Connection to module process failed", "location": "https://master090.autotest090.local/univention/command"}' *** ERROR: Unexpected status of response 511 (expected was 510) *** RESPONSE Status=511; body= '{"status": 511, "message": "Connection to module process failed", "location": "https://master090.autotest090.local/univention/command"}' *** ERROR: Unexpected status of response 511 (expected was 510) *** RESPONSE Status=511; body= '{"status": 511, "message": "Connection to module process failed", "location": "https://master090.autotest090.local/univention/command"}' *** ERROR: Unexpected status of response 511 (expected was 510) *** RESPONSE Status=511; body= '{"status": 511, "message": "Connection to module process failed", "location": "https://master090.autotest090.local/univention/command"}' *** ERROR: Unexpected status of response 511 (expected was 510) ### FAIL ### ERROR: Requests are not answered with an error code ### ### *** END TIME: 2017-03-14 15:59:35 *** *** TEST DURATION (H:MM:SS.ms): 0:00:29.310961 *** *** END *** 1 ***
*** Bug 43861 has been marked as a duplicate of this bug. ***
r77806 | Bug #43860: fix 10_error_code_for_requests r77748 | Bug #43860: fix 10_error_code_for_requests
It seems under heavy load (the jenkins machine don't have enough resources) the status code changes from SERVER_ERR_MODULE_DIED (510) to SERVER_ERR_MODULE_FAILED (511). This should be okay as it proved the connection is not blocked and no DoS is possible.
OK, works now.
UCS 4.2 has been released: https://docs.software-univention.de/release-notes-4.2-0-en.html https://docs.software-univention.de/release-notes-4.2-0-de.html If this error occurs again, please use "Clone This Bug".