← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1261728] [NEW] Interprocess file locks aren't usable in unit tests

 

Public bug reported:

Base test case class has a fixture, that overrides CONF.lock_path value,
which means that every test case will have CONF.lock_path set to its own
temporary dir path. This makes interprocess locks unusable in unit
tests, which is likely to break tests when they are run concurrently
using testr (e.g. tests using MySQL/PostgreSQL might want to be run
exclusively).

** Affects: nova
     Importance: Undecided
         Status: New

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

Title:
  Interprocess file locks aren't usable in unit tests

Status in OpenStack Compute (Nova):
  New

Bug description:
  Base test case class has a fixture, that overrides CONF.lock_path
  value, which means that every test case will have CONF.lock_path set
  to its own temporary dir path. This makes interprocess locks unusable
  in unit tests, which is likely to break tests when they are run
  concurrently using testr (e.g. tests using MySQL/PostgreSQL might want
  to be run exclusively).

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


Follow ups

References