← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1338737] Re: nova needs to require oslotest in test-requirements

 

I need to bring this back. Right now oslotest is a runtime dependency of
nova which is wrong since oslotest.base is only used for nova unit
tests, so it should be in test-requirements.txt.

This is especially bad for downstream packagers/deployers because the
runtime dependencies for oslotest include things like mock and mox,
which shouldn't be in a production install of openstack.

** Changed in: nova
       Status: Invalid => In Progress

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

Title:
  nova needs to require oslotest in test-requirements

Status in OpenStack Compute (Nova):
  In Progress

Bug description:
  Python 2.7.3 (default, Sep 26 2013, 20:08:41) 
  [GCC 4.6.3] on linux2
  Type "help", "copyright", "credits" or "license" for more information.
  >>> from nova.tests.db import test_db_api
  Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
    File "nova/tests/db/test_db_api.py", line 54, in <module>
      from nova.openstack.common.db.sqlalchemy import test_base
    File "nova/openstack/common/db/sqlalchemy/test_base.py", line 21, in <module>
      from oslotest import base as test_base
  ImportError: No module named oslotest

  
  Looks like this showed up with nova commit 0f07f8546fda9732a7e3597a2de78156f1fb5a34.

  This is the corresponding oslo-incubator change:
  https://review.openstack.org/#/c/87536/

  Note that requirements.txt was updated there but not in the nova sync.

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


References