← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1419043] [NEW] Conflict on isolated credential setup

 

Public bug reported:

>From the following run (in progress) -
http://logs.openstack.org/26/153426/2/gate/gate-tempest-dsvm-
nova-v21-full/c80cf2c//console.html

2015-02-06 15:50:27.935 | ==============================
2015-02-06 15:50:27.935 | Failed 1 tests - output below:
2015-02-06 15:50:27.935 | ==============================
2015-02-06 15:50:27.935 | 
2015-02-06 15:50:27.935 | setUpClass (tempest.api.compute.admin.test_aggregates_negative.AggregatesAdminNegativeTestJSON)
2015-02-06 15:50:27.936 | -----------------------------------------------------------------------------------------------
2015-02-06 15:50:27.936 | 
2015-02-06 15:50:27.936 | Captured traceback:
2015-02-06 15:50:27.936 | ~~~~~~~~~~~~~~~~~~~
2015-02-06 15:50:27.936 |     Traceback (most recent call last):
2015-02-06 15:50:27.936 |       File "tempest/test.py", line 273, in setUpClass
2015-02-06 15:50:27.936 |         cls.resource_setup()
2015-02-06 15:50:27.936 |       File "tempest/api/compute/admin/test_aggregates_negative.py", line 31, in resource_setup
2015-02-06 15:50:27.936 |         super(AggregatesAdminNegativeTestJSON, cls).resource_setup()
2015-02-06 15:50:27.936 |       File "tempest/api/compute/base.py", line 341, in resource_setup
2015-02-06 15:50:27.936 |         super(BaseComputeAdminTest, cls).resource_setup()
2015-02-06 15:50:27.936 |       File "tempest/api/compute/base.py", line 44, in resource_setup
2015-02-06 15:50:27.937 |         cls.os = cls.get_client_manager()
2015-02-06 15:50:27.937 |       File "tempest/test.py", line 407, in get_client_manager
2015-02-06 15:50:27.937 |         creds = cls.isolated_creds.get_primary_creds()
2015-02-06 15:50:27.937 |       File "tempest/common/isolated_creds.py", line 273, in get_primary_creds
2015-02-06 15:50:27.937 |         return self.get_credentials('primary')
2015-02-06 15:50:27.937 |       File "tempest/common/isolated_creds.py", line 257, in get_credentials
2015-02-06 15:50:27.937 |         credentials = self._create_creds(admin=is_admin)
2015-02-06 15:50:27.937 |       File "tempest/common/isolated_creds.py", line 119, in _create_creds
2015-02-06 15:50:27.937 |         tenant, email)
2015-02-06 15:50:27.937 |       File "tempest/common/isolated_creds.py", line 65, in _create_user
2015-02-06 15:50:27.937 |         username, password, tenant['id'], email)
2015-02-06 15:50:27.937 |       File "tempest/services/identity/json/identity_client.py", line 168, in create_user
2015-02-06 15:50:27.938 |         resp, body = self.post('users', post_body)
2015-02-06 15:50:27.938 |       File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 169, in post
2015-02-06 15:50:27.938 |         return self.request('POST', url, extra_headers, headers, body)
2015-02-06 15:50:27.938 |       File "tempest/common/service_client.py", line 69, in request
2015-02-06 15:50:27.938 |         raise exceptions.Conflict(ex)
2015-02-06 15:50:27.938 |     Conflict: An object with that identifier already exists
2015-02-06 15:50:27.938 |     Details: An object with that identifier already exists
2015-02-06 15:50:27.938 |     Details: {u'title': u'Conflict', u'message': u'Conflict occurred attempting to store role - Duplicate Entry', u'code': 409}
2015-02-06 15:50:27.938 |     


Some how isolated_credential calls are failing.

It appears that this might be racing on creating identical roles on
multiple users - http://logs.openstack.org/26/153426/2/gate/gate-
tempest-dsvm-
nova-v21-full/c80cf2c//logs/apache/keystone.txt.gz#_2015-02-06_15_27_17_988

That's about the time of the failure.

** Affects: keystone
     Importance: Critical
         Status: New

** Affects: tempest
     Importance: High
         Status: New

** Changed in: tempest
   Importance: Undecided => High

** Also affects: keystone
   Importance: Undecided
       Status: New

** Changed in: keystone
   Importance: Undecided => Critical

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1419043

