From: marcusvrn Date: Wed, 1 Jul 2015 18:03:40 +0000 (-0300) Subject: Fix HBSD horcm driver with oslo.concurrency 2.1.0 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=1c6a57d722f21cc499912bbc389267151b44c962;p=openstack-build%2Fcinder-build.git Fix HBSD horcm driver with oslo.concurrency 2.1.0 The oslo.concurrency 2.1.0 has replaced locks and replaced with fasteners which means that locking stuff has moved to a generic 3rd party lib. This lib uses the variable "path" instead of "fname". Closes-bug: #1470112 Change-Id: I8b844c827c940a01da9cd97d8f69b3a7e42f706c --- diff --git a/cinder/volume/drivers/hitachi/hbsd_basiclib.py b/cinder/volume/drivers/hitachi/hbsd_basiclib.py index 8fc59912f..8d0983a5b 100644 --- a/cinder/volume/drivers/hitachi/hbsd_basiclib.py +++ b/cinder/volume/drivers/hitachi/hbsd_basiclib.py @@ -198,10 +198,6 @@ class FileLock(lockutils.InterProcessLock): super(FileLock, self).__init__(name) def __enter__(self): - if not os.access(self.fname, os.W_OK): - msg = output_err(633, file=self.fname) - raise exception.HBSDError(message=msg) - self.lock_object.acquire() try: