TestServerWaiters fails with: ConfigFilesNotFoundError: Failed to read some config files: /etc/tempest/tempest.conf

Bug #1347096 reported by Matt Riedemann
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
High
Matthew Treinish

Bug Description

I rebased and ran tox -r -e py27 and now I get a lot of these:

FAIL: tempest.tests.test_waiters.TestServerWaiters.test_wait_for_server_status_timeout
tags: worker-0
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

Traceback (most recent call last):
  File "tempest/tests/test_waiters.py", line 136, in test_wait_for_server_status_timeout
    self.client, 'fake_svr_id', 'active')
  File "/opt/stack/tempest/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 393, in assertRaises
    self.assertThat(our_callable, matcher)
  File "/opt/stack/tempest/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 404, in assertThat
    mismatch_error = self._matchHelper(matchee, matcher, message, verbose)
  File "/opt/stack/tempest/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 454, in _matchHelper
    mismatch = matcher.match(matchee)
  File "/opt/stack/tempest/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 108, in match
    mismatch = self.exception_matcher.match(exc_info)
  File "/opt/stack/tempest/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_higherorder.py", line 62, in match
    mismatch = matcher.match(matchee)
  File "/opt/stack/tempest/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 385, in match
    reraise(*matchee)
  File "/opt/stack/tempest/.tox/py27/local/lib/python2.7/site-packages/testtools/matchers/_exception.py", line 101, in match
    result = matchee()
  File "/opt/stack/tempest/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 902, in __call__
    return self._callable_object(*self._args, **self._kwargs)
  File "tempest/common/waiters.py", line 41, in wait_for_server_status
    old_task_state = task_state = _get_task_state(body)
  File "tempest/common/waiters.py", line 31, in _get_task_state
    if client.service == CONF.compute.catalog_v3_type:
  File "tempest/config.py", line 1137, in __getattr__
    self._config = TempestConfigPrivate()
  File "tempest/config.py", line 1109, in __init__
    cfg.CONF([], project='tempest', default_config_files=config_files)
  File "/opt/stack/tempest/.tox/py27/local/lib/python2.7/site-packages/oslo/config/cfg.py", line 1605, in __call__
    raise ConfigFilesNotFoundError(self._namespace.files_not_found)
ConfigFilesNotFoundError: Failed to read some config files: /etc/tempest/tempest.conf

I don't have /etc/tempest/tempest.conf nor should I need it in a unit test job.

Looks like it was added here:

https://github.com/openstack/tempest/commit/ae7c9ac4aac20a2832fe1beeaac0a688c6accbd9

Tags: testing
Changed in tempest:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Matthew Treinish (treinish)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/108800

Changed in tempest:
status: Triaged → In Progress
Revision history for this message
Matt Riedemann (mriedem) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/108800
Committed: https://git.openstack.org/cgit/openstack/tempest/commit/?id=a6b0a2f1290a8c9343869558f1fe7ed860f76899
Submitter: Jenkins
Branch: master

commit a6b0a2f1290a8c9343869558f1fe7ed860f76899
Author: Matthew Treinish <email address hidden>
Date: Tue Jul 22 18:39:13 2014 +0000

    Revert "Add tests for wait_for_server_status"

    This unit test class added several race conditions to the unit tests as well as
    added a dependency on having a valid tempest config file. At this point instead
    of trying to fix all of these issues I'm pushing a revert in the short term and
    long-term we can just fix things and re-push these tests.

    This reverts commit ae7c9ac4aac20a2832fe1beeaac0a688c6accbd9.

    Change-Id: If6026611f3938be0716ce95491a8ee60a53e8c12
    Closes-Bug: #1347096

Changed in tempest:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.