kytos-ng / kytos-end-to-end-tests

Kytos End-to-End Tests
0 stars 10 forks source link

Internal Server Error 500 on `test_085_create_and_remove_ten_circuit_concurrently` (needs more stress test) #182

Open viniarck opened 1 year ago

viniarck commented 1 year ago

I encountered this internal error 500 when re-running some tests, unfortunately in this execution looks like the logs weren't captured to narrow down more specifically but at least we know that it was during concurrent EVCs creation, it's worth keeping an eye on this test_085_create_and_remove_ten_circuit_concurrently and stress test it

tests/test_e2e_10_mef_eline.py::TestE2EMefEline::test_085_create_and_remove_ten_circuit_concurrently
  /usr/local/lib/python3.9/dist-packages/_pytest/threadexception.py:73: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-5

  Traceback (most recent call last):
    File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner
      self.run()
    File "/usr/lib/python3.9/threading.py", line 892, in run
      self._target(*self._args, **self._kwargs)
    File "/builds/amlight/kytos-end-to-end-tester/kytos-end-to-end-tests/tests/test_e2e_10_mef_eline.py", line 78, in create_evc
      assert response.status_code == 201, response.text
  AssertionError: {"code":500,"description":"The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.","name":"Internal Server Error"}

  assert 500 == 201
   +  where 500 = <Response [500]>.status_code