diff options
author | Davanum Srinivas <dims@linux.vnet.ibm.com> | 2014-10-24 14:18:30 -0400 |
---|---|---|
committer | Davanum Srinivas (dims) <davanum@gmail.com> | 2014-10-30 00:19:14 +0000 |
commit | 06e4919a452a6eef5f61beda3a107e11b47a90df (patch) | |
tree | 646cf5756dd80bdbaf35923df23db349bc465ed8 /nova/storage | |
parent | d34a46e38bc22cae3f6ae98dbd40389275e4c804 (diff) | |
download | nova-06e4919a452a6eef5f61beda3a107e11b47a90df.tar.gz |
Switch Nova to use oslo.concurrency
Let's switch to the newly released oslo library for the
processutils and lockutils. We use the config fixture(s) to
specify disable_process_locking and lock_path in the CONF
variable of oslo.concurrency library for correctly setting the
flags.
The previous attempt at updating nova to use oslo.concurrency
was reverted as it stopped running any tests. lockutils-wrapper
should have been used in ini/shell scripts
instead of lockutils.py module as the the module is
no longer runnable (__main__ has been removed). In this
review we use lockutils-wrapper correctly. The test harness
has since been updated to bail out if 0 tests are run as
well for additional insurance.
Change-Id: I14c75ef2196fd08c9465d648e5cd53777bd9c7d1
Co-Authored-By: Nikola Dipanov <ndipanov@redhat.com>
Co-Authored-By: Corey Wright <corey.wright@rackspace.com>
Diffstat (limited to 'nova/storage')
-rw-r--r-- | nova/storage/linuxscsi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nova/storage/linuxscsi.py b/nova/storage/linuxscsi.py index 08577b0f6d..713a082845 100644 --- a/nova/storage/linuxscsi.py +++ b/nova/storage/linuxscsi.py @@ -14,10 +14,11 @@ """Generic linux scsi subsystem utilities.""" +from oslo.concurrency import processutils + from nova.i18n import _LW from nova.openstack.common import log as logging from nova.openstack.common import loopingcall -from nova.openstack.common import processutils from nova import utils LOG = logging.getLogger(__name__) |