← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1272500] Re: Newer version of SQLite (>=3.7.16) cause some of our tests to fail

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1272500

Title:
  Newer version of SQLite (>=3.7.16) cause some of our tests to fail

Status in Ironic (Bare Metal Provisioning):
  Fix Released
Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  After upgrading my machine to fedora 20 I noticed that some of our
  tests were failing. Then with a bit more investigation I saw that it
  was related to the version of the sqlite.

  The problem seems to be already fixed in oslo by the review
  https://review.openstack.org/#/c/61405 . We need to sync the new
  version of the db.sqlalchemy module from oslo to ironic in order to
  get it fixed in Ironic as well.

  LOG:

  (venv)[lucasagomes@lucasagomes ironic]$ rpm -q sqlite
  sqlite-3.8.2-1.fc20.x86_64

  Example of broken test:

  FAIL: ironic.tests.conductor.test_manager.ManagerTestCase.test_start_registers_driver_names
  tags: worker-5
  ----------------------------------------------------------------------
  Empty attachments:
    pythonlogging:''
    stdout

  stderr: {{{
  ironic/openstack/common/db/sqlalchemy/session.py:486: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
    m = _DUP_KEY_RE_DB[engine_name].match(integrity_error.message)
  }}}

  Traceback (most recent call last):
    File "ironic/tests/conductor/test_manager.py", line 73, in test_start_registers_driver_names
      self.service.start()
    File "ironic/conductor/manager.py", line 106, in start
      'drivers': self.drivers})
    File "ironic/objects/__init__.py", line 28, in wrapper
      result = fn(*args, **kwargs)
    File "ironic/db/sqlalchemy/api.py", line 521, in register_conductor
      conductor.save()
    File "ironic/openstack/common/db/sqlalchemy/models.py", line 53, in save
      session.flush()
    File "ironic/openstack/common/db/sqlalchemy/session.py", line 551, in _wrap
      raise exception.DBError(e)
  DBError: (IntegrityError) UNIQUE constraint failed: conductors.hostname u'INSERT INTO conductors (created_at, updated_at, hostname, drivers) VALUES (?, ?, ?, ?)' ('2014-01-24 19:43:43.362929', '2014-01-24 19:43:43.362563', 'test-host', '["fake3", "fake4"]')

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