← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1256149] Re: Running tests fail

 

This is a duplicate of another bug.

** Changed in: nova
       Status: New => Invalid

-- 
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/1256149

Title:
  Running tests fail

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  Running tests without a virtualenv and straight testr run fail.

  ======================================================================
  FAIL: nova.tests.api.ec2.test_cinder_cloud.CinderCloudTestCase.test_describe_instances_bdm
  tags: worker-0
  ----------------------------------------------------------------------
  Empty attachments:
    stdout

  pythonlogging:'': {{{
  AUDIT [nova.service] Starting conductor node (version 2014.1)
  INFO [nova.virt.driver] Loading compute driver 'nova.virt.fake.FakeDriver'
  AUDIT [nova.service] Starting compute node (version 2014.1)
  AUDIT [nova.compute.resource_tracker] Auditing locally available compute resources
  AUDIT [nova.compute.resource_tracker] Free ram (MB): 7680
  AUDIT [nova.compute.resource_tracker] Free disk (GB): 1028
  AUDIT [nova.compute.resource_tracker] Free VCPUS: 1
  INFO [nova.compute.resource_tracker] Compute_service record created for 330b8680ed014f608ff371d6fb36fae2:fake-mini
  AUDIT [nova.service] Starting scheduler node (version 2014.1)
  INFO [nova.network.driver] Loading network driver 'nova.network.linux_net'
  AUDIT [nova.service] Starting network node (version 2014.1)
  AUDIT [nova.service] Starting consoleauth node (version 2014.1)
  INFO [nova.tests.fake_volume] attaching volume 2
  INFO [nova.tests.fake_volume] attaching volume 3
  INFO [nova.tests.fake_volume] attaching volume 5
  INFO [nova.tests.fake_volume] attaching volume 7
  INFO [nova.tests.fake_volume] attaching volume 9
  INFO [nova.tests.fake_volume] attaching volume 11
  INFO [nova.tests.fake_volume] deleting volume 2
  INFO [nova.tests.fake_volume] deleting volume 3
  INFO [nova.tests.fake_volume] deleting volume 5
  INFO [nova.tests.fake_volume] deleting volume 7
  INFO [nova.tests.fake_volume] deleting volume 9
  INFO [nova.tests.fake_volume] deleting volume 11
  }}}

  stderr: {{{
  nova/openstack/common/db/sqlalchemy/session.py:481: 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 "nova/tests/api/ec2/test_cinder_cloud.py", line 586, in test_describe_instances_bdm
      self._tearDownBlockDeviceMapping(inst1, inst2, volumes)
    File "nova/tests/api/ec2/test_cinder_cloud.py", line 481, in _tearDownBlockDeviceMapping
      db.instance_destroy(self.context, inst2['uuid'])
    File "nova/db/api.py", line 621, in instance_destroy
      rv = IMPL.instance_destroy(context, instance_uuid, constraint)
    File "nova/db/sqlalchemy/api.py", line 130, in wrapper
      return f(*args, **kwargs)
    File "nova/db/sqlalchemy/api.py", line 1670, in instance_destroy
      count = query.soft_delete()
    File "nova/openstack/common/db/sqlalchemy/session.py", line 706, in soft_delete
      synchronize_session=synchronize_session)
    File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/query.py", line 2690, in update
      update_op.exec_()
    File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 816, in exec_
      self._do_exec()
    File "/usr/lib/python2.7/dist-packages/sqlalchemy/orm/persistence.py", line 913, in _do_exec
      update_stmt, params=self.query._params)
    File "nova/openstack/common/db/sqlalchemy/session.py", line 540, in _wrap
      raise exception.DBError(e)
  DBError: (IntegrityError) constraint failed u'UPDATE instances SET updated_at=updated_at, deleted_at=?, deleted=id WHERE instances.deleted = ? AND instances.uuid = ?' ('2013-11-29 01:42:53.036547', 0, 'f7cd5857-bf8a-4dcd-8241-05fa04447c92')

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