Uploaded image for project: 'Test'
  1. Test
  2. TEST-348

CDS error when running several basic_vm_macro in parallel

XMLWordPrintable

      when running 10 basic_vm_macro in //, only the first one will be OK, eht others will lead to an exception

      2021-06-30 09:25:18,382 INFO 116:onap_service.py(8) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:25:28,809 INFO 116:onap_service.py(8) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:25:39,302 INFO 116:onap_service.py(8) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:25:49,712 INFO 116:onap_service.py(8) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:26:00,127 INFO 116:onap_service.py(8) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:26:10,679 INFO 116:onap_service.py(8) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:26:22,298 INFO 116:onap_service.py(8) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:26:32,970 INFO 116:onap_service.py(8) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:26:43,108 INFO 116:onap_service.py(8) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:26:43,109 INFO 56:mixins.py(8) - ServiceInstantiation task finished
      2021-06-30 09:26:43,242 INFO 116:onap_service.py(8) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:26:43,375 INFO 116:onap_service.py(8) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:26:43,518 INFO 116:onap_service.py(1) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:26:43,646 INFO 116:onap_service.py(1) - [None][Check 891aeb7e-d7b5-465e-aa8d-37727b22d5c9 orchestration request status] response code: 200
      2021-06-30 09:26:43,773 INFO 116:onap_service.py(1) - [AAI][Get service subscription with basic_vm_macro service type] response code: 200
      2021-06-30 09:26:44,158 INFO 116:onap_service.py(1) - [AAI][Get service instance with basic_macro_53bdc6ee-78ec-44b0-8b16-029ff28abdda service-instance-name] response code: 200
      2021-06-30 09:26:44,172 ERROR 188:run_tests.py(1) -

      Please fix the testcase basic_vm_macro.
      All exceptions should be caught by the testcase instead!

      Traceback (most recent call last):
      File "/usr/lib/python3.8/site-packages/xtesting/ci/run_tests.py", line 171, in run_test
      kwargs = run_dict['args']
      KeyError: 'args'

      During handling of the above exception, another exception occurred:

      Traceback (most recent call last):
      File "/usr/lib/python3.8/site-packages/xtesting/ci/run_tests.py", line 174, in run_test
      test_case.run()
      File "/usr/lib/python3.8/site-packages/onaptests/scenario/basic_vm_macro.py", line 115, in run
      self.test.cleanup()
      File "/usr/lib/python3.8/site-packages/onaptests/steps/base.py", line 223, in cleanup
      step.cleanup()
      File "/usr/lib/python3.8/site-packages/onaptests/steps/base.py", line 223, in cleanup
      step.cleanup()
      File "/usr/lib/python3.8/site-packages/onaptests/steps/base.py", line 172, in wrapper
      ret = fun(self, *args, **kwargs)
      File "/usr/lib/python3.8/site-packages/onaptests/steps/onboard/cds.py", line 174, in cleanup
      super().cleanup()
      File "/usr/lib/python3.8/site-packages/onaptests/steps/base.py", line 223, in cleanup
      step.cleanup()
      File "/usr/lib/python3.8/site-packages/onaptests/steps/base.py", line 223, in cleanup
      step.cleanup()
      File "/usr/lib/python3.8/site-packages/onaptests/steps/base.py", line 223, in cleanup
      step.cleanup()
      File "/usr/lib/python3.8/site-packages/onaptests/steps/onboard/cds.py", line 70, in cleanup
      self.k8s_client.patch_namespaced_service(
      File "/usr/lib/python3.8/site-packages/kubernetes/client/api/core_v1_api.py", line 20546, in patch_namespaced_service
      return self.patch_namespaced_service_with_http_info(name, namespace, body, **kwargs) # noqa: E501
      File "/usr/lib/python3.8/site-packages/kubernetes/client/api/core_v1_api.py", line 20657, in patch_namespaced_service_with_http_info
      return self.api_client.call_api(
      File "/usr/lib/python3.8/site-packages/kubernetes/client/api_client.py", line 348, in call_api
      return self.__call_api(resource_path, method,
      File "/usr/lib/python3.8/site-packages/kubernetes/client/api_client.py", line 180, in __call_api
      response_data = self.request(
      File "/usr/lib/python3.8/site-packages/kubernetes/client/api_client.py", line 407, in request
      return self.rest_client.PATCH(url,
      File "/usr/lib/python3.8/site-packages/kubernetes/client/rest.py", line 294, in PATCH
      return self.request("PATCH", url,
      File "/usr/lib/python3.8/site-packages/kubernetes/client/rest.py", line 233, in request
      raise ApiException(http_resp=r)
      kubernetes.client.exceptions.ApiException: (422)
      Reason: Unprocessable Entity
      HTTP response headers: HTTPHeaderDict({'Cache-Control': 'no-cache, private', 'Content-Type': 'application/json', 'Date': 'Wed, 30 Jun 2021 09:26:44 GMT', 'Content-Length': '187'})
      HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"the server rejected our request due to an error in our request","reason":"Invalid","details":{},"code":422}

      2021-06-30 09:26:44,193 ERROR 253:run_tests.py(1) - The test case 'basic_vm_macro' failed

       

      We need to be sure that the CDS resources create by 1 test is not shared with possible other parallel tests

            michaljagiellotmpl michaljagiellotmpl
            mrichomme mrichomme
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: