← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1124213] Re: Cannot run nova tests in uninstalled source tree

 

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

** Changed in: nova
    Milestone: None => grizzly-3

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

Title:
  Cannot run nova tests in uninstalled source tree

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  nova.tests.test_service fail:

  $ nosetests nova.tests.test_service
  ...
  ======================================================================
  ERROR: nova.tests.test_service.ServiceFlagsTestCase.test_service_enabled_on_create_based_on_flag
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    pythonlogging:'nova'

  Traceback (most recent call last):
    File "/tmp/yahoo/nova/nova/tests/test_service.py", line 89, in test_service_enabled_on_create_based_on_flag
      app.start()
    File "/tmp/yahoo/nova/nova/service.py", line 425, in start
      verstr = version.version_string_with_package()
    File "/tmp/yahoo/nova/nova/version.py", line 87, in version_string_with_package
      return version_info.version_string()
    File "/tmp/yahoo/nova/nova/openstack/common/version.py", line 63, in version_string
      for part in self.release_string().split('.'):
  AttributeError: 'NoneType' object has no attribute 'split'
  ...

  
  This can be fixed with https://github.com/openstack/oslo-incubator/commit/a4b6c313199dbc59e3adfc371d76d2b96df7697c:

  Allow running test in uninstalled source tree.
  It was pointed out that we missed the use-case that running tests
  in a fresh tree checkout should work - and we missed that by
  reaching too far into the setup module interface. Shame on us.

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