Title:
  Conflict on isolated credential setup

Status in OpenStack Identity (Keystone):
  New
Status in Tempest:
  New

Bug description:
  From the following run (in progress) -
  http://logs.openstack.org/26/153426/2/gate/gate-tempest-dsvm-
  nova-v21-full/c80cf2c//console.html

  2015-02-06 15:50:27.935 | ==============================
  2015-02-06 15:50:27.935 | Failed 1 tests - output below:
  2015-02-06 15:50:27.935 | ==============================
  2015-02-06 15:50:27.935 | 
  2015-02-06 15:50:27.935 | setUpClass (tempest.api.compute.admin.test_aggregates_negative.AggregatesAdminNegativeTestJSON)
  2015-02-06 15:50:27.936 | -----------------------------------------------------------------------------------------------
  2015-02-06 15:50:27.936 | 
  2015-02-06 15:50:27.936 | Captured traceback:
  2015-02-06 15:50:27.936 | ~~~~~~~~~~~~~~~~~~~
  2015-02-06 15:50:27.936 |     Traceback (most recent call last):
  2015-02-06 15:50:27.936 |       File "tempest/test.py", line 273, in setUpClass
  2015-02-06 15:50:27.936 |         cls.resource_setup()
  2015-02-06 15:50:27.936 |       File "tempest/api/compute/admin/test_aggregates_negative.py", line 31, in resource_setup
  2015-02-06 15:50:27.936 |         super(AggregatesAdminNegativeTestJSON, cls).resource_setup()
  2015-02-06 15:50:27.936 |       File "tempest/api/compute/base.py", line 341, in resource_setup
  2015-02-06 15:50:27.936 |         super(BaseComputeAdminTest, cls).resource_setup()
  2015-02-06 15:50:27.936 |       File "tempest/api/compute/base.py", line 44, in resource_setup
  2015-02-06 15:50:27.937 |         cls.os = cls.get_client_manager()
  2015-02-06 15:50:27.937 |       File "tempest/test.py", line 407, in get_client_manager
  2015-02-06 15:50:27.937 |         creds = cls.isolated_creds.get_primary_creds()
  2015-02-06 15:50:27.937 |       File "tempest/common/isolated_creds.py", line 273, in get_primary_creds
  2015-02-06 15:50:27.937 |         return self.get_credentials('primary')
  2015-02-06 15:50:27.937 |       File "tempest/common/isolated_creds.py", line 257, in get_credentials
  2015-02-06 15:50:27.937 |         credentials = self._create_creds(admin=is_admin)
  2015-02-06 15:50:27.937 |       File "tempest/common/isolated_creds.py", line 119, in _create_creds
  2015-02-06 15:50:27.937 |         tenant, email)
  2015-02-06 15:50:27.937 |       File "tempest/common/isolated_creds.py", line 65, in _create_user
  2015-02-06 15:50:27.937 |         username, password, tenant['id'], email)
  2015-02-06 15:50:27.937 |       File "tempest/services/identity/json/identity_client.py", line 168, in create_user
  2015-02-06 15:50:27.938 |         resp, body = self.post('users', post_body)
  2015-02-06 15:50:27.938 |       File "/opt/stack/new/tempest/.tox/full/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 169, in post
  2015-02-06 15:50:27.938 |         return self.request('POST', url, extra_headers, headers, body)
  2015-02-06 15:50:27.938 |       File "tempest/common/service_client.py", line 69, in request
  2015-02-06 15:50:27.938 |         raise exceptions.Conflict(ex)
  2015-02-06 15:50:27.938 |     Conflict: An object with that identifier already exists
  2015-02-06 15:50:27.938 |     Details: An object with that identifier already exists
  2015-02-06 15:50:27.938 |     Details: {u'title': u'Conflict', u'message': u'Conflict occurred attempting to store role - Duplicate Entry', u'code': 409}
  2015-02-06 15:50:27.938 |     

  
  Some how isolated_credential calls are failing.

  It appears that this might be racing on creating identical roles on
  multiple users - http://logs.openstack.org/26/153426/2/gate/gate-
  tempest-dsvm-
  nova-v21-full/c80cf2c//logs/apache/keystone.txt.gz#_2015-02-06_15_27_17_988

  That's about the time of the failure.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1419043/+subscriptions


Follow ups

References