gate-congress-new-arch-devstack:congress_tempest_tests.tests.scenario.congress_ha.test_ha.TestHA:test_datasource_db_sync_remove frequently fails (about 50% of the time). Causing lots of hassle in merges.
Traceback (most recent call last):
File "/opt/stack/new/congress/congress_tempest_tests/tests/scenario/congress_ha/test_ha.py", line 259, in test_datasource_db_sync_remove
fake_id = self.create_fake(client1)
File "/opt/stack/new/congress/congress_tempest_tests/tests/scenario/congress_ha/test_ha.py", line 180, in create_fake
ret = client.create_datasource(item)
File "/opt/stack/new/congress/congress_tempest_tests/services/policy/policy_client.py", line 146, in create_datasource
self.datasources, body=body)
File "tempest/lib/common/rest_client.py", line 273, in post
return self.request('POST', url, extra_headers, headers, body, chunked)
File "tempest/lib/common/rest_client.py", line 667, in request
resp, resp_body)
File "tempest/lib/common/rest_client.py", line 780, in _error_checker
raise exceptions.Conflict(resp_body, resp=resp)
tempest.lib.exceptions.Conflict: An object with that identifier already exists
Details: {u'error_code': 409, u'error_data': None, u'message': u'Datasource already in use with name fake'}
2016-08-09 11:24:11.543 4896 ERROR congress.api.datasource_model [req-0ec5ec09-79f3-4208-9596-638cefd49c82 513412af716e474392496b4a3b60255a 7a4491c3c657448285110bdbd5dc46c2 - - -] Datasource creation failed.
2016-08-09 11:24:11.543 4896 ERROR congress.api.datasource_model Traceback (most recent call last):
2016-08-09 11:24:11.543 4896 ERROR congress.api.datasource_model File "/opt/stack/new/congress/congress/api/datasource_model.py", line 100, in add_item
2016-08-09 11:24:11.543 4896 ERROR congress.api.datasource_model obj = self.bus.add_datasource(item=item)
2016-08-09 11:24:11.543 4896 ERROR congress.api.datasource_model File "/opt/stack/new/congress/congress/dse2/data_service.py", line 204, in add_datasource
2016-08-09 11:24:11.543 4896 ERROR congress.api.datasource_model return self.node.add_datasource(**kwargs)
2016-08-09 11:24:11.543 4896 ERROR congress.api.datasource_model File "/opt/stack/new/congress/congress/dse2/dse_node.py", line 649, in add_datasource
2016-08-09 11:24:11.543 4896 ERROR congress.api.datasource_model raise exception.DatasourceNameInUse(value=req['name'])
2016-08-09 11:24:11.543 4896 ERROR congress.api.datasource_model DatasourceNameInUse: Datasource already in use with name fake
2016-08-09 11:24:11.543 4896 ERROR congress.api.datasource_model
2016-08-09 11:24:11.543 4896 ERROR congress.api.application [req-0ec5ec09-79f3-4208-9596-638cefd49c82 513412af716e474392496b4a3b60255a 7a4491c3c657448285110bdbd5dc46c2 - - -] ApiApplication: found DataModelException
2016-08-09 11:24:11.543 4896 ERROR congress.api.application Traceback (most recent call last):
2016-08-09 11:24:11.543 4896 ERROR congress.api.application File "/opt/stack/new/congress/congress/api/application.py", line 53, in __call__
2016-08-09 11:24:11.543 4896 ERROR congress.api.application response = handler.handle_request(request)
2016-08-09 11:24:11.543 4896 ERROR congress.api.application File "/opt/stack/new/congress/congress/api/webservice.py", line 406, in handle_request
2016-08-09 11:24:11.543 4896 ERROR congress.api.application return self.create_member(request)
2016-08-09 11:24:11.543 4896 ERROR congress.api.application File "/opt/stack/new/congress/congress/api/webservice.py", line 447, in create_member
2016-08-09 11:24:11.543 4896 ERROR congress.api.application item, request.params, id_, context=context)
2016-08-09 11:24:11.543 4896 ERROR congress.api.application File "/opt/stack/new/congress/congress/api/datasource_model.py", line 115, in add_item
2016-08-09 11:24:11.543 4896 ERROR congress.api.application http_status_code=e.code)
2016-08-09 11:24:11.543 4896 ERROR congress.api.application DataModelException: Datasource already in use with name fake
2016-08-09 11:24:11.543 4896 ERROR congress.api.application
Fix proposed to branch: master /review. openstack. org/353139
Review: https:/