-
Notifications
You must be signed in to change notification settings - Fork 832
Closed
Milestone
Description
应用删除失败
报错信息:
2017-12-18 09:50:42 [ERROR] 5214c946-f242-4e7f-917b-ef5585674d92 [post] /app/ui/www/views/ajax/service_actions.py:350 {"url": "http://region.goodrain.me:8888/v2/tenants/gradmin/services/gr32af02?enterprise_id=309990b33628c17fca6da45fa0954c5a", "body": {"msg": "delete service error, Error 1062: Duplicate entry '26' for key 'PRIMARY'"}, "httpcode": 500, "method": "DELETE", "apitype": "Not specified"}
Traceback (most recent call last):
File "/app/ui/www/views/ajax/service_actions.py", line 347, in post
self.tenant.enterprise_id)
File "/app/ui/www/apiclient/regionapi.py", line 158, in delete_service
res, body = self._delete(url, self.default_headers, region=region)
File "/app/ui/www/apiclient/baseclient.py", line 123, in _delete
res, body = self._check_status(url, 'DELETE', response, content)
File "/app/ui/www/apiclient/baseclient.py", line 53, in _check_status
raise self.CallApiError(self.apitype, url, method, res, body)
CallApiError: {"url": "http://region.goodrain.me:8888/v2/tenants/gradmin/services/gr32af02?enterprise_id=309990b33628c17fca6da45fa0954c5a", "body": {"msg": "delete service error, Error 1062: Duplicate entry '26' for key 'PRIMARY'"}, "httpcode": 500, "method": "DELETE", "apitype": "Not specified"}
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Relationships
Development
Select code repository
Activity
Gemrails commentedon Dec 18, 2017
在转存已删除的应用记录至
tenant_service_delete
时,由于delete表中存在ID相同的记录导致无法插入删除数据引发错误。正常情况下两张表均不做truncate的情况下不会出现该问题,目前已在代码中做了兼容