lockutils is a silent noop when called as a module

Bug #1386734 reported by Ben Nemec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo.concurrency
Fix Released
High
Ben Nemec

Bug Description

In incubator, lockutils was a callable module that was used to wrap unit tests that needed a lock_path set. This was changed to be a console script entry point in the library, but if a project continues calling lockutils directly it will silently do nothing, which led to issues such as the one mentioned in https://review.openstack.org/#/c/131416/

We need to raise an exception when lockutils is called directly so that this can't happen anymore.

Ben Nemec (bnemec)
Changed in oslo.concurrency:
assignee: nobody → Ben Nemec (bnemec)
status: New → Triaged
importance: Undecided → High
Revision history for this message
Ben Nemec (bnemec) wrote :
Changed in oslo.concurrency:
milestone: none → next-kilo
status: Triaged → Fix Committed
Ben Nemec (bnemec)
Changed in oslo.concurrency:
status: Fix Committed → 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.