← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1282250] Re: Unit tests fail with ConfigNotFound: Could not find config at $state_path/etc/nova/api-paste.ini

 

This wasn't a bug in Nova.

** Changed in: nova
       Status: Confirmed => 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/1282250

Title:
  Unit tests fail with ConfigNotFound: Could not find config at
  $state_path/etc/nova/api-paste.ini

Status in OpenStack Compute (Nova):
  Invalid
Status in Oslo - a Library of Common OpenStack Code:
  Fix Committed

Bug description:
  Steps to replicate:
  - Ubuntu 10.04 running devstack
  - cd to /opt/stack/nova
  - Check out nova at master (7093b847f624300dcc9452063187c1da735e0c85)
  - tox -e py27

  
  Many tests fail with this error message. For example:
  ======================================================================
  FAIL: nova.tests.integrated.test_api_samples.AdminActionsSamplesJsonTest.test_post_reset_state
  tags: worker-2
  ----------------------------------------------------------------------
  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 5fdeebe84e494959ad0e057ec33d5079:fake-mini
  AUDIT [nova.service] Starting cert node (version 2014.1)
  AUDIT [nova.service] Starting consoleauth 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 scheduler node (version 2014.1)
  WARNING [nova.cells.manager] The cells feature of Nova is considered experimental by the OpenStack project because it receives much less testing than the rest of Nova. This may change in the future, but current deployers should be aware that the use of it in production right now may be risky.
  AUDIT [nova.service] Starting cells node (version 2014.1)
  }}}

  stderr: {{{
  nova/servicegroup/api.py:78: DeprecationWarning: object.__init__() takes no parameters
    super(API, self).__init__(*args, **kwargs)
  nova/servicegroup/api.py:78: DeprecationWarning: object.__init__() takes no parameters
    super(API, self).__init__(*args, **kwargs)
  nova/servicegroup/api.py:78: DeprecationWarning: object.__init__() takes no parameters
    super(API, self).__init__(*args, **kwargs)
  nova/servicegroup/api.py:78: DeprecationWarning: object.__init__() takes no parameters
    super(API, self).__init__(*args, **kwargs)
  nova/servicegroup/api.py:78: DeprecationWarning: object.__init__() takes no parameters
    super(API, self).__init__(*args, **kwargs)
  nova/servicegroup/api.py:78: DeprecationWarning: object.__init__() takes no parameters
    super(API, self).__init__(*args, **kwargs)
  nova/servicegroup/api.py:78: DeprecationWarning: object.__init__() takes no parameters
    super(API, self).__init__(*args, **kwargs)
  }}}

  Traceback (most recent call last):
    File "nova/tests/integrated/test_api_samples.py", line 1832, in setUp
      super(AdminActionsSamplesJsonTest, self).setUp()
    File "nova/tests/integrated/test_api_samples.py", line 96, in setUp
      super(ApiSampleTestBaseV2, self).setUp()
    File "nova/tests/integrated/integrated_helpers.py", line 80, in setUp
      self._start_api_service()
    File "nova/tests/integrated/integrated_helpers.py", line 105, in _start_api_service
      self.osapi = service.WSGIService("osapi_compute")
    File "nova/service.py", line 349, in __init__
      self.loader = loader or wsgi.Loader()
    File "nova/wsgi.py", line 489, in __init__
      raise exception.ConfigNotFound(path=config_path)
  ConfigNotFound: Could not find config at $state_path/etc/nova/api-paste.ini
  ======================================================================

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


References