testHA:test_datasource_db_sync_remove failure (new-arch)

Bug #1611467 reported by Eric K
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
congress
In Progress
Medium
Eric K

Bug Description

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to congress (master)

Fix proposed to branch: master
Review: https://review.openstack.org/353139

Changed in congress:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to congress (master)

Reviewed: https://review.openstack.org/353139
Committed: https://git.openstack.org/cgit/openstack/congress/commit/?id=a254051cac112ab0683ee257d6d4e464fe54496c
Submitter: Jenkins
Branch: master

commit a254051cac112ab0683ee257d6d4e464fe54496c
Author: Eric K <email address hidden>
Date: Thu Aug 11 20:55:45 2016 -0700

    Scrap testHA:test_datasource_db_sync_remove

    The test is redundant because removal by db sync is already tested
    in test_datasource_db_sync_add. The test also causes frequent
    transient failures.

    The following bug not completely closed because there appears to be
    deeper issues causing the failure. To be addressed in coming days.

    Submitting this quick fix to unjam the current gating process holding
    up ready and to-be-ready patches.

    Change-Id: If7013ef8afa9b3b9cbe773ba1393f5f822f60003
    Partial-bug: 1611467

Eric K (ekcs)
Changed in congress:
importance: High → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.