← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1189401] Re: test_conductor.ConductorAPITestCase.test_vol_usage_update_again has races

 

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

** Changed in: nova
    Milestone: None => havana-2

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

Title:
  test_conductor.ConductorAPITestCase.test_vol_usage_update_again has
  races

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  I see the following error quite frequently in the unittests:

  Traceback (most recent call last):
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/fixtures/fixture.py", line 112, in cleanUp
      return self._cleanups(raise_errors=raise_first)
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/fixtures/callmany.py", line 88, in __call__
      reraise(error[0], error[1], error[2])
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/fixtures/callmany.py", line 82, in __call__
      cleanup(*args, **kwargs)
    File "/opt/stack/nova/nova/service.py", line 266, in kill
      self.conductor_api.service_destroy(context.get_admin_context(),
    File "/opt/stack/nova/nova/context.py", line 175, in get_admin_context
      overwrite=False)
    File "/opt/stack/nova/nova/context.py", line 72, in __init__
      timestamp = timeutils.utcnow()
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/mox.py", line 765, in __call__
      return mock_method(*params, **named_params)
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/mox.py", line 1002, in __call__
      expected_method = self._VerifyMethodCall()
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/mox.py", line 1049, in _VerifyMethodCall
      expected = self._PopNextMethod()
    File "/opt/stack/nova/.venv/local/lib/python2.7/site-packages/mox.py", line 1035, in _PopNextMethod
      raise UnexpectedMethodCallError(self, None)
  UnexpectedMethodCallError: Unexpected method call utcnow.__call__() -> None

  This also effect the Jenkins run here:
  http://logs.openstack.org/31957/2/check/gate-nova-
  python26/23777/console.html.gz

  The mox Python library by its own admissions is not thread safe,
  http://code.google.com/p/pymox/wiki/MoxDocumentation#Threading_issues
  and this is what is effecting us here, as this error only shows up
  intermittently

  Deally with threading issues in the tests, has the potential to make
  them unreadable, so I suggest setting the --concurrency level in
  .testr.conf to 1. This has solved a lot of similar issues for me when
  fixing the cinder test framework.

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