futurewei-cloud / alcor

Alcor: Cloud native SDN platform powered by Kubernetes and Istio
MIT License
32 stars 33 forks source link

[Subnet] Delete a subnet got 404 error from Route Manager #495

Closed cj-chung closed 3 years ago

cj-chung commented 3 years ago

Rally TestSuite1 delete a subnet got error:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/rally/task/runner.py", line 72, in _run_scenario_once
    getattr(scenario_inst, method_name)(**scenario_kwargs)
  File "/usr/lib/python2.7/dist-packages/rally/plugins/openstack/scenarios/alcor/network.py", line 180, in run
    self._delete_subnet(subnet)
  File "/usr/lib/python2.7/dist-packages/rally/task/atomic.py", line 84, in func_atomic_actions
    f = func(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/rally/plugins/openstack/scenarios/alcor/utils.py", line 188, in _delete_subnet
    self.clients("alcor").delete_subnet(subnet["subnet"]["id"])
  File "/usr/local/lib/python2.7/dist-packages/alcorclient/v2_0/client.py", line 882, in delete_subnet
    return self.delete(self.subnet_path % (subnet))
  File "/usr/local/lib/python2.7/dist-packages/alcorclient/v2_0/client.py", line 350, in delete
    headers=headers, params=params)
  File "/usr/local/lib/python2.7/dist-packages/alcorclient/v2_0/client.py", line 331, in retry_request
    headers=headers, params=params)
  File "/usr/local/lib/python2.7/dist-packages/alcorclient/v2_0/client.py", line 294, in do_request
    self._handle_fault_response(status_code, replybody, resp)
  File "/usr/local/lib/python2.7/dist-packages/alcorclient/v2_0/client.py", line 269, in _handle_fault_response
    exception_handler_v20(status_code, error_body)
  File "/usr/local/lib/python2.7/dist-packages/alcorclient/v2_0/client.py", line 93, in exception_handler_v20
    request_ids=request_ids)
InternalServerError: 404 : [{"timestamp":"2020-12-03T00:41:33.588+0000","status":404,"error":"Not Found","message":"can not find route table by owner","path":"/project/d4d02700536e4167b51a60f141c71191/subnets/7d135769-7ac7-43b2-9140-8a12f16c7b2d/routetable"}]