← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1207841] Re: Some of tests specific to identity and assignment are failing

 

[Expired for Keystone because there has been no activity for 60 days.]

** Changed in: keystone
       Status: Incomplete => Expired

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

Title:
  Some of tests specific to identity and assignment are failing

Status in OpenStack Identity (Keystone):
  Expired

Bug description:
  Seems some of the tests are failing that when tested with
  LdapIdentitySqlAssignment

  For example, running "test_get_user_by_name" gives following error: 
  ./run_tests.sh test_backend_ldap:LdapIdentitySqlAssignment.test_get_user_by_name
  ======================================================================
  ERROR: test_get_user_by_name (test_backend_ldap.LdapIdentitySqlAssignment)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/opt/stack/keystone/tests/test_backend_ldap.py", line 744, in tearDown
      sql.ModelBase.metadata.drop_all(bind=self.engine)
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/schema.py", line 2598, in drop_all
      tables=tables)
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2302, in _run_visitor
      conn._run_visitor(visitorcallable, element, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1972, in _run_visitor
      **kwargs).traverse_single(element)
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/visitors.py", line 106, in traverse_single
      return meth(obj, **kw)
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/ddl.py", line 130, in visit_metadata
      self.traverse_single(table, drop_ok=True)
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/visitors.py", line 106, in traverse_single
      return meth(obj, **kw)
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/ddl.py", line 173, in visit_table
      self.connection.execute(schema.DropTable(table))
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1449, in execute
      params)
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1542, in _execute_ddl
      compiled
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1698, in _execute_context
      context)
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1691, in _execute_context
      context)
    File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 331, in do_execute
      cursor.execute(statement, parameters)
    File "/usr/lib/python2.7/dist-packages/MySQLdb/cursors.py", line 174, in execute
      self.errorhandler(self, exc, value)
    File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
      raise errorclass, errorvalue
  IntegrityError: (IntegrityError) (1217, 'Cannot delete or update a parent row: a foreign key constraint fails') '\nDROP TABLE project' ()
  .....
  .......
  .........
  FAILED (errors=1)

  
  I am working with Adam on this!

